Add opencode slash-command generation (engine 0.4.2) - #6
Merged
dzykovic merged 1 commit intoJun 9, 2026
Merged
Conversation
Generate one slash command per source skill at .opencode/commands/<name>.md so opencode users can invoke skills from the slash menu, mirroring Claude Code's skill-as-command UX. Description is taken verbatim from each SKILL.md; the body delegates to the skill tool and forwards $ARGUMENTS. Cleanup is marker-based (OPENCODE_GEN_MARKER) so hand-authored commands survive re-sync. Bumps engine VERSION to 0.4.2, adds the CHANGELOG entry, updates ADAPTERS/CONVENTIONS/INIT docs and the .gitignore recommendation (.opencode/commands/), refreshes the README capability matrix, and tracks sync_version 0.4.2 in the INIT bootstrap example.
There was a problem hiding this comment.
Pull request overview
This PR extends the opencode adapter to generate opencode slash-commands for each synced skill (mirroring the “skill-as-command” UX), while also bumping the engine version to 0.4.2 and updating docs/changelog to reflect the new ownership/cleanup contract for .opencode/commands/.
Changes:
- Add
sync_opencode_commands()to generate.opencode/commands/<skill>.mdper skill with marker-based cleanup. - Wire command generation into
sync_to_opencode()alongside the existing skills + subagent generation. - Bump version to
0.4.2and update README/docs/INIT/changelog to document the new behavior and.gitignorerecommendations.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates capability matrix to note opencode-generated slash commands for skills. |
| intelligence/sync/scripts/VERSION | Bumps engine version to 0.4.2. |
| intelligence/sync/scripts/adapters/opencode.sh | Implements marker-protected .opencode/commands/ generation and wires it into sync. |
| intelligence/sync/INIT.md | Updates bootstrap version and .gitignore guidance to include .opencode/commands/. |
| intelligence/sync/docs/CONVENTIONS.md | Updates .gitignore conventions and explains marker-protected command cleanup behavior. |
| intelligence/sync/docs/ADAPTERS.md | Updates adapter cleanup contract and adapter reference table for new commands output. |
| CHANGELOG.md | Adds 0.4.2 release notes documenting the new opencode commands generation and cleanup marker. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
.opencode/commands/<name>.md, mirroring Claude Code's skill-as-slash-command UX.descriptionis copied verbatim from the sourceSKILL.md; the body delegates to opencode'sskilltool and forwards$ARGUMENTS, so any flag from the skill'sargument-hintreaches the skill script unchanged.OPENCODE_GEN_MARKER) — re-sync only deletes files carrying the marker, so hand-authored commands in.opencode/commands/survive.Changes
opencode.sh: newsync_opencode_commands()+ wiring insync_to_opencode(); header comment documents the new Commands output.VERSION→0.4.2;CHANGELOG.md[0.4.2]entry.ADAPTERS.md(cleanup contract item 1 + adapter table),CONVENTIONS.md+INIT.md(.gitignorerecommendation adds.opencode/commands/; bootstrapsync_versionexample →0.4.2),README.mdcapability matrix (opencodeskillsrow notes the generated/cmd).Base / stacking
Targets
feature/add-opencode-adapter(the opencode adapter base, not yet merged tomain), so the diff is exactly the 0.4.2 slash-command change. Retarget tomainif you'd rather ship the adapter + slash commands as a single PR.Status
Change content already validated by syncing into a downstream project (vendored copy updated,
validateclean). Remaining polish / example updates to finish after further testing.