Skip to content

Skill registered via v2 plugin is not discoverable via /skills command #33896

Closed as not planned

Description

@Chancemrli

Description

I am using the new v2 plugin API to register a custom skill via ctx.skill.transform(), but the skill is not showing up when searching with the /skills command.

Steps to Reproduce

  1. Create a v2 plugin at .opencode/plugins/skill-plugin.ts
  2. Use ctx.skill.transform() to register a skill with type: "embedded"
  3. Open the TUI and wait for the plugin to load
  4. Execute /skills command and search for my-skill

Code

File: MyProject/.opencode/plugins/skill-plugin.ts

import { define } from "@opencode-ai/plugin/v2/promise"

export default define({
  id: "my-skill-plugin",
  setup: async (ctx) => {
    console.error("[plugin v2]skill setup")
    const res = await ctx.skill.transform((draft) => {
      draft.source({
        type: "embedded",
        skill: {
          name: "my-skill",
          description: "Use when asked about conventions.",
          location: "/builtin/my-skill.md",
          content: "Always use kebab-case.",
        },
      })
    })
  }
})

Expected Behavior
The skill my-skill should appear in the /skill search results.

Actual Behavior
The plugin setup code is executed (confirmed by console output: [plugin v2]skill setup)
However, the skill my-skill cannot be found via the /skill command
Questions / Hypothesis
Is location: "/builtin/my-skill.md" required to be an actual existing file path?
Does the v2/promise API support skill registration the same way as the legacy API?
Is there a missing step (e.g., explicit activation or a different API) for v2 plugins?
Additional Context
I noticed the plugin itself loads successfully, but the skill registration seems to have no effect on the /skill search index. Any guidance on the correct v2 approach for registering discoverable skills would be appreciated.
Image

Image

Plugins

@opencode-ai/plugin/v2/promise

OpenCode version

1.17.10

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jun 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct from the above, please add a comment clarifying the difference.

  2. Chancemrli commented on Jun 25, 2026

    @Chancemrli
    Author

    I am using the v2 version of the plugin extension, which only appears in the latest version. I have confirmed that there is no duplicate issue.

  3. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    bugSomething isn't working
    on Jul 5, 2026
  4. opencode-agent commented on Jul 8, 2026

    @opencode-agent
    Contributor

    Audit update (2026-07-08): #33918 is the active fix, currently targeting dev. Confirm whether that resolves the V2 plugin skill discovery path directly or whether a v2 port is still required.

  5. Chancemrli commented on Jul 10, 2026

    @Chancemrli
    Author

    This is a valid fix. I’d like to be able to use the V2 plugin’s skill discovery under the opencode acp command.

  6. github-actions commented on Sep 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

2.0bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions