Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guidelines for designing tools and action spaces for AI agents. Use when building agent harnesses, designing tool interfaces, creating elicitation mechanisms, or optimizing agent-tool interactions. Covers progressive disclosure, tool design patterns, and lessons from Claude Code development.
.claude/skills/majiayu000-agent-design/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-18 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 13% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 8% | 0% |
Skill for designing high-performance AI agents following 2025 patterns.
| Type | Control | When to use | |------|---------|-------------| | Workflow | Code orchestrates LLM | Predictable tasks, need for control | | Agent | LLM directs its actions | Flexibility, adaptive decisions |
Golden rule: Start simple, add complexity if necessary.
yamlAgent: identity: Who am I? capabilities: What can I do? tools: What tools do I have? constraints: What are my limits? workflow: How should I proceed?
markdown--- name: my-agent description: Short description model: sonnet|opus tools: [list of tools] skills: [associated skills] --- # Identity [Who the agent is] # Capabilities [What it can do] # Workflow [Steps to follow] # Tools [How to use each tool] # Constraints [Limits and rules] # Examples [Use cases] # Forbidden [What it must NEVER do]
User → Agent → ResponseUsage: Simple tasks, rapid prototyping.
User → Agent ↔ Tools → Response
↑
Tool ResultsUsage: Tasks requiring external access (API, files, DB).
User → Orchestrator → Subagent 1 (specialized)
→ Subagent 2 (specialized)
→ Subagent 3 (specialized)
↓
Synthesis → ResponseUsage: Complex tasks, separation of responsibilities.
User → Agent 1 → Agent 2 → Agent 3 → Response
(Analyze) (Plan) (Execute)Usage: Linear processes (e.g., Analyst → Architect → Developer).
Key 2025 concept: Each sub-agent must have a "fresh" context.
❌ Bad: Pass entire history to each sub-agent
✅ Good: Give only necessary information
Orchestrator:
- Keeps complete history
- Extracts relevant context for each sub-agent
- Synthesizes resultsmarkdown--- name: [kebab-case-name] description: [1-2 lines max] model: sonnet color: blue tools: Read, Edit, Write, Bash, Grep, Glob skills: [associated-skills] --- # [Agent Name] [Purpose description] ## Core Principles 1. **[Principle 1]**: [Short explanation] 2. **[Principle 2]**: [Short explanation] ## Workflow (MANDATORY) ### Phase 1: [Name]
Numbered actions]
### Phase 2: [Name]Numbered actions]
## Output Format
[Response structure]
## Forbidden
- [Prohibition 1]
- [Prohibition 2]You know everything and can do anything.You are an expert in [specific domain].
For topics outside your domain, redirect to the appropriate agent.Do what's logical.Step 1: Analyze the problem
Step 2: Propose 3 solutions
Step 3: Recommend the best with justificationExecute the task.IF the task fails:
1. Identify the cause
2. Propose an alternative
3. Ask for confirmation before retryingOther measured skills in the registry, with their headline benchmark lift.