6aa9431b24
* Add Command Code integration to spec-kit 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) * Fix issue template agent lists to include command-code The runtime AGENT_CONFIG now includes command-code, but the GitHub issue templates and the consistency test's expected key list were not updated, failing test_issue_template_agent_lists_match_runtime_integrations. Co-authored-by: CommandCodeBot <noreply@commandcode.ai> Assisted-by: Command Code (autonomous) --------- Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
48 lines
1.4 KiB
Python
48 lines
1.4 KiB
Python
"""Tests for CommandCodeIntegration — skills-based integration (Command Code)."""
|
|
|
|
from .test_integration_base_skills import SkillsIntegrationTests
|
|
|
|
|
|
class TestCommandCodeIntegration(SkillsIntegrationTests):
|
|
KEY = "command-code"
|
|
FOLDER = ".commandcode/"
|
|
COMMANDS_SUBDIR = "skills"
|
|
REGISTRAR_DIR = ".commandcode/skills"
|
|
|
|
|
|
class TestCommandCodeInvocation:
|
|
"""Command Code renders $speckit-* chat invocations (like Codex/ZCode)."""
|
|
|
|
def test_next_steps_show_dollar_skill_invocation(self, tmp_path):
|
|
import os
|
|
|
|
from typer.testing import CliRunner
|
|
|
|
from specify_cli import app
|
|
|
|
project = tmp_path / "command-code-next-steps"
|
|
project.mkdir()
|
|
old_cwd = os.getcwd()
|
|
try:
|
|
os.chdir(project)
|
|
runner = CliRunner()
|
|
result = runner.invoke(
|
|
app,
|
|
[
|
|
"init",
|
|
"--here",
|
|
"--integration",
|
|
"command-code",
|
|
"--ignore-agent-tools",
|
|
"--script",
|
|
"sh",
|
|
],
|
|
catch_exceptions=False,
|
|
)
|
|
finally:
|
|
os.chdir(old_cwd)
|
|
|
|
assert result.exit_code == 0
|
|
assert "$speckit-constitution" in result.output
|
|
assert "/speckit.constitution" not in result.output
|