feat: add Command Code (cmdc) CLI integration#3465
Open
doxoncde wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
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
cmdcskills-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.""" |
| @@ -3,59 +3,97 @@ | |||
| "updated_at": "2026-06-23T00:00:00Z", | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary