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/qinye6/pi-ccg/spec-initgit clone --depth 1 https://github.com/qinye6/pi-ccgWrote 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/qinye6/pi-ccg/spec-init)<a href="https://agentmods.dev/commands/qinye6/pi-ccg/spec-init"><img src="https://agentmods.dev/badge/commands/qinye6/pi-ccg/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.01115 |
| Opus 5 | $0.00009 | $0.00558 |
| Sonnet 5 | $0.00004 | $0.00223 |
| Haiku 4.5 | $0.00002 | $0.00112 |
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 3d 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" This is a copy
100% identical to spec-init — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
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}}- "{{WORKDIR}}" - Test {{FRONTEND_PRIMARY}} backend:
echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}{{GROK_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.
- 3d ago First seen · 102 lines · 18 tokens per session scan B 84674b4d50cb
spec-init is a command published in the GitHub repository qinye6/pi-ccg (10 stars, last pushed 9d ago), licensed MIT. It adds 18 tokens to every session and 1,115 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (enumerates other installed skills). It is 100% identical to spec-init, differing in 4 lines, and is treated as a copy.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.