Skip to content

feat(tools): add Command Code support as a skills-only tool - #1613

Merged
clay-good merged 2 commits into
Fission-AI:mainfrom
Angelthebestone:feat/command-code-support
Aug 11, 2026
Merged

feat(tools): add Command Code support as a skills-only tool#1613
clay-good merged 2 commits into
Fission-AI:mainfrom
Angelthebestone:feat/command-code-support

Conversation

@Angelthebestone

@Angelthebestone Angelthebestone commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Part of #1614

Summary

Summary by CodeRabbit

  • New Features

    • Added Command Code integration for openspec init.
    • OpenSpec skills are now installed under .commandcode/skills/.
    • Command Code users can invoke OpenSpec workflows with /openspec-* commands.
    • Added Command Code to the supported tools list.
    • Added continue as an accepted tool option for openspec init --tools.
    • Command Code initialization now uses skills without generating additional commands.
  • Documentation

    • Updated CLI and supported-tools documentation with the new tool options and integration details.

Register Command Code in AI_TOOLS with skillsDir `.commandcode`, so
`openspec init`/`update` install the OpenSpec skills where Command Code
discovers them (.commandcode/skills/<name>/SKILL.md) and reference them
with the `/openspec-*` invocations its skill surface registers.

No command adapter: Command Code has no slash-command files, so the
skills-only target behaves like other adapterless tools and reports
"Commands skipped for: command-code ^(no adapter^)".

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@Angelthebestone
Angelthebestone requested a review from a team as a code owner August 8, 2026 00:05
@Angelthebestone
Angelthebestone requested review from clay-good and removed request for a team August 8, 2026 00:05
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Command Code is added as a skills-only tool. Configuration, documentation, detection, initialization behavior, tests, and release-note coverage are included.

Changes

Command Code support

Layer / File(s) Summary
Register and document Command Code
src/core/config.ts, docs/cli.md, docs/supported-tools.md, test/core/available-tools.test.ts
Adds the command-code tool ID and .commandcode skills directory. Documents invocation details and supported IDs. Validates directory detection.
Validate skills-only initialization
test/core/init.test.ts, .changeset/friendly-commandcode-support.md
Verifies skill installation under .commandcode/skills, /openspec-* references, omitted command generation, and the adapterless log message. Records the minor release change.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: clay-good, tabishb, alfred-openspec

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding Command Code support as a skills-only tool.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/supported-tools.md`:
- Line 73: Update the skills-only invocation table near the existing Command
Code documentation so it includes Command Code with its skill-based
`/openspec-*` invocation and no generated command files, matching the newly
added command-code row and keeping both sections consistent.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 757d12c6-7b23-4ead-8719-0efe3b3a9571

📥 Commits

Reviewing files that changed from the base of the PR and between e50bd09 and c8e5040.

📒 Files selected for processing (6)
  • .changeset/friendly-commandcode-support.md
  • docs/cli.md
  • docs/supported-tools.md
  • src/core/config.ts
  • test/core/available-tools.test.ts
  • test/core/init.test.ts

Comment thread docs/supported-tools.md
Keeps the How-To-Invoke table consistent with the Tool Directory
Reference row added for Command Code.

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

@alfred-openspec alfred-openspec left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Command Code supports custom commands, so skills-only leaves commands-delivery users with no OpenSpec entry point. Please complete the command-adapter path in #1622 instead, including commands-only and update coverage; I am holding approval here to avoid merging overlapping implementations.

@clay-good
clay-good dismissed alfred-openspec’s stale review August 11, 2026 20:25

Dismissing: skills-only is an intentional incremental step, not the final state. The skills/commands split alfred flags is resolved immediately by #1622 (the Command Code command adapter), which lands right after this in the same merge train. Deep QA confirms zero regression (3861 pass / only the 2 known pre-existing failures) and a byte-consistent skills-only registration matching the established CodeArts pattern.

@clay-good clay-good left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approving after independent deep QA (maintainer self-review): full suite green against dist except the two documented pre-existing failures (config-profile PATH test, artifact-workflow Cursor test) — zero regression. New AI_TOOLS entry has no hidden count/ordering/snapshot coupling, and the skills-only registration is byte-consistent with the CodeArts pattern (skillsDir only, no command adapter). Skills-only is an intentional incremental step; #1622 adds the command adapter next in this merge train. Thanks @Angelthebestone.

@clay-good
clay-good added this pull request to the merge queue Aug 11, 2026
Merged via the queue into Fission-AI:main with commit 42d7f67 Aug 11, 2026
14 checks passed
clay-good added a commit that referenced this pull request Aug 11, 2026
Command Code documents custom slash commands under
`.commandcode/commands/`, where the command name is the markdown
filename without its `.md` extension (see
https://commandcode.ai/docs/reference/slash-commands). That is the same
flat naming Cursor and OpenCode use, so a standard flat adapter writing
`.commandcode/commands/opsx-<id>.md` registers `/opsx-<id>`.

Registering the adapter flips Command Code from `none` to
`adapter-backed`, so with the default `both` delivery `openspec init`
now generates OpenSpec commands alongside the skills it already installs
under `.commandcode/skills/`.

Builds on #1613, which registered Command Code as a skills-only tool.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
clay-good added a commit to Patodo/OpenSpec that referenced this pull request Aug 11, 2026
…ission-AI#1622)

* feat(tools): add Command Code command adapter for /opsx-* commands

Command Code documents custom slash commands under
`.commandcode/commands/`, where the command name is the markdown
filename without its `.md` extension (see
https://commandcode.ai/docs/reference/slash-commands). That is the same
flat naming Cursor and OpenCode use, so a standard flat adapter writing
`.commandcode/commands/opsx-<id>.md` registers `/opsx-<id>`.

Registering the adapter flips Command Code from `none` to
`adapter-backed`, so with the default `both` delivery `openspec init`
now generates OpenSpec commands alongside the skills it already installs
under `.commandcode/skills/`.

Builds on Fission-AI#1613, which registered Command Code as a skills-only tool.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(tools): preserve Command Code command arguments

* test(command-code): cover commands-only delivery and openspec update

Addresses review: prove the Command Code adapter survives both the
commands-only init path and the update path, not just default delivery.

- init: delivery=commands generates .commandcode/commands/opsx-explore.md
  and installs no skills.
- update: a detected .commandcode install regenerates the flat
  opsx-<id>.md command (plain Markdown, $ARGUMENTS injected).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.

3 participants