Skip to content

feat: add Command Code support via .commandcode/ mirror - #5

Open
YunyunZhai wants to merge 2 commits into
intent-driven-dev:mainfrom
YunyunZhai:feat/commandcode-support
Open

feat: add Command Code support via .commandcode/ mirror#5
YunyunZhai wants to merge 2 commits into
intent-driven-dev:mainfrom
YunyunZhai:feat/commandcode-support

Conversation

@YunyunZhai

Copy link
Copy Markdown

Summary

Adds native Command Code support to this template by mirroring the OpenCode workflow into a .commandcode/ directory. Command Code discovers skills, slash commands, and subagents from .commandcode/ (and already loads shared skills from .agents/skills/), but it does not read .opencode/.

Changes

  • .commandcode/skills/ — the OpenSpec lifecycle skills, with tool names adapted to Command Code's native tools:
    • AskUserQuestion toolask_user_question tool
    • TodoWrite tooltodo_write tool
    • Task tool (subagent_type: "general-purpose") → agent tool (subagent_type: "general")
    • Skill toolactivate_skill tool
    • opencode subagents / OpenCode subagentsCommand Code subagents
  • .commandcode/commands/ — the opsx-* slash commands.
  • .commandcode/agents/adversarial-author, adversarial-reviewer, senior-dev, senior-qa, translated to Command Code subagent frontmatter (dropping OpenCode-specific mode: subagent, permission, and OpenCode model ids).
  • README.md — documents Command Code support and the .commandcode/ mirror.

Why a mirror instead of shared skills

The OpenSpec lifecycle skills currently live in .opencode/skills/, which Command Code cannot discover. The shared collaboration skills (grill-me, c4-diagrams, etc.) already live in .agents/skills/ and load in both tools unchanged, so they are not duplicated.

Validation

  • cmd skills list in the template directory reports 19 project skills loading cleanly (10 from .commandcode/skills/ + 9 from .agents/skills/), with no failures.
  • The original .opencode/ and .agents/ contents are unchanged, so existing OpenCode users are unaffected.

Co-authored-by: CommandCodeBot noreply@commandcode.ai

YunyunZhai and others added 2 commits September 1, 2026 17:47
Add a Command Code-native mirror of the OpenCode workflow so the same
OpenSpec intent-driven template can be used from Command Code.

- .commandcode/skills/: OpenSpec lifecycle skills with tool names adapted
  to Command Code tools (ask_user_question, todo_write, agent, activate_skill).
- .commandcode/commands/: opsx-* slash commands.
- .commandcode/agents/: adversarial-author, adversarial-reviewer, senior-dev,
  senior-qa translated to Command Code subagent frontmatter.
- README: document Command Code support.

Command Code already discovers the shared skills under .agents/skills/, so
the .commandcode/ mirror only needs the OpenSpec lifecycle skills and agents
that live under OpenCode's .opencode/ directory.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Document how to install the template for both OpenCode and Command Code,
including the per-tool directory mapping and Command Code validation step.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
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.

1 participant