A production-ready, multi-runtime agent template system that generates artifacts for Claude Code Subagents, LangGraph, and OpenAI Assistants from a single YAML specification.
# 1. Clone and install
git clone <repository-url>
cd claude-code-agents
pip install -e ".[dev]"
# 2. Validate existing agents
agents validate
# 3. Generate Claude Code subagents
agents render claude --install
# 4. Generate LangGraph agents
agents render langgraph
# 5. List available agents
agents list-agentsagents/β YAML specifications organized by domain (engineering, data, ops, product)recipes/β Multi-agent workflows for complex tasksadapters/β Runtime-specific generators (Claude, LangGraph, Assistants)templates/β Jinja2 templates for artifact generationschemas/β JSON Schema validation for specificationsscripts/β CLI tools for validation, rendering, and management
Write once in YAML, deploy everywhere:
id: security-auditor
name: Security Auditor
summary: Reviews code for vulnerabilities using OWASP standards
role: |
You are a senior security engineer specializing in application security...
model:
provider: anthropic
family: claude
tier: sonnet
tools:
- id: code_scanner
type: mcp
spec: tools/mcp_servers/security_scanner.yamlClaude Code Subagent β ~/.claude/agents/security-auditor.md
---
name: security-auditor
description: Reviews code for vulnerabilities using OWASP standards
model: sonnet
tools: code_scanner
---
You are a senior security engineer...LangGraph Agent β adapters/langgraph/security_auditor_agent.py
from langgraph.prebuilt import create_react_agent
class SecurityAuditorAgent:
def __init__(self):
self.model = ChatAnthropic(model="claude-3-5-sonnet-20241022")
# ... implementation# Validate all specifications
agents validate
# Validate specific file
agents validate agents/engineering/security-auditor.yaml
# Verbose validation with detailed errors
agents validate --verbose# Generate Claude subagents
agents render claude
# Generate and install to ~/.claude/agents
agents render claude --install
# Generate LangGraph agents
agents render langgraph
# Render specific agent
agents render claude --agent-id security-auditor# List all agents
agents list-agents
# Filter by domain
agents list-agents --domain engineering
# Filter by tag
agents list-agents --tag security
# Create new agent from template
agents init-agent my-new-agent --domain custom --name "My New Agent"Agents follow the Agent Spec v1 schema:
id: Unique identifier (kebab-case)name: Human-readable namesummary: Brief capability descriptionrole: System prompt defining behaviormodel: Provider, family, and tier configurationownership: Owner contact informationversion: Semantic version
invocation: Auto-trigger or explicit invocationtools: MCP servers, HTTP APIs, built-in functionsconstraints: Token limits, cost budgets, PII policiesmemory: Ephemeral, persistent, or hybrid storageevaluation: Acceptance criteria and test casesobservability: Logging, tracing, and metrics
Recipes define complex workflows combining multiple agents:
id: feature-development
name: Complete Feature Development Workflow
graph:
- stage: planning
sequence:
- agent: business-analyst
- agent: backend-architect
- stage: security_review
sequence:
- agent: security-auditor
- stage: implementation
parallel:
- agent: docs-architect
- agent: test-automatorbackend-architectβ Scalable system design and API architecturesecurity-auditorβ OWASP/CIS compliance and vulnerability assessmenttest-automatorβ Test strategy, automation, and coverage analysis
data-engineerβ ETL pipelines, data quality, and warehouse design
incident-responderβ Structured incident response and post-mortems
business-analystβ Requirements gathering and user story creationdocs-architectβ Technical documentation and API guides
- Schema validation for all YAML specifications
- Secret detection in pre-commit hooks and CI
- PII policies configurable per agent
- Security scanning with Bandit and Safety
- Automated testing with pytest (>80% coverage)
- Code formatting with Ruff and Black
- YAML linting with yamllint
- Type checking with mypy
git clone <repository-url>
cd claude-code-agents
pip install -e ".[dev]"# Install pre-commit hooks
pre-commit install
# Run tests
pytest
# Validate all specs
agents validate# Initialize from template
agents init-agent my-expert --domain engineering --name "My Expert"
# Edit the generated file
vim agents/engineering/my-expert.yaml
# Validate and render
agents validate agents/engineering/my-expert.yaml
agents render claude --agent-id my-expert --installClaude Code: Agents are automatically installed to ~/.claude/agents/ with --install flag
LangGraph:
agents render langgraph
cd adapters/langgraph
pip install -r requirements.txt
python app.py # Starts FastAPI server on :8000- Time-to-first-agent: β€ 10 minutes from clone to working subagent
- Time-to-first-workflow: β€ 20 minutes for 3-stage recipe
- Test coverage: β₯ 80% for critical paths
- Zero secrets committed to repository
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-agent) - Follow the style guide for prompts and naming
- Add tests for new functionality
- Run the full validation suite (
make test) - Submit a pull request
Apache-2.0 β see LICENSE for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Docs: Full Documentation
β‘ Built for production β’ π Security-first β’ π Developer-friendly