Skip to content

Add opencode slash-command generation (engine 0.4.2) - #6

Merged
dzykovic merged 1 commit into
feature/add-opencode-adapterfrom
feature/opencode-slash-commands
Jun 9, 2026
Merged

Add opencode slash-command generation (engine 0.4.2)#6
dzykovic merged 1 commit into
feature/add-opencode-adapterfrom
feature/opencode-slash-commands

Conversation

@dzykovic

@dzykovic dzykovic commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • opencode adapter now also generates one slash command per source skill at .opencode/commands/<name>.md, mirroring Claude Code's skill-as-slash-command UX.
  • Each command's description is copied verbatim from the source SKILL.md; the body delegates to opencode's skill tool and forwards $ARGUMENTS, so any flag from the skill's argument-hint reaches the skill script unchanged.
  • Cleanup is marker-based (OPENCODE_GEN_MARKER) — re-sync only deletes files carrying the marker, so hand-authored commands in .opencode/commands/ survive.
  • Engine bumped to 0.4.2.

Changes

  • opencode.sh: new sync_opencode_commands() + wiring in sync_to_opencode(); header comment documents the new Commands output.
  • VERSION0.4.2; CHANGELOG.md [0.4.2] entry.
  • Docs: ADAPTERS.md (cleanup contract item 1 + adapter table), CONVENTIONS.md + INIT.md (.gitignore recommendation adds .opencode/commands/; bootstrap sync_version example → 0.4.2), README.md capability matrix (opencode skills row notes the generated /cmd).

Base / stacking

Targets feature/add-opencode-adapter (the opencode adapter base, not yet merged to main), so the diff is exactly the 0.4.2 slash-command change. Retarget to main if 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, validate clean). Remaining polish / example updates to finish after further testing.

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.
Copilot AI review requested due to automatic review settings June 7, 2026 17:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>.md per skill with marker-based cleanup.
  • Wire command generation into sync_to_opencode() alongside the existing skills + subagent generation.
  • Bump version to 0.4.2 and update README/docs/INIT/changelog to document the new behavior and .gitignore recommendations.

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.

@dzykovic
dzykovic merged commit c2dbdc7 into feature/add-opencode-adapter Jun 9, 2026
1 check passed
@dzykovic
dzykovic deleted the feature/opencode-slash-commands branch June 9, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants