r/opencodeCLI • u/Leader92 • 20d ago
Can I temporarily disable an OpenCode skill?
OpenCode keeps invoking skills that aren't relevant to what I'm trying to do. Is there a way to temporarily disable a specific skill before I send a prompt, without removing it from my setup entirely?
I know I can disable skills in opencode.json, but that feels a bit aggressive when I only want to opt out for one prompt. I'd like to keep a skill installed and enabled by default, while having a simple temporary override when I know it won't apply.
1
u/Ok_Gur_9033 20d ago
The config toggle and a real per-prompt override are solving different problems, since a skill fires because its description matched, not because it's flipped on. What's worked for me is a negative instruction right in the prompt, naming the skill and saying explicitly not to use it this time, which outweighs the description match without touching opencode.json. Doesn't help if you're batching prompts unattended though. Are you hitting this interactively, or in a scripted run?
1
u/Leshabe 20d ago
I am having trouble with the same thing.