build-team
Skill0 starsChanged 4 months agoMITView on GitHub
Build a complete AI agent team for any domain. Full file generation with architecture design, agent definitions, skills, protocols, comms, and memory. Use when building a team, creating agents, setting up a floor, designing a department, or bootstrapping a new workload.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- 917Dhj/dkitchentheir own version, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- 917Dhj/dkitchen★ 10same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-teamSkill
- build-agentSkill
- build-pipelineSkill
- build-skillSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read research/decision-engine.md for all quantitative thresholds.
- Very specific: line 12
Every skill you generate must pass standards/skill-authoring.md (trigger-bearing description, 200-line cap, no hardcoded absolute paths, …
- Distinctive: line 16
Ask these questions one at a time.
- Distinctive: line 58
After picking a pattern, choose the output structure.
- Distinctive: line 79
Proactive risk identification: Before proceeding, check:
- Very specific: line 133
If MCP/external tools needed: read research/tool-integration-playbook.md, create .mcp.json.
- Distinctive: line 136
Every agent definition under 100 lines
- Very specific: line 137
Every skill under 200 lines (300 for pipelines).
- Very specific: line 138
Every CLAUDE.md under 150 lines, declares floor size (S1/S2/S3) and carries a State as of: YYYY-MM-DD stamp in its first 10 lines (Floor …
- Distinctive: line 139
Every agent declares exactly one authority tier: ADVISORY / COMMIT / BLOCK / VETO / HALT
- Distinctive: line 163
File manifest: Every file created with path and purpose
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build Team
Before Anything Else
- Read
research/decision-engine.mdfor all quantitative thresholds. This is your cheat sheet for every design decision. - Read
standards/floor-spec.md— the canonical floor anatomy your output must conform to (floor-size declaration S1/S2/S3,State as of:stamp, authority ladder ADVISORY/COMMIT/BLOCK/VETO/HALT, comms wire+board, memory caps, activation skill, lifecycle protocol). Its §Conformance Checklist is the acceptance test for any team this factory builds. - Every skill you generate must pass
standards/skill-authoring.md(trigger-bearing description, 200-line cap, no hardcoded absolute paths, changelog convention).
Step 1: INTAKE (Understand Before Building)
Ask these questions one at a time. Push back on vague answers.
- Domain: What does this team do? Get specific. "Software development" is too broad. "Frontend feature development with CI/CD and staging deploys" is specific enough to design for.
- Scale: How many agents? Use the decision engine:
- User says < 5 -> Functional team. Consider if one well-prompted agent suffices.
- User says 5-15 -> Pipeline or small Desk model.
- User says 15+ -> Desk model with divisions. Verify the work actually requires this scale.
- Push back if they ask for 20+ agents without clear justification. Coordination overhead scales super-linearly. A 20-agent flat team has 190 communication channels. Ask: "Can this be done with 3 divisions of 5 instead of 1 team of 20?"
- Key workflows: What are the 2-3 main things this team does daily? These become skills. If more than 5, the team is too broad. Decompose into sub-teams.
- Tools: What external systems? (APIs, databases, MCP servers, file systems, browsers). If external tools are needed, read
research/tool-integration-playbook.mdfor MCP patterns. - Authority: Who has veto/halt power? What decisions need human approval? Default: compliance/risk gets VETO, data/infrastructure gets HALT, deployment is always human.
- Quality: What does "good output" look like? What are the failure modes? This is the most important question. The failure modes define the kill criteria and gate design.
- Memory: File-based (simple, git-tracked) or database-backed (queryable, cross-agent)? Default: file-based unless team needs cross-session queries or vector search.
Step 2: ARCHITECTURE (Design the Org)
Mandatory reads before designing:
research/decision-engine.md-- all thresholds in one placeresearch/agent-architecture-playbook.md-- patterns, evidence, anti-patternsresearch/team-design-blueprint.md-- org design, handoffs, red team, peer review
Choose pattern using the decision tree:
Can one agent do this? → YES → Don't build a team.
Is the work decomposable? → YES → How many agents needed?
3-6: Functional (Pattern C) -- no manager layer
6-15: Pipeline (Pattern B) -- sequential stages with gates
15+: Desk (Pattern A) -- divisions with managers
Is the work sequential? → YES → Pipeline with single agents per stage.
NEVER add multiple agents within a sequential stage.
Multi-agent DEGRADES sequential tasks by 39-70% (Kim et al., 2025).Structure decision (single-team vs. multi-division):
After picking a pattern, choose the output structure. This determines the file tree.
| Condition | Structure | Example |
| Team is one cohesive unit, 4-8 agents, no natural sub-groups | Single-team | examples/dev-team/, examples/sales-team/ |
| Team has 2+ peer divisions (each with own playbook/memory) | Multi-division | examples/legal-team/ (single-div but scales to many) |
| Team is a long pipeline with 6+ distinct stages | Multi-division (each stage = a division) | Quant research pipeline, content production pipeline |
Default: Single-team. Only use multi-division if sub-groups genuinely need separate playbooks and memory. Artificial divisions create coordination overhead without benefit.
Design decisions (verify each one):
| Decision | Rule | Evidence |
| Division size | 4-6 agents (hard max 10) | Hackman, Mueller, Ringelmann |
| Manager per division? | Yes if 4+ specialists | Gallup: peak at 8-9 reports |
| Red team per division? | Yes, always, read-only | Bias blind spot (Pronin, 2002) |
| Model tiering | Opus orchestrator, sonnet specialists | +31% over homogeneous (Kim, 2025) |
| Review gate | 3-5 independent reviewers, unanimous | Single reviewer catches 25% (Schroter, 2008) |
| Handoff protocol | Structured templates, ACK/NACK | I-PASS: 23% error reduction (Starmer, NEJM 2014) |
Proactive risk identification: Before proceeding, check:
- Are any two agents likely to write the same files? Split ownership or add coordination.
- Is any agent both creating AND reviewing its own work? Separate creation from critique.
- Are there more than 10 tools assigned to any single agent? Decompose.
- Is the pipeline longer than 8 stages? Each stage adds coordination overhead. Justify.
Step 3: GENERATE (Write Every File)
File tree depends on structure chosen in Step 2.
Shared files (both structures)
| Output File | Template |
CLAUDE.md | templates/workspace-claude.md |
.claude/skills/command/SKILL.md | templates/skill-command.md |
.claude/skills/[workflow]/SKILL.md | templates/skill-task.md, skill-pipeline.md, or skill-parallel-spawn.md |
.claude/agents/[role].md | templates/agent-definition.md |
.claude/rules/desk-protocol.md | templates/desk-protocol.md (optional for small single-teams) |
comms/wire.md | templates/comms-wire.md |
comms/board.md | templates/comms-board.md |
comms/channels/all-hands.md | templates/comms-channel.md |
protocols/escalation-matrix.md | templates/protocol-escalation-matrix.md |
protocols/session-close.md | templates/protocol-session-close.md |
Multi-division only
| Output File | Template |
.claude/skills/activate-[div]/SKILL.md | templates/skill-activation.md |
divisions/[div]/CLAUDE.md | templates/division-claude.md |
divisions/[div]/memory/MEMORY.md | templates/memory-template.md |
divisions/[div]/memory/learning-ledger.md | Empty with header |
divisions/[div]/memory/patterns.md | Empty with header |
comms/channels/[division].md | templates/comms-channel.md (one per division) |
comms/handoffs/ | Directory, created empty |
comms/kill-log.md | Empty with header |
comms/pattern-library.md | Empty with header |
comms/skill-changelog.md | Empty with header |
protocols/kill-switch.md | templates/protocol-kill-switch.md |
protocols/decision-log.md | templates/protocol-decision-log.md |
protocols/failure-registry.md | templates/protocol-failure-registry.md |
divisions/[div]/inbox/ | Directory, created empty |
divisions/[div]/outbox/ | Directory, created empty |
Single-team only
| Output File | Template |
memory/MEMORY.md | templates/memory-template.md (at root, not under divisions/) |
comms/channels/[team-domain].md | templates/comms-channel.md (single domain channel, e.g., dev.md, sales.md) |
Single-teams can skip kill-log.md, pattern-library.md, skill-changelog.md, kill-switch.md, decision-log.md, and failure-registry.md on first build. Add them if and when the team hits scenarios that require them.
If MCP/external tools needed: read research/tool-integration-playbook.md, create .mcp.json.
Quality checks during generation:
- Every agent definition under 100 lines
- Every skill under 200 lines (300 for pipelines); passes
standards/skill-authoring.md - Every CLAUDE.md under 150 lines, declares floor size (S1/S2/S3) and carries a
State as of: YYYY-MM-DDstamp in its first 10 lines (Floor Spec) - Every agent declares exactly one authority tier: ADVISORY / COMMIT / BLOCK / VETO / HALT
- Binary gates (PASS/BLOCK), never advisory
- Mandatory pre-reads on every spawn
- Backward propagation on every failure path
- Red team agent has Write/Edit/Bash in disallowedTools and owns no files
Step 4: AUDIT (Run Before Delivery)
Run audit-team on the generated system. This catches wiring gaps, orphaned files, contradictions, and missing components. Target: Grade A or B. Also score the build against the Floor Spec §Conformance Checklist (standards/floor-spec.md) — every item PASS or N-A before delivery.
Additionally verify:
- Every agent has non-overlapping file ownership
- Every workflow has a skill with explicit steps and gates
- Every division has a CLAUDE.md with spawn order and rationale
- Handoff routes defined for every cross-division interaction
- Escalation matrix covers who resolves conflicts at each level
- At least one red team agent per division
- No two agents own the same files
Step 5: DELIVER
Present to the user:
- Summary: Team name, agent count, division count, key workflows
- Org chart: Text-based hierarchy with authorities marked
- File manifest: Every file created with path and purpose
- Quick start: "Read CLAUDE.md, then run the command skill"
- Risk register: What this team can't do, what needs human judgment, known limitations
- First session checklist: What to verify on the first real run
Parallel Fan-Out Note
For any multi-item batch (N ≥ 2 posts, audits, reviews, analyses, cleanups), spawn one top-level agent per item, running in parallel, rather than routing the batch through a single orchestrator that processes items serially or via internal sub-agents invisible to the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

