Skip to content

feat: add Command Code (cmdc) CLI integration#3465

Open
doxoncde wants to merge 3 commits into
github:mainfrom
doxoncde:feat/add-cmdc-integration
Open

feat: add Command Code (cmdc) CLI integration#3465
doxoncde wants to merge 3 commits into
github:mainfrom
doxoncde:feat/add-cmdc-integration

Conversation

@doxoncde

Copy link
Copy Markdown

Summary

@doxoncde doxoncde requested a review from mnriem as a code owner July 11, 2026 02:09

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.

Pull request overview

Adds a new built-in Command Code (cmdc) integration to Specify CLI, wiring it into the integration registry, documentation, issue templates, and the integrations catalog so users can specify init --integration cmdc and get a skills-based layout.

Changes:

  • Introduces the cmdc skills-based integration and registers it as a built-in integration.
  • Adds integration-specific tests and updates agent config consistency checks.
  • Updates docs, issue templates, and the integrations catalog to list Command Code.
Show a summary per file
File Description
tests/test_agent_config_consistency.py Adds cmdc to the integration consistency allowlist.
tests/integrations/test_integration_cmdc.py New tests asserting cmdc init creates skills and uses /speckit-… invocations.
src/specify_cli/integrations/cmdc/init.py Implements the new cmdc SkillsIntegration adapter.
src/specify_cli/integrations/init.py Registers the new integration in the built-in registry.
README.md Documents specify init --integration cmdc usage.
integrations/catalog.json Adds cmdc catalog entry (and reformats catalog).
docs/installation.md Adds Command Code to prerequisites and init examples.
.github/ISSUE_TEMPLATE/feature_request.yml Adds Command Code to the agent dropdown.
.github/ISSUE_TEMPLATE/bug_report.yml Adds Command Code to the agent dropdown.
.github/ISSUE_TEMPLATE/agent_request.yml Adds Command Code to the “currently supported agents” list.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 10/10 changed files
  • Comments generated: 4
  • Review effort level: Low

Comment on lines +13 to +16
class CmcIntegration(SkillsIntegration):
"""Integration for Command Code CLI."""

key = "cmdc"
Comment on lines +51 to +61
"""CMDC uses ``cmdc -p "prompt"`` for non-interactive mode.

The ``-p`` / ``--print`` flag runs cmdc in headless mode,
outputting the response and exiting. The ``--model`` flag
selects a specific model when provided.
"""
args: list[str] = [self._resolve_executable(), "-p", prompt]
self._apply_extra_args_env_var(args)
if model:
args.extend(["--model", model])
return args
Comment on lines +1 to +17
"""Tests for CmcIntegration."""

from specify_cli.integrations import get_integration
from specify_cli.integrations.manifest import IntegrationManifest

from .test_integration_base_skills import SkillsIntegrationTests


class TestCmcIntegration(SkillsIntegrationTests):
KEY = "cmdc"
FOLDER = ".commandcode/"
COMMANDS_SUBDIR = "skills"
REGISTRAR_DIR = ".commandcode/skills"


class TestCmcInitFlow:
"""--integration cmdc creates expected files."""
Comment thread integrations/catalog.json
@@ -3,59 +3,97 @@
"updated_at": "2026-06-23T00:00:00Z",
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