goal
CommandSet, check, or complete the persistent project goal stored in .goal.md. Trigger as /coco-goal or /coco:goal.
Use when the user runs /team develop, or the team router picks action develop, to build or fix code through a multi-agent pipeline. Shards files across L2 agents, then reviews with captured regression evidence.
$ npx -y skills add coco-research/coco --agent claude-code
description: "Use when the user runs /team develop, or the team router picks action develop, to build or fix code through a multi-agent pipeline. Shards files across L2 agents, then reviews with captured regression evidence."
> Called by team.md router when action is `develop`.
| Layer | Preferred Roles | Count | |-------|----------------|-------| | L1 | technical-analyst, security-analyst | 2 | | L2 | senior-backend-eng, senior-frontend-eng, senior-cloud-architect, qa-test-architect, senior-data-eng, sre-devops, mcp-integration, performance-eng (if perf-related) | 3-5 (domain-dependent) | | L3 | domain-accuracy, doc-quality, security-analyst (if api/backend/infrastructure), architecture-reviewer (if `.arch/index.json` exists) | 2-5 | | L4 | principal-architect | 1 |
python3 ~/.claude/skills/team-gate/scripts/brownfield_map.py --for "<the feature or fix in words>" --repo-root .
exit 0: continue; read `.team-ship/BROWNFIELD-MAP.md` before reading any code. exit 1: not used; a map is not a pass or fail judgement. exit 2: UNVERIFIED; quote the gate file's summary (gates/handoff-1-map.json).
No develop-pipeline aggregator exists to require this gate file; the map is the first step by instruction.
L1 agents focus on the following areas.
1. Run `run_gate.py discover` then `run_gate.py run` for the baseline, before any Layer 2 agent commits.
python3 ~/.claude/skills/team-gate/scripts/run_gate.py --repo-root . discover python3 ~/.claude/skills/team-gate/scripts/run_gate.py --repo-root . run
exit 0: continue and quote each gate file's summary (gates/7-discover.json, gates/8.json), and record gates/8.json's head field now as the base for the red-green proof; that file is rewritten by the Regression Tests run. exit 1: BLOCK; for the command that stopped, quote its gate file's summary and loop back to Layer 2 execution. exit 2: UNVERIFIED; for the command that stopped, quote its gate file's summary; the suite is not confirmed passing until the gate passes or an override receipt names the gate.
L2 agents receive file ownership boundaries (I10), covering the following areas.
YOUR FILES: [list] DO NOT TOUCH: [files owned by other agents]
**Architecture context is advisory, not an allocation mechanism.**
python3 ~/.claude/skills/team-gate/scripts/arch_gate.py --repo-root .
exit 0: continue and quote `.arch/ARCH-GATE.json`; inline the component table from `.arch/INDEX.md` into each L2 prompt (max 25 lines) so agents know where each component's code lives. exit 1: BLOCK; a REMOVE verdict, quote the reason from `.arch/ARCH-GATE.json`. exit 2: UNVERIFIED; the index is absent (no .arch/index.json, which the script reports as not found), the pin is behind HEAD, or drift is unreconciled; omit the component-table block from each L2 prompt rather than quoting it.
Do **not** derive `YOUR FILES` from the index. The index sits at C4-Container altitude while work is sharded at module altitude, and the two do not line up: in this repository a legal five-component index assigns `skills/`, 1,087 files, to a single component. A typical feature also spans three components at once. Scope-based splitting stays authoritative for ownership; the index only tells an agent which boundary it is working inside.
**Toolkit integration:**
**Permission Mode:** `bypassPermissions`, agents need to create/edit files and run tests.
Run after all Layer 2 agents complete, before Layer 3, per the Test Evidence Protocol (`team:evidence.md`).
python3 ~/.claude/skills/team-gate/scripts/run_gate.py --repo-root . discover python3 ~/.claude/skills/team-gate/scripts/run_gate.py --repo-root . run python3 ~/.claude/skills/team-gate/scripts/run_gate.py --repo-root . coverage
exit 0: continue and quote each gate file's summary (gates/7-discover.json, gates/8.json, gates/10.json). exit 1: BLOCK; for the command that stopped, quote its gate file's summary and loop back to Layer 2 execution. exit 2: UNVERIFIED; for `coverage`, no pytest-shaped command gives NOT_APPLICABLE, which still blocks unless an override receipt names gate "coverage"; for any other command that stopped, the suite is not confirmed passing until the gate passes or an override receipt names the gate.
Provision what CI provisions. When something cannot be provisioned, record "override integration: <reason>" in your own words as the human, and run_gate's skip rule decides the rest.
prove_red runs each test added since the base green at HEAD, reverts the implementation paths in a throwaway worktree and proves it goes red for the right reason; a never-red or invalid-red classification is BLOCK with the reason quoted from gates/9.json.
python3 ~/.claude/skills/team-gate/scripts/
495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.
Set, check, or complete the persistent project goal stored in .goal.md. Trigger as /coco-goal or /coco:goal.
Use when the user asks for a diagram or chart: flowchart, sequence, state, class, ER, or XY chart, as SVG, HTML, or terminal…
Show latest emails from a specific person. Usage: /email-read alice
Draft a reply to a specific email. Usage: /email-reply Project Phase 2 Contract Data
Save matching emails to a project folder for sync processing. Usage: /email-save alice to emails/
Search emails by subject keywords. Usage: /email-search github webhook
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.