Skip to content

Add Command Code integration to spec-kit - #4019

Open
Angelthebestone wants to merge 1 commit into
github:mainfrom
Angelthebestone:feat/command-code-integration
Open

Add Command Code integration to spec-kit#4019
Angelthebestone wants to merge 1 commit into
github:mainfrom
Angelthebestone:feat/command-code-integration

Conversation

@Angelthebestone

Copy link
Copy Markdown

Summary

Adds Command Code as a first-class built-in integration so Spec Kit can be installed into Command Code with:

specify init my-project --integration command-code

Command Code discovers agent skills from .commandcode/skills/<name>/SKILL.md (project) or ~/.commandcode/skills/ (personal), which matches the speckit-<name>/SKILL.md layout Spec Kit's SkillsIntegration base class generates. Skills are invoked in chat as $speckit-<command> (dollar-prefix chat invocation, like Codex/ZCode).

Changes

  • New integration class CommandCodeIntegration (src/specify_cli/integrations/command_code/__init__.py), a SkillsIntegration subclass:
    • Installs skills into .commandcode/skills/
    • requires_cli: True (CLI is cmdc/command-code on PATH; supports -p/--output-format json dispatch)
    • Declared multi-install safe (static, isolated .commandcode/ agent root), so it can coexist with Claude Code, Codex, etc.
  • Registry: registered in _register_builtins() (import + _register()) and added to integrations/catalog.json.
  • Invocation style: added command-code to DOLLAR_SKILLS_AGENTS so specify init next-steps and hook references render $speckit-*.
  • Tests: tests/integrations/test_integration_command_code.py reuses the SkillsIntegrationTests mixin (setup/teardown, file inventory, frontmatter, uninstall round-trip, multi-install) plus a $speckit-* next-steps invocation test; command-code added to ALL_INTEGRATION_KEYS in test_registry.py.
  • Docs: README note and docs/reference/integrations.md (supported-agents table + multi-install-safe table).

Verification

  • pytest tests/integrations/test_integration_command_code.py31 passed
  • pytest tests/integrations/test_registry.py664 passed (includes multi-install-safe contracts)
  • Full tests/integrations suite — all files green (only pre-existing skips/warnings)
  • Manual smoke test:
specify init smoke-test-proj --integration command-code --script sh

Produced .commandcode/skills/speckit-{analyze,checklist,clarify,constitution,converge,implement,plan,specify,tasks,taskstoissues}/SKILL.md and next-steps showing $speckit-constitution, $speckit-specify, etc. (no /speckit.constitution).

Adds `command-code` as a built-in skills-based integration so Spec Kit can
be installed into Command Code. Command Code loads agent skills from
`.commandcode/skills/speckit-<name>/SKILL.md` and invokes them in chat as
`$speckit-<command>`.

- New `CommandCodeIntegration` (SkillsIntegration) writing to
  `.commandcode/skills/`; declared multi-install safe (static, isolated
  agent root).
- Register in `_register_builtins()` and the integration catalog.
- Add `command-code` to `DOLLAR_SKILLS_AGENTS` so next-steps guidance
  renders `$speckit-*` invocations.
- Tests: reuse `SkillsIntegrationTests` mixin plus a dollar-invocation
  next-steps test; registry completeness updated.
- Docs: README and docs/reference/integrations.md (supported agents +
  multi-install-safe table).

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Assisted-by: Command Code (autonomous)
Copilot AI balanced review requested due to automatic review settings August 8, 2026 09:25
@Angelthebestone
Angelthebestone requested a review from mnriem as a code owner August 8, 2026 09:25

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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