A Claude Code skill for designing agents, commands, and skills. Harness to write harness.
claude skill install lightfastai/metaharnessMetaharness guides you through designing Claude Code harness components with structural consistency and best practices. It handles:
- Agents (
.claude/agents/*.md) — isolated subagents for focused subtasks - Commands (
.claude/commands/*.md) — user-invoked slash commands - Skills (
SKILL.md) — domain knowledge + workflow guidance
/metaharness
Or just describe what you want — the skill auto-triggers on phrases like "create an agent", "design a skill for X", "improve this agent".
metaharness/
├── SKILL.md # Main skill — 6-phase workflow
└── resources/
├── agent-anatomy.md # Structural template with all required sections
├── best-practices.md # Design principles + named anti-patterns
└── evaluation-checklist.md # Pass/fail quality review criteria
- Understand Intent — what's the job, what's the boundary, who consumes the output
- Research Existing — read all agents/commands/skills for consistency
- Design — apply the anatomy template and best practices
- Write — produce the component file
- Evaluate — run the checklist (redundancy, scope, structure, quality)
- Iterate — refine based on feedback
The skill encodes lessons from production agent design:
- One agent, one job — if you need two sentences to describe it, it's two agents
- Each instruction lives in exactly one section — no redundancy across CRITICAL, Core Responsibilities, Protocol, and What NOT to Do
- Output is a contract — structured templates when agents consume the output, flexible when humans do
- Description is the dispatch trigger — scannable, one sentence, states WHAT not HOW
- Minimum viable tool set — every extra tool is scope creep
- REMEMBER anchor — the last line gets disproportionate weight
The evaluation checklist catches these by name:
| Anti-Pattern | Symptom |
|---|---|
| Swiss Army Agent | 4+ responsibilities, 8+ tools, does 5 things adequately instead of 1 thing well |
| Echo Agent | Same instruction repeated in CRITICAL, Responsibilities, Protocol, and What NOT to Do |
| Rigid Template Agent | Output template can't adapt to query variety |
| Critic-by-Default Agent | Research agent that spontaneously suggests improvements |
| Context Hog | Prompt over 150 lines eating into working context |
MIT