Skip to content

keysersoose/claude-agent-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—οΈ Claude Agent Builder

Turn any idea into production-ready AI agents in Claude Code

Stop writing agent files from scratch. Describe your problem β†’ get researched, architected, production-ready agents, skills, hooks, and commands β€” automatically.

License: MIT Claude Code Agent SDK PRs Welcome

Quick Start Β· How It Works Β· Examples Β· Patterns Β· Contributing


The Problem

Building agents in Claude Code means juggling 7 different primitives (subagents, skills, hooks, commands, MCP servers, CLAUDE.md, Agent SDK), reading scattered docs, and starting from blank Markdown files every time.

Claude Agent Builder fixes this. It's a skill that acts as your personal agent architect β€” it interviews you, researches what already exists, designs the optimal system, and generates every file you need.

⚑ Quick Start

macOS / Linux

git clone https://github.com/keysersoose/claude-agent-builder.git && cp -r claude-agent-builder/agent-builder ~/.claude/skills/

Windows (PowerShell)

git clone https://github.com/keysersoose/claude-agent-builder.git; Copy-Item -Recurse claude-agent-builder\agent-builder "$env:USERPROFILE\.claude\skills\agent-builder"

Windows (CMD)

git clone https://github.com/keysersoose/claude-agent-builder.git && xcopy /E /I claude-agent-builder\agent-builder "%USERPROFILE%\.claude\skills\agent-builder"
Other install methods
# macOS/Linux β€” install script
git clone https://github.com/keysersoose/claude-agent-builder.git
cd claude-agent-builder && ./install.sh

# macOS/Linux β€” project-level only
./install.sh --project
# Windows β€” install script (PowerShell)
git clone https://github.com/keysersoose/claude-agent-builder.git
cd claude-agent-builder; .\install.ps1

# Windows β€” project-level only
.\install.ps1 -Project
# Any platform β€” project-level manual
git clone https://github.com/keysersoose/claude-agent-builder.git
cp -r claude-agent-builder/agent-builder .claude/skills/

Open Claude Code and say:

Build me an agent that reviews my PRs for security issues and posts comments on GitHub

The skill triggers automatically. That's it.

🧠 How It Works

Agent Builder operates in 6 phases, adapting to how much context you provide:

  πŸ” CONTEXT SCAN β†’  Reads your project files + conversation history automatically
  πŸ“‹ DISCOVERY    β†’  Only asks what it can't figure out itself
  🌐 RESEARCH     β†’  Parallel search (GitHub + blogs + docs + community) β†’ consolidated brief
  πŸ“ ARCHITECTURE β†’  Proposes agents, gets your explicit approval before building
  πŸ”¨ BUILD        β†’  Writes all agent files directly into your project
  βœ… VERIFY       β†’  Self-checks everything, shows you what was built, asks for final OK

Why not just ask Claude directly?

Without Agent Builder With Agent Builder
You need to know all 7 primitives It picks the right ones for you
You write from blank .md files It writes production-ready files directly into your project
You guess at descriptions and tools It optimizes for auto-triggering
You explain your project from scratch It scans your codebase and conversation history first
You don't know what exists already It searches GitHub, blogs, docs, and community in parallel β€” then consolidates
Trial and error Proposes β†’ you approve β†’ it builds β†’ it verifies

πŸ“¦ What's Inside

agent-builder/
β”œβ”€β”€ SKILL.md                       # Core skill β€” 6-phase agent building workflow
β”œβ”€β”€ references/
β”‚   β”œβ”€β”€ primitives-guide.md        # Complete guide to all Claude Code building blocks
β”‚   └── agent-patterns.md          # 7 battle-tested multi-agent architecture patterns
└── scripts/
    β”œβ”€β”€ validate_agents.py         # Lint agent files for common issues
    └── scaffold_agent.py          # Generate starter files from templates

πŸ—ΊοΈ Architecture Patterns

The skill knows 7 proven patterns and selects the right one for your use case:

Pattern Best For Example
Command β†’ Agent β†’ Skills Multi-step pipelines Full-stack feature builder
Research β†’ Consolidate β†’ Plan β†’ Execute Understanding before acting Codebase migration
Parallel Specialists Independent analyses Security + perf + style review
Self-Evolving Agent Learning over time Project onboarding guide
Hook-Guarded Agent Safety-critical workflows Read-only database analyst
Slash Command + Handoff Quick entry β†’ complex flow Bug investigation
MCP-Powered Agent External service integration GitHub PR review bot

🎯 Real-World Examples

PR Security Reviewer β€” subagent with GitHub MCP, PreToolUse safety hooks, slash command trigger, and persistent memory.

Research Pipeline β€” /research command spawning 3 parallel subagents (web, codebase, Stack Overflow) with synthesis and markdown report output.

Self-Improving Onboarder β€” subagent with memory: project that builds institutional knowledge across conversations.

See examples/ for complete, ready-to-use configurations.

πŸ”§ Utility Scripts

# Install dependency for validation script
pip install pyyaml

# Validate your agents for common issues
python agent-builder/scripts/validate_agents.py .claude/agents/

# Scaffold new agents from templates
python agent-builder/scripts/scaffold_agent.py my-agent .claude --type subagent
python agent-builder/scripts/scaffold_agent.py deploy-pipe .claude --type full-stack

Requirements: Claude Code installed. Python 3.7+ for utility scripts.

🧩 Primitives Decision Tree

Your need
β”œβ”€β”€ "Auto-do X when Y happens"
β”‚   β”œβ”€β”€ During a tool call?           β†’ Hook
β”‚   β”œβ”€β”€ Based on context?             β†’ Skill
β”‚   └── Based on task type?           β†’ Subagent
β”œβ”€β”€ "Trigger a workflow"
β”‚   β”œβ”€β”€ Simple command?               β†’ Slash command
β”‚   └── Multi-step?                   β†’ Command + subagents
β”œβ”€β”€ "Connect external services"       β†’ MCP server
β”œβ”€β”€ "Remember across conversations"   β†’ CLAUDE.md / memory
└── "Production app"                  β†’ Agent SDK

🀝 Contributing

We welcome contributions! See CONTRIBUTING.md.

Add examples Β· Improve patterns Β· Enhance the skill Β· Fix bugs Β· Share feedback

πŸ“„ License

MIT β€” use it, modify it, share it. See LICENSE.


Built by keysersoose Β· Powered by Claude Code

If this saved you time, give it a star. It helps others find it.

Star History Chart

Releases

No releases published

Packages

 
 
 

Contributors