fix(opencode): expose skills through v1 and v2 plugin APIs - #1547
Open
ucirello wants to merge 4 commits into
Open
fix(opencode): expose skills through v1 and v2 plugin APIs#1547ucirello wants to merge 4 commits into
ucirello wants to merge 4 commits into
Conversation
ucirello
marked this pull request as ready for review
August 26, 2026 23:39
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2c46d5c50
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One plugin declaration now exposes Compound Engineering skills through both OpenCode plugin APIs. In OpenCode v2, slash commands attach the selected skill natively and pass command arguments as prompt text, instead of asking the model to issue a separate
Load and execute...request.Design Decisions
/ce-plan add OAuth loginsendstext: "add OAuth login"andskills: [{ id: "ce-plan" }]. Existing prompt attachments are preserved and the selected skill is not duplicated.New concepts
Native v2 skill attachments
OpenCode v2 can attach a skill by ID when submitting a prompt. OpenCode then loads the skill content and supporting files from the registered skill location. This keeps the user request separate from the skill instructions and avoids a model-mediated skill-loading turn. Use this pattern when a command is a thin entry point to a registered skill. It is not a copy of the skill body into a command template.
Validation
bun test tests/opencode-plugin-commands.test.ts- 9 passed.bun run release:validate- passed.1.18.23- interactive slash menu verified with Compound Engineering skills.0.0.0-beta-18314- standalone startup loaded the repository plugin and reached the interactive TUI; native skill-command behavior was manually verified.bun run test- not completed within 360 seconds; it remained intests/skills/ce-work-cross-model-routes.test.ts.bun run typecheckandbun run lint- not configured in this repository.Security Disclosure
The plugin reads bundled
SKILL.mdfiles and passes their registered locations and content to OpenCode. No new shell execution, credential handling, permission rules, or dependencies were introduced.Agent Disclosure
OpenCode · openai/gpt-5.6-luna