Loading...
Loading...
Design domain-specific agent teams, define specialized agents, and generate the skills they use. Use when you need to decompose a complex project into coordinated multi-agent teams, choose the right architecture pattern (pipeline, fan-out/fan-in, expert pool, producer-reviewer, supervisor, hierarchical delegation), generate .claude/agents/ and .claude/skills/ files, or validate and iterate on generated harnesses. Triggers on: harness, build a harness, design agent team, agent team architecture, multi-agent skill generation, set up harness, harness engineering, domain agent team, harness for this project.
npx skill4agent add akillness/oh-my-skills harnessKeyword:·harness·build a harness·design agent teamharness engineeringMeta-skill: harness designs the teams and skills that run your domain work.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1.claude/agents/{name}.md.claude/skills/{name}/SKILL.mdTeamCreateSendMessageAgent| Pattern | When to use | Example |
|---|---|---|
| Pipeline | Sequential dependent stages | Design → Code → Review → Deploy |
| Fan-out/Fan-in | Parallel independent work merged at the end | 4 researchers → synthesizer |
| Expert Pool | Dynamic routing by input type | Route to security, perf, or style expert |
| Producer-Reviewer | Generation + validation cycle | Writer + Editor loop |
| Supervisor | Central coordinator with dynamic assignment | Supervisor + migrators |
| Hierarchical Delegation | Recursive decomposition (max 2 levels) | PM → Tech Lead → Engineers |
.claude/agents/{name}.mdAgent.claude/agents/{agent-name}.md---
name: {agent-name}
description: {role and activation conditions}
model: opus
allowed-tools: {tool list}
---
# {Agent Name}
## Core Responsibilities
- {primary responsibility 1}
- {primary responsibility 2}
## Operational Principles
1. {principle 1}
2. {principle 2}
## Input Protocol
- Receives: {what inputs this agent consumes}
- Format: {expected format}
## Output Protocol
- Produces: {what outputs this agent delivers}
- Format: {output format and location}
## Error Handling
- On failure: {recovery behavior}
- Escalation: {when to notify orchestrator}
## Team Communication
- Reports to: {orchestrator or peer}
- Communicates with: {peer agents via SendMessage}
- Completion signal: {how to signal done}model: opus.claude/skills/{skill-name}/SKILL.mdSKILL.mdreferences/scripts/Before running: ensureis set in your environment for agent team mode.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
_workspace/bash scripts/validate-harness.sh .claude/agents/ .claude/skills/Prompt: "Build a harness for deep technology research"
Generated agents:
.claude/agents/official-researcher.md — documentation & official sources
.claude/agents/media-researcher.md — investment trends & news
.claude/agents/community-researcher.md — social response & forums
.claude/agents/background-researcher.md — competitive landscape
.claude/agents/research-orchestrator.md — synthesizes findings
Pattern: Fan-out/Fan-in (4 parallel researchers → orchestrator)Prompt: "Design an agent team for thorough code review"
Generated agents:
.claude/agents/security-reviewer.md — OWASP, injection, secrets
.claude/agents/performance-reviewer.md — complexity, memory, latency
.claude/agents/testing-reviewer.md — coverage, assertions, mocks
.claude/agents/review-orchestrator.md — consolidates findings
Key feature: reviewers communicate directly (cross-domain issue detection)Prompt: "Build a harness for webtoon production"
Phase 1 (parallel): worldbuilder + character-designer + plot-architect
Phase 2 (sequential): prose-stylist writes based on Phase 1
Phase 3 (parallel): science-consultant + continuity-manager review
Phase 4 (sequential): prose-stylist incorporates feedbackAgentTeamCreateSendMessage_workspace/