anomalyco / anomalyco/opencode

Slash skill commands do not reload edited SKILL.md content

Open
#49,451 1 comment 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Sep 17, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Problem

When developing a project-local Skill, editing .opencode/skills/<name>/SKILL.md in VS Code is reflected in the file/Git diff, but invoking /<name> in OpenCode still uses the content loaded when the process started. Developers must restart OpenCode to test each Skill edit.

Reproduction

  1. Start OpenCode with a project-local Skill.
  2. Invoke /<skill-name> once.
  3. Edit and save that Skill's SKILL.md.
  4. Invoke /<skill-name> again.

The second invocation returns the old Skill body.

Expected behavior

Slash commands backed by Skills should reload the current SKILL.md content when invoked. Existing conversation output should remain immutable history.

Root cause

The Command service builds slash commands from skill.all() at initialization and closes over item.content, so /skill-name never reaches the Skill service again.

Why this is distinct

This is not about discovering Skills created after startup (#42478) or adding a general file-watching system (#8751, #34492). The Skill already exists and is listed correctly. Its disk-backed content can already be reloaded by Skill.require(), but the slash command path bypasses that reload by retaining the initial item.content snapshot.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.