Agent Development
Skill1 starsChanged 7 months agoMITView on GitHub
Build AI agents using the Claude Agent SDK. Design multi-step workflows, orchestrate tool usage, manage state across turns, and implement robust error recovery patterns. Trigger phrases: "build an agent", "create an agent", "agent development", "agent SDK", "multi-step agent", "tool orchestration", "agentic workflow"
13 other projects use a version of this.
Adopted by
Most recently taken up by
- Tgoldi/claude-skillstheir own version, first seen Oct 13, 2026
- LucasGS520/Claude-Skillstheir own version, first seen Sep 15, 2026
- jtfasulo7/ClaudeCodetheir own version, first seen Jun 9, 2026
- fintasportscorp-rgb/Finta_AI-configtheir own version, first seen May 25, 2026
- taeeho/ClaudeSkillstheir own version, first seen May 20, 2026
- ssdeanx/AgentStacktheir own version, first seen Apr 20, 2026
Used with
Projects with it also use Command Development, MCP Integration and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DanservfinnSkillCommand Development
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
Also in 7 projects that use this
Clay-HHKSkillMCP Integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.
Also in 6 projects that use this
DanservfinnSkillWriting Hookify Rules
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Also in 3 projects that use this
BrainDAOSkillPlugin Settings
This skill should be used when the user asks about "plugin settings", "store plugin configuration", "user-configurable plugin", ".local.md files", "plugin state files", "read YAML frontmatter", "per-project plugin settings", or wants to make plugin behavior configurable. Documents the .claude/plugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.
Also in 4 projects that use this
dean9703111SkillSkill Development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
Also in 5 projects that use this
Clay-HHKSkillPlugin Structure
This skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.
Also in 5 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- ssdeanx/AgentStack★ 44same name
- nilecui/SkillsBase★ 27same name
- HK-hub/AgentSkills★ 6same name
- pedropicardi/claude-raid★ 4same name
- taipt1504/agent-skills★ 4same name
- BrainDAO/iq-claude-config★ 2same name
- Clay-HHK/claude-skills★ 1same name
- fintasportscorp-rgb/Finta_AI-config★ 1same name
- Danservfinn/claude-skills★ 0same name
- jtfasulo7/ClaudeCode★ 0same name
3 more not listed
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 repository164 other files it gives its agents.
- instrument-data-to-allotropeSkill
- literature-reviewSkill
- nextflow-developmentSkill
- scientific-problem-selectionSkill
- scvi-toolsSkill
- single-cell-rna-qcSkill
- discover-brandSkill
- enforce-voiceSkill
- generate-guidelinesSkill
- csat-reportSkill
- customer-escalationSkill
- customer-researchSkill
- draft-responseSkill
- kb-articleSkill
- sentiment-analysisSkill
- ticket-triageSkill
- analyzeSkill
- build-dashboardSkill
- create-vizSkill
- data-context-extractorSkill
- data-modelingSkill
- data-pipelineSkill
- etl-designSkill
- explore-dataSkill
- sql-queriesSkill
- statistical-analysisSkill
- validate-dataSkill
- write-querySkill
- accessibility-reviewSkill
- component-librarySkill
- design-critiqueSkill
- design-handoffSkill
- design-systemSkill
- frontend-designSkill
- research-synthesisSkill
- user-researchSkill
- ux-copySkill
- wireframingSkill
- CLAUDE.md ManagementSkill
- MCP Server BuilderSkill
- Plugin DevelopmentSkill
- Prompt EngineeringSkill
- Skill CreatorSkill
- curriculum-designSkill
- lesson-planningSkill
- quiz-generatorSkill
- study-guideSkill
- tutoringSkill
- api-designSkill
- architectureSkill
- ci-cd-pipelineSkill
- code-reviewSkill
- database-migrationSkill
- debugSkill
- dependency-auditSkill
- deploy-checklistSkill
- documentationSkill
- error-handlingSkill
- git-workflowSkill
- incident-responseSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 13 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Description: - when and why the agent should use this tool
- Distinctive: line 74
Add timeout handling for external tool calls
- Distinctive: line 78
Write a system prompt that guides agent behavior:
- Distinctive: line 85
Escalation criteria: - when to ask the user for help
- Distinctive: line 99
Use structured objects, not free-form strings
- Distinctive: line 102
Add state validation before each agent step
- Distinctive: line 111
User escalation: - ask for help when the agent is stuck
- Distinctive: line 133
Test suite covering key scenarios
- Distinctive: line 142
Action: Create an agent with tools for web search, page reading, and note taking.
- Distinctive: line 148
Action: Create an agent with tools for log querying, metrics checking, service restarting, and notification sending.
- Distinctive: line 154
Action: Create an agent with tools for file reading, schema validation, data transformation, and database writing.
- Distinctive: line 164
Test the system prompt separately: - verify it produces good tool selection
- Distinctive: line 167
Keep state minimal: - only persist what the agent genuinely needs
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Development
Build reliable AI agents that execute multi-step workflows, orchestrate tools, maintain state, and recover from errors using the Claude Agent SDK.
Prerequisites
- Claude API access with appropriate model permissions
- Python 3.10+ or Node.js 18+ environment
- Understanding of the agent's domain and available tools
- Familiarity with async programming patterns
Workflow
Step 1: Define the Agent's Purpose
Establish the agent scope:
- Mission - single sentence describing what the agent accomplishes
- Capabilities - list of actions the agent can take
- Boundaries - what the agent should refuse or escalate
- Tools - external services and APIs the agent will call
- State requirements - what information persists across steps
- Success criteria - how to determine the agent completed its task
Step 2: Design the Tool Set
For each tool the agent will use:
- Name - descriptive snake_case identifier
- Description - when and why the agent should use this tool
- Parameters - input schema with types and validation
- Return type - what the tool returns on success
- Error modes - what can go wrong and how to signal it
- Side effects - does the tool modify external state
Group tools by category:
- Read tools - gather information without side effects
- Write tools - modify external state (require confirmation patterns)
- Compute tools - transform data locally
Step 3: Implement the Agent Loop
Build the core agent execution cycle:
1. Receive user input or task description
2. Plan the approach (system prompt guides strategy)
3. Select and call appropriate tool
4. Process tool result
5. Decide: task complete, need more tools, or error
6. If not complete, return to step 3
7. Return final result to userKey implementation details:
- Set a maximum iteration limit to prevent infinite loops
- Log each tool call and result for debugging
- Implement checkpoints for long-running tasks
- Add timeout handling for external tool calls
Step 4: Design the System Prompt
Write a system prompt that guides agent behavior:
- Role definition - what the agent is and its expertise
- Available tools - summary of each tool and when to use it
- Decision framework - how to choose between tools
- Output standards - format and quality requirements
- Error handling rules - what to do when tools fail
- Escalation criteria - when to ask the user for help
Step 5: Implement State Management
Design the state that persists across agent turns:
- Conversation history - messages exchanged with the model
- Tool call log - record of all tool invocations and results
- Task state - progress tracking for multi-step workflows
- Working memory - intermediate results the agent needs later
- Error state - failed attempts and retry counts
State management patterns:
- Use structured objects, not free-form strings
- Serialize state for persistence across sessions
- Implement state cleanup to prevent context overflow
- Add state validation before each agent step
Step 6: Add Error Recovery
Implement resilient error handling:
- Retry with backoff - transient failures get 2-3 retries
- Fallback tools - alternative approaches when primary tool fails
- Graceful degradation - partial results when full completion is impossible
- User escalation - ask for help when the agent is stuck
- State rollback - undo partial changes on failure
Step 7: Test the Agent
Validate agent behavior systematically:
- Happy path tests - standard inputs produce correct outputs
- Tool failure tests - agent recovers from individual tool errors
- Timeout tests - agent handles slow tools gracefully
- Edge case tests - unusual inputs do not crash the agent
- Loop detection tests - agent does not repeat the same failed action
- State tests - agent maintains correct state across many steps
Output Format
The skill produces:
- Agent implementation with tool definitions
- System prompt for agent behavior
- State management module
- Error recovery handlers
- Test suite covering key scenarios
- Configuration for deployment
Examples
Example 1: Research Agent
User: "Build an agent that researches a topic and writes a summary"
Action: Create an agent with tools for web search, page reading, and note taking. The agent plans its research, gathers sources, synthesizes findings, and produces a structured summary.
Example 2: DevOps Agent
User: "Create an agent that monitors and fixes deployment issues"
Action: Create an agent with tools for log querying, metrics checking, service restarting, and notification sending. Implements escalation when automated fixes fail.
Example 3: Data Pipeline Agent
User: "Build an agent that ingests, transforms, and validates data"
Action: Create an agent with tools for file reading, schema validation, data transformation, and database writing. Implements checkpoints and rollback on validation failure.
Best Practices
- Limit tool breadth - agents with fewer, well-defined tools outperform those with many
- Make tools idempotent - safe to retry without side effects
- Log everything - tool calls, decisions, and state changes
- Set hard limits - maximum iterations, timeout, and token budget
- Fail fast on invalid input - validate before starting the agent loop
- Use structured output - parse tool results into typed objects
- Test the system prompt separately - verify it produces good tool selection
- Monitor in production - track success rate, latency, and cost per task
- Version your tools - changing tool schemas requires updating the system prompt
- Keep state minimal - only persist what the agent genuinely needs
Error Handling
| Error | Cause | Recovery |
| Infinite loop | Agent repeats same action | Detect repeated tool calls, break after threshold |
| Context overflow | Too much state accumulated | Summarize old state, prune conversation history |
| Tool timeout | External service unresponsive | Apply timeout, retry once, then escalate |
| Invalid tool call | Agent sends wrong parameters | Validate parameters before execution, return clear error |
| State corruption | Inconsistent state after failure | Validate state at each step, rollback on detection |
| Budget exceeded | Too many API calls or tokens | Set hard budget limits, stop gracefully when reached |
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.

