CCG is a command-line workflow engine that coordinates Claude, Codex, Gemini, and other models as specialized collaborators on coding tasks. It is used to analyze requests, choose a strategy, delegate work to model-specific roles, and combine their results. The catalogue entries provide the skills, commands, agents, and plugin that implement this workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/fengshao1227/ccg-workflow/spec-initgit clone --depth 1 https://github.com/fengshao1227/ccg-workflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/fengshao1227/ccg-workflow/spec-init)<a href="https://agentmods.dev/commands/fengshao1227/ccg-workflow/spec-init"><img src="https://agentmods.dev/badge/commands/fengshao1227/ccg-workflow/spec-init.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00018 | $0.01139 |
| Opus 5 | $0.00009 | $0.00570 |
| Sonnet 5 | $0.00004 | $0.00228 |
| Haiku 4.5 | $0.00002 | $0.00114 |
Grade B, and why
spec-init scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Enumerates other installed skillsmediumAgent snooping
Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.
ls -la openspec/ .claude/skills/openspec-* 2>/dev/null || echo "Not initialized" Copies of this mod
1 near-identical copy found in the catalogue:
- spec-init — 100% identical, 4 lines differ
How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Core Philosophy
- OPSX provides the specification framework; CCG adds multi-model collaboration.
- This phase ensures all tools are ready before any development work begins.
- Fail fast: detect missing dependencies early rather than mid-workflow.
Guardrails
- Detect OS (Linux/macOS/Windows) and adapt commands accordingly.
- Do not proceed to next step until current step completes successfully.
- Provide clear, actionable error messages when a step fails.
- Respect user's existing configurations; avoid overwriting without confirmation.
Steps
-
Detect Operating System
- Identify OS using
uname -s(Unix) or environment variables (Windows). - Inform user which OS was detected.
- Identify OS using
-
Check and Install OpenSpec (OPSX)
- IMPORTANT: OpenSpec CLI command is
openspec, NOTopsx - Verify if OpenSpec is available:
npx @fission-ai/openspec --version - If not found, install globally:
npm install -g @fission-ai/openspec@latest - After installation, verify again:
openspec --version - If
openspeccommand not found after global install, usenpx:npx @fission-ai/openspec --version - Note: Always use
openspec(notopsx) for CLI commands.
- IMPORTANT: OpenSpec CLI command is
-
Initialize OPSX for Current Project
- 重要:所有命令必须在当前工作目录下执行,禁止
cd到其他路径。如不确定当前目录,先执行pwd确认。 - Check if already initialized:
ls -la openspec/ .claude/skills/openspec-* 2>/dev/null || echo "Not initialized" - If not initialized, run interactive setup (v1.2+ auto-detects AI tools):
npx @fission-ai/openspec init - Profile Selection (v1.2+):
coreprofile (default): 4 essential workflows (propose,explore,apply,archive)customprofile: Pick any subset of workflows- To change profile later:
openspec config profile
- Verify initialization:
- Check
openspec/directory exists - Check
.claude/skills/containsopenspec-*skills - Check
.claude/commands/opsx/contains OPSX commands
- Check
- Report any errors with remediation steps.
- 重要:所有命令必须在当前工作目录下执行,禁止
-
Validate Multi-Model MCP Tools
- Check
codeagent-wrapperavailability:~/.claude/bin/codeagent-wrapper --version - 工作目录:
{{WORKDIR}}必须通过 Bash 执行pwd(Unix)或cd(Windows CMD)获取当前工作目录的绝对路径,禁止从$HOME或环境变量推断。如果用户通过/add-dir添加了多个工作区,先确定任务相关的工作区。 - Test {{BACKEND_PRIMARY}} backend:
echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}{{GROK_MODEL_FLAG}}{{KIMI_MODEL_FLAG}}{{OPENCODE_MODEL_FLAG}}- "{{WORKDIR}}" - Test {{FRONTEND_PRIMARY}} backend:
echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}{{GROK_MODEL_FLAG}}{{KIMI_MODEL_FLAG}}{{OPENCODE_MODEL_FLAG}}- "{{WORKDIR}}" - For each unavailable tool, display warning with installation instructions.
- Check
-
Summary Report Display status table:
Component Status ───────────────────────────────── OpenSpec (OPSX) CLI ✓/✗ Project initialized ✓/✗ OPSX Skills ✓/✗ codeagent-wrapper ✓/✗ {{BACKEND_PRIMARY}} backend ✓/✗ {{FRONTEND_PRIMARY}} backend ✓/✗Next Steps (Use CCG Encapsulated Commands)
- Start Research:
/ccg:spec-research "description" - Plan & Design:
/ccg:spec-plan - Implement:
/ccg:spec-impl(Includes auto-review & archive)
Standalone Tools (Available Anytime)
- Code Review:
/ccg:spec-review(Independent dual-model review)
- Start Research:
Reference
- OpenSpec (OPSX) CLI:
npx @fission-ai/openspec --help - Profile Management:
openspec config profile - CCG Workflow:
npx ccg-workflow - 后端/前端模型 MCP: Bundled with codeagent-wrapper
- Node.js >= 18.x required for OpenSpec
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 102 lines · 18 tokens per session scan B 289603e22130
spec-init is a command published in the GitHub repository fengshao1227/ccg-workflow (5,872 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 1,139 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
OPSX: Bulk Archive
Archive multiple completed changes at once.
OPSX: Continue
Continue working on a change - create the next artifact (Experimental).
OPSX: New
Start a new change using the experimental artifact workflow (OPSX).
OPSX: Verify
Verify implementation matches change artifacts before archiving.
new
Starts a new end-to-end need (preflight, team, spawn OR).
OPSX: Onboard
Guided onboarding - walk through a complete OpenSpec workflow cycle with narration.