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/skullninja/coco-workflow/constitutiongit clone --depth 1 https://github.com/skullninja/coco-workflowWhat 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.00014 | $0.00637 |
| Opus 5 | $0.00007 | $0.00318 |
| Sonnet 5 | $0.00003 | $0.00127 |
| Haiku 4.5 | $0.00001 | $0.00064 |
Grade A, and why
constitution scanned grade A with 0 findings 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 2d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Goal
Create or update the project constitution at .coco/memory/constitution.md. The constitution defines non-negotiable principles that govern specification, planning, and task generation.
Setup
- Check if
.coco/memory/constitution.mdexists.- If yes: load it for amendment
- If no: load the template from
.coco/templates/constitution-template.mdif it exists, otherwise use${CLAUDE_PLUGIN_ROOT}/templates/constitution-template.md
Execution
1. Collect Principles
If user input provides principles, use them. Otherwise:
- Infer from existing repo context (README, docs, CLAUDE.md, existing config)
- Ask the user interactively about their project's core principles using categories:
- Technology choices (language, framework, platform APIs)
- Testing requirements (TDD, coverage thresholds)
- Performance requirements (benchmarks, latency targets)
- Architecture patterns (data layer, service layer)
- Code quality standards
- Security/accessibility requirements
- The user might need fewer or more principles than the template provides. Respect their choice.
2. Draft Constitution
Replace all placeholder tokens with concrete text:
- Each principle: name, non-negotiable rules (MUST/SHOULD), rationale
- Governance: amendment procedure, versioning, compliance review
- Definition of Done criteria aligned with principles
- Version following semantic versioning:
- MAJOR: Principle removals or redefinitions
- MINOR: New principle added or materially expanded
- PATCH: Clarifications, wording fixes
3. Consistency Propagation
Check that dependent files align with the new constitution:
.coco/templates/design-template.mdor${CLAUDE_PLUGIN_ROOT}/templates/design-template.md-- Constitution Check section + scope alignment.coco/templates/tasks-template.mdor${CLAUDE_PLUGIN_ROOT}/templates/tasks-template.md-- task categorization
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.
- 2d ago First seen · 85 lines · 14 tokens per session scan A f3bb17ba0dd4
constitution is a command published in the GitHub repository skullninja/coco-workflow (7 stars, last pushed 3d ago), licensed MIT. It adds 14 tokens to every session and 637 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
super-dev
Command "super-dev" from shangyankeji/super-dev, covering /super-dev (claude-code), 输入, super dev runtime contract, local knowledge contract and 首轮响应契约(首次触发必须执行).
super-dev-seeai
Command "super-dev-seeai" from shangyankeji/super-dev, covering /super-dev-seeai (claude-code), 输入, seeai 定位, 半小时时间盒 and 首轮输出模板.
implement
You are the phase dispatcher. Your job is to route implementation work to the correct phase agent with the right context.
retro
You are generating a retrospective report for a completed feature. Your job is to analyze git history and project artifacts to surface patterns, measure delivery quality, and suggest workflow improvements.
progress
You are generating a visual progress report showing which phases are complete, in-progress, or pending for the current feature.
commit
You are creating a conventional commit scoped to the current phase of work.