You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: V2 skill slash commands drop skill context and arguments #41245
In OpenCode V2, invoking a skill with a slash command appears to copy the
skill's SKILL.md into the prompt instead of invoking the skill itself. This
prevents the system from discovering the skill's reference files. Additionally,
arguments following the skill name are discarded.
Active plugins: None; opencode2 plugin list reports only built-in plugins
Reproduction
Start OpenCode V2.
Invoke a skill with an argument, for example: /skill-name This is a Test
Observe the prompt sent to the model and the resulting skill behavior.
Expected Behavior
The slash command should invoke the skill through the skill mechanism. The
system should load the skill instructions with access to its reference files,
and the text following the skill name (This is a Test) should be passed to
the model as the user's prompt or skill input.
Actual Behavior
The contents of SKILL.md are copied into the prompt as plain text rather than
invoking the skill. As a result, the system does not know which reference files
are available. The trailing user prompt is also lost: This is a Test does not
reach the model.
Additional Context
The behavior is consistently reproducible. The issue was observed using
OpenCode V2's slash-command skill invocation.
The V2 skill attachment work in #41188 is now merged. Current V2 preserves surrounding prompt text, trailing arguments, skill content, and the skill base directory. Closing as completed.
Activity
github-actions commentedon Aug 8, 2026
This issue might be a duplicate of existing issues. Please check:
wienans commentedon Aug 8, 2026
It looks like the other issue reports this for V1.
Additional nice thing would be if i could write
"Tis is a Test /skill-name"and it would behave the sameUse Case for Example with Matt Pocock skills one might write / say something.
"Work with /wayfinder on https://......"
Surely you could also do
"/wayfinder work on https://....."
But it would be convenient if skills mentioned within the prompt automatically get invoked never the less where they are placed.
kitlangton commentedon Aug 11, 2026
The V2 skill attachment work in #41188 is now merged. Current V2 preserves surrounding prompt text, trailing arguments, skill content, and the skill base directory. Closing as completed.