Comprehensive instruction manuals, templates, and best practices for creating Claude commands, configuring AI agents, and orchestrating multi-agent workflows.
The Claude Command and Control repository is the definitive resource for building robust, production-ready AI agent systems. Whether you're creating simple slash commands or complex multi-agent orchestrations, this manual provides the patterns, templates, and best practices you need.
- π Comprehensive Manuals: Seven interconnected documents covering every aspect of command and agent creation
- π― Ready-to-Use Templates: Production-tested templates for common commands and agent roles
- ποΈ Architecture Patterns: Proven orchestration patterns for multi-agent workflows
- π Security Best Practices: Guidelines for safe, controlled AI agent operations
- β Quality Standards: Testing, validation, and maintenance strategies
- π Production Guidance: Deployment, monitoring, and lifecycle management
claude-command-and-control/
βββ .claude/
β βββ commands/ # 13 active production commands
β βββ agents/ # General agent configurations
β βββ skills/
β βββ registry.json # Skill discovery and metadata
β
βββ docs/
β βββ best-practices/ # 15 comprehensive instruction manuals
β β βββ 01-Introduction-and-Core-Principles.md
β β βββ 02-Individual-Command-Creation.md
β β βββ 03-Individual-Agent-Configuration.md
β β βββ 04-Multi-Agent-Orchestration.md
β β βββ 05-Testing-and-Quality-Assurance.md
β β βββ 06-Production-Deployment-and-Maintenance.md
β β βββ 07-Quick-Reference-and-Templates.md
β β βββ 08-Claude-Skills-Guide.md
β β βββ 09-Agent-Skills-vs-Multi-Agent.md
β β βββ 10-Developing-High-Impact-Claude-Skills.md
β β βββ 11-hybrid-ai-agent-multi-git-worktree-development.md
β β βββ 12-Skills-First-Planning-and-Orchestration.md
β β βββ 13-Pict-BDD-Test-Design.md
β β βββ 14-LLM-Production-Optimization.md
β β βββ 15-Advanced-Orchestration-Patterns.md
β βββ references/ # Anthropic specifications and guides
β β βββ agent-skills-specification.md
β β βββ agent-skills-overview.md
β β βββ agent-skills-integration-guide.md
β βββ TEMPLATE_CUSTOMIZATION.md
β
βββ commands-templates/ # 21 base + 6 orchestration = 27 command templates
β βββ orchestration/ # Multi-agent orchestration commands (basic)
β β βββ coordinate-workflow.md
β β βββ orchestrate-feature.md
β β βββ quality-gate.md
β β βββ spawn-agents.md
β β βββ worktree-setup.md
β βββ cleanup.md # Workspace cleanup automation
β βββ close-session.md # Session summary and push
β βββ create-skill.md # Skill generation from docs/GitHub/PDFs
β βββ deps-update.md # Dependency audit and updates
β βββ docs.md # Documentation generation
β βββ env-check.md # Environment health validation
β βββ error-report.md # Diagnostic report generation
β βββ handoff.md # Work state handoff documentation
β βββ lint-fixes.md # Auto-fix code style issues
β βββ plan.md # Project planning document generation
β βββ pr.md # Pull request creation workflow
β βββ search.md # Codebase search with ranking
β βββ start-session.md # Context loading and session init
β βββ summarize.md # Change summarization
β βββ test-all.md # Comprehensive test suite execution
β
βββ agents-templates/ # 10 base + 6 orchestration = 16 specialized agent configurations
β βββ orchestration/ # Advanced orchestration agents (NEW in v1.1)
β β βββ dag-orchestrator.md # DAG execution with topological sorting
β β βββ orchestrator-lead.md # Multi-agent workflow coordination
β β βββ performance-monitor.md # Performance profiling and optimization
β β βββ pool-manager.md # Dynamic agent pool management
β β βββ resilience-orchestrator.md # Saga pattern and circuit breakers
β β βββ state-manager.md # Distributed state with CRDTs
β β βββ task-coordinator.md # Task dependency resolution
β β βββ integration-orchestrator.md # Result synthesis and merging
β β βββ monitoring-agent.md # Real-time progress tracking
β βββ general-agent-skills-first.md # Generic skills-first agent template (NEW)
β βββ architect.md # System design and planning (v2.0 consolidated)
β βββ builder.md # Implementation with TDD
β βββ devops.md # Infrastructure and CI/CD
β βββ integration-manager.md # Content ingestion system
β βββ maintenance-manager.md # Repository health management
β βββ researcher.md # Technical research (v2.0 consolidated)
β βββ scribe.md # Documentation creation
β βββ validator.md # Testing and security audits
β
βββ skills/ # 20 production-ready skills
β βββ agent-skill-bridge/ # Agent-skill integration patterns
β βββ architect-role-skill/ # Architecture design workflows
β βββ builder-role-skill/ # TDD implementation workflows
β βββ content-research-writer/ # Research + citation workflows
β βββ devops-role-skill/ # Infrastructure workflows
β βββ documentation-update/ # Automated doc updates
β βββ file-categorization/ # File type classification
β βββ researcher-role-skill/ # Research workflows
β βββ root-cause-tracing/ # Systematic debugging
β βββ scribe-role-skill/ # Documentation workflows
β βββ sharing-skills/ # Skill contribution via PR
β βββ skill-creator/ # New skill generation
β βββ skill-orchestrator/ # Multi-skill coordination
β βββ software-architecture/ # Architecture documentation
β βββ subagent-driven-development/ # Isolated subagent execution
β βββ superpowers-lab/ # Meta-skill experimentation
β βββ ui-ux-pro-max/ # 50+ UI/UX design patterns
β βββ using-git-worktrees/ # Isolated workspace management
β βββ using-superpowers/ # Skill discovery and invocation
β βββ validator-role-skill/ # Testing workflows
β
βββ skills-templates/ # 31 base + 6 orchestration = 37 skill templates
β βββ orchestration/ # Advanced orchestration skill templates (NEW in v1.1)
β β βββ agent-pool-manager-skill.md # Auto-scaling, health monitoring
β β βββ circuit-breaker-skill.md # Cascading failure prevention
β β βββ distributed-state-sync-skill.md # CRDT implementations
β β βββ performance-profiler-skill.md # Token usage profiling
β β βββ saga-pattern-skill.md # Compensating transactions
β β βββ task-dependency-resolver-skill.md # Kahn's algorithm, cycle detection
β βββ artifacts-builder/ # Artifact generation patterns
β βββ brand-guidelines/ # Brand consistency workflows
β βββ canvas-design/ # Visual design in Canvas
β βββ changelog-generator/ # Automated changelog creation
β βββ competitive-ads-extractor/ # Ad intelligence gathering
β βββ content-research-writer/ # Research + writing workflows
β βββ developer-growth-analysis/ # Dev metrics analysis
β βββ document-skills/ # Documentation automation
β βββ domain-name-brainstormer/ # Domain naming ideation
β βββ fastapi/ # FastAPI development patterns
β βββ file-organizer/ # File organization automation
β βββ image-enhancer/ # Image processing workflows
β βββ internal-comms/ # Internal communication templates
β βββ invoice-organizer/ # Invoice management automation
β βββ lead-research-assistant/ # Lead qualification workflows
β βββ mcp-builder/ # MCP server development
β βββ meeting-insights-analyzer/ # Meeting analysis
β βββ pict-test-designer/ # Pairwise testing design
β βββ prompt-engineering/ # Prompt optimization patterns
β βββ raffle-winner-picker/ # Random selection workflows
β βββ skill-creator/ # Skill generation template
β βββ skill-share/ # Skill sharing workflows
β βββ slack-gif-creator/ # Slack integration patterns
β βββ software-architecture/ # Architecture templates
β βββ template-skill/ # Minimal/Standard/Comprehensive templates
β βββ theme-factory/ # 10 professional themes
β βββ video-downloader/ # Video processing workflows
β βββ webapp-testing/ # Web application testing
β
βββ templates/
β βββ commands/ # Advanced orchestration command templates (NEW in v1.1)
β β βββ orchestration/
β β βββ dag-executor.md # DAG workflow execution
β β βββ dynamic-orchestrator.md # Auto-scaling agent pools
β β βββ fault-tolerant-orchestrator.md # Resilient workflows
β β βββ observability-tracker.md # Distributed tracing
β β βββ performance-optimizer.md # Performance analysis
β β βββ state-coordinator.md # State management
β βββ orchestration/ # Planning templates for multi-agent workflows
β β βββ MULTI_AGENT_PLAN.md
β β βββ TASK_DECOMPOSITION.md
β βββ skills/ # Skill complexity templates
β βββ minimal-skill-template.md
β βββ standard-skill-template.md
β βββ comprehensive-skill-template.md
β
βββ examples/ # Working examples with performance metrics (NEW in v1.1)
β βββ orchestration/ # Advanced orchestration pattern demonstrations
β βββ 01-large-scale-refactoring/ # 1,247 files, 6.5x faster, 30% cost savings
β βββ 02-multi-environment-deployment/ # Saga pattern, 55% downtime reduction
β βββ 03-parallel-research-synthesis/ # 15 agents, 17.8x speedup, zero conflicts
β βββ 04-distributed-testing/ # 5,247 tests, 11.2x speedup, 55% cost savings
β βββ 05-complex-feature-implementation/ # All 6 patterns, 3.5x speedup, 57% cost savings
β
βββ INTEGRATION/ # Content ingestion and quality validation
β βββ incoming/ # New content drop zone
β βββ processed/ # 30 successfully integrated skills
β βββ failed/ # Files that failed validation
β βββ logs/ # Integration audit trails
β
βββ MAINTENANCE/ # Repository health monitoring
β βββ reports/ # Research briefs and architectural proposals
β βββ todo/ # Staleness reports and action items
β
βββ CLAUDE.md # Project-specific AI agent instructions
βββ DEVELOPMENT_PLAN.md # Roadmap and backlog
βββ README.md # This file
.claude/commands/: Active production commands for your local Claude Code installationdocs/best-practices/: 13 comprehensive manuals covering all aspects of command/agent/skill developmentcommands-templates/: 21 production-tested command templates ready to copy and customizeagents-templates/: 10 specialized agent configurations (v2.0 with consolidated patterns)skills/: 20 production-ready skills for immediate use with agentsskills-templates/: 31 skill templates for creating new capabilitiestemplates/: Orchestration planning templates and skill complexity templatesINTEGRATION/: Automated content ingestion system with quality validationMAINTENANCE/: Repository health monitoring with staleness detection
Create your first command in 3 steps:
-
Read the basics
cat 02-Individual-Command-Creation.md
-
Use a template
cp templates/commands/start-session.md .claude/commands/
-
Run your command
/start-session
When generating commands or agents:
-
Load core context:
@01-Introduction-and-Core-Principles.md @CLAUDE.md -
Review specific guidance:
- Commands β
@02-Individual-Command-Creation.md - Agents β
@03-Individual-Agent-Configuration.md - Orchestration β
@04-Multi-Agent-Orchestration.md
- Commands β
-
Follow the documented patterns and use provided templates
Launch parallel development in 4 steps:
-
Describe your feature
I need to implement user authentication with multiple approaches (OAuth, JWT, and session-based) to compare and select the best -
Orchestrate the feature
/orchestrate-featureCreates MULTI_AGENT_PLAN.md with tasks, dependencies, and agent assignments
-
Spawn agents in parallel
/spawn-agentsInstantiates specialized agents in isolated git worktrees
-
Monitor and integrate
/coordinate-workflow # Real-time progress tracking /quality-gate # Multi-stage validation
Result: 3 parallel implementations completed in 2-3 hours vs. 8 hours sequential
Example workflow:
# Agent 1 (Architect): Designs API specification β 30 min
# Agent 2 (Builder): Implements OAuth 2.0 β 90 min
# Agent 3 (Builder): Implements JWT β 75 min
# Agent 4 (Validator): Security testing β 45 min (waits for 2&3)
# Total wall-clock time: ~2.5 hours (vs 4+ hours sequential)
# Productivity gain: 3.2x faster + quality through comparison| Document | Purpose | Key Topics |
|---|---|---|
| 01-Introduction-and-Core-Principles | Foundational philosophy and architecture | Agent-first design, core tenets, ecosystem architecture, success factors |
| 02-Individual-Command-Creation | Technical specifications for slash commands | Command structure, naming, security, versioning, examples |
| 03-Individual-Agent-Configuration | Agent setup and configuration | Role specialization, permissions, context management, memory |
| 04-Multi-Agent-Orchestration | Coordinating multiple agents | Orchestrator-worker pattern, communication protocols, task decomposition |
| 05-Testing-and-Quality-Assurance | Validation strategies | Testing approaches, static analysis, audit routines |
| 06-Production-Deployment-and-Maintenance | Operations and monitoring | Deployment strategies, observability, rollback, lifecycle management |
| 07-Quick-Reference-and-Templates | Boilerplate and cheat sheets | Command templates, agent configs, QA checklists, memory snippets |
| 08-Claude-Skills-Guide | Skills creation and integration | Skill architecture, triggers, examples, orchestration patterns, best practices |
| 09-Agent-Skills-vs-Multi-Agent | Strategic guidance on architecture | Skills-first approach, hybrid patterns, migration strategies, decision matrices |
| 12-Skills-First-Planning-and-Orchestration | Planning for skills-first and multi-agent workflows | Decision framework, agent registries, multi-agent plans, orchestration patterns, metrics |
| 15-Advanced-Orchestration-Patterns | Enterprise-grade orchestration patterns | DAG execution, state management, resilience, performance optimization, CRDT, saga pattern, circuit breakers |
| Document | Purpose | Source |
|---|---|---|
| Agent Skills Specification | Official format spec for SKILL.md files | Anthropic (agentskills.io) |
| Agent Skills Overview | What are skills? Concept introduction | Anthropic (agentskills.io) |
| Agent Skills Integration Guide | How to build skills-compatible agents | Anthropic (agentskills.io) |
Choose your path based on your role and goals:
Goal: Get productive immediately with commands and skills
-
β‘ Command Quick Reference (5 min)
- Bookmark this page for daily reference
- Try:
/start-session,/test-all,/pr
-
π¨ End-to-End Skill Creation (15 min)
- Generate your first skill from existing docs
- Understand the 4-step pipeline
-
π§ Skills-First Paradigm (10 min)
- Learn why skills > multi-agent for most tasks
- See token efficiency gains (35% savings)
Next steps: Start using skills in your daily workflow, explore skill templates
Goal: Master commands, agents, and skills for production use
-
Foundation (30 min)
- π 01-Introduction - Core philosophy
- π― Quick Start - Essential workflows
-
Skills Mastery (45 min)
- π§ Skills-First Paradigm - Why and when
- π 08-Claude-Skills-Guide - Deep dive
- π¨ End-to-End Skill Creation - Hands-on
-
Commands & Agents (30 min)
- π 02-Command-Creation - Build custom commands
- βοΈ 03-Agent-Configuration - Configure agents
- β‘ Command Quick Reference - Daily reference
-
Production Ready (15 min)
- β 05-Testing-QA - Quality gates
- π 06-Deployment - Deploy safely
Next steps: Contribute a skill, set up your team's workflow
Goal: Design complex multi-agent systems and understand tradeoffs
-
Strategic Foundation (1 hour)
- π 01-Introduction - Philosophy
- π§ Skills-First Paradigm - Primary approach
- π 09-Skills-vs-Multi-Agent - Decision framework
-
Multi-Agent Patterns (1 hour)
- π 04-Multi-Agent-Orchestration - Coordination
- π³ Git Worktrees + Multi-Agent - Parallel isolation
- π 12-Skills-First-Planning - Planning strategies
-
Implementation (45 min)
- π 02-Command-Creation - Orchestration commands
- βοΈ 03-Agent-Configuration - Orchestrator agents
- π¨ Skill Creation - Orchestration skills
-
Production & Metrics (15 min)
- β 05-Testing-QA - Multi-agent testing
- π 06-Deployment - Monitoring
Next steps: Design your first multi-agent workflow, measure productivity gains
Goal: Become a skill creation expert and build reusable capabilities
-
Skills Fundamentals (30 min)
- π§ Skills-First Paradigm - Core concepts
- π 08-Claude-Skills-Guide - Comprehensive guide
- π Agent Skills Specification - Official format
-
Hands-On Creation (45 min)
- π¨ End-to-End Skill Creation - Full pipeline
- π οΈ Practice: Extract skill from your project docs
- π οΈ Practice: Convert an existing agent to a skill
- π οΈ Practice: Create skill from GitHub repo
-
Advanced Patterns (15 min)
- π Skill Orchestration - Compose skills
- π― Pre-Built Skills - Learn from examples
- π 12-Skills-First-Planning - Planning with skills
Next steps: Build 3+ skills, contribute via /sharing-skills, measure adoption
Choose based on what you need to accomplish:
Need to: Create a command
Need to: Build a skill
- π¨ End-to-End Skill Creation
- π 08-Claude-Skills-Guide
- π― Skill Templates
Need to: Setup multi-agent workflow
- π 04-Multi-Agent-Orchestration
- π³ Git Worktrees Pattern
- π Decision Framework
Need to: Improve quality & testing
Need to: Deploy to production
Need to: Quick answers
Goal: Understand ROI, adoption strategy, and team efficiency gains
-
Business Case (15 min)
- π Success Metrics - 28.4% cost reduction, 40% faster delivery
- π§ Skills-First Paradigm - 35% token savings
- π³ Git Worktrees Pattern - 3-10x speed gains
-
Strategic Guidance (20 min)
- π 01-Introduction - Philosophy
- π 09-Skills-vs-Multi-Agent - Architecture decisions
- π 12-Skills-First-Planning - Planning approach
-
Adoption Plan (15 min)
- π¨βπ» Review "Path 2: Developer Onboarding" (assign to team)
- π§ Review "Path 4: Skills Builder" (assign to senior devs)
- β‘ Command Quick Reference (bookmark for team)
-
Quality & Operations (10 min)
- β 05-Testing-QA - Standards
- π 06-Deployment - Production readiness
- π Security & Safety - Risk mitigation
Next steps: Pilot with 2-3 developers, measure metrics, scale adoption
Beginner (Never used AI agents):
- Quick Start Path (30 min)
- Read 01-Introduction (20 min)
- Try
/start-session,/test-all,/prcommands - Create first skill from your docs
- Total: 1 hour to productivity
Intermediate (Used Claude/ChatGPT for coding):
- Skills-First Paradigm (15 min) - understand efficiency gains
- Developer Onboarding Path (2 hours) - comprehensive mastery
- Try multi-agent with git worktrees (hands-on)
- Build 2-3 custom skills
- Total: 4 hours to expert-level productivity
Advanced (Built AI agents before):
- Architecture & Planning Path (3 hours) - strategic depth
- Compare your patterns to skills-first approach
- Review decision frameworks and migration strategies
- Design complex orchestration workflows
- Contribute patterns back to community
- Total: 6 hours to architectural mastery
Professional agent configurations for specialized roles.
Note: With Anthropic's skills-first approach, these templates now serve two purposes:
-
As Skill Packages (Recommended): Convert to skills for use with a general agent
- More efficient and maintainable
- Can be composed with other skills
- See Phase 4 conversions in progress
-
As Multi-Agent Configs (For Parallel Work): Use when spawning workers for concurrent tasks
- Each worker loads appropriate skills
- Use orchestrator-worker pattern
- See Multi-Agent Orchestration guide
Migration Path: Most users should start by using these as skills with a general agent, and only introduce multi-agent orchestration when parallel execution is necessary.
| Agent | Purpose | Key Capabilities |
|---|---|---|
| Architect | System design and planning | Architecture assessment, planning document creation, design decisions |
| Builder | Code implementation | Feature development, TDD implementation, git workflow management |
| Validator | Testing and code review | Test creation, code review, coverage validation, security audits |
| Scribe | Documentation | API docs, deployment guides, architecture documentation |
| DevOps | Infrastructure and deployment | CI/CD pipelines, infrastructure as code, monitoring setup |
| Researcher | Technical research | Technology evaluation, competitive analysis, feasibility studies |
| Integration Manager | Content ingestion and integration | File categorization, quality validation, documentation updates, audit trails |
Multi-agent coordination and parallel execution specialists:
| Agent | Model | Purpose | Key Capabilities |
|---|---|---|---|
| Orchestrator Lead | Claude Opus 4 | Multi-agent workflow coordination | Request decomposition, agent spawning, result synthesis, quality control |
| Task Coordinator | Claude Sonnet 4 | Dependency and resource management | Dependency graphs, parallel optimization, bottleneck detection, resource balancing |
| Integration Orchestrator | Claude Sonnet 4 | Result merging and validation | Cross-agent merging, conflict resolution, git worktree integration, final validation |
| Monitoring Agent | Claude Haiku 3.5 | Real-time tracking and metrics | Execution tracking, performance metrics, error detection, cost monitoring |
- start-session.md - Initialize development session with context loading
- close-session.md - Gracefully end session with progress summary
- plan.md - Generate or update project plans
- summarize.md - Summarize recent work and changes
- pr.md - Streamline pull request creation
- handoff.md - Create comprehensive work handoff documents
- test-all.md - Execute comprehensive test suites
- lint-fixes.md - Auto-fix code style issues
- error-report.md - Diagnose and report errors
- deps-update.md - Audit and update dependencies
- docs.md - Generate project documentation
- search.md - Search codebase with context
- cleanup.md - Maintain workspace health
- env-check.md - Validate development environment
- create-skill.md - Generate Claude AI skills from documentation, GitHub repos, or PDFs using Skill Seekers
- integration-scan.md - Scan and categorize files in /INTEGRATION/incoming directory
- maintenance-scan.md - Identify stale files (>30 days) and generate maintenance reports
Advanced parallel development and coordination:
- orchestrate-feature.md - Multi-agent feature development with parallel task execution and git worktree isolation
- spawn-agents.md - Dynamic agent instantiation with role assignment, context isolation, and resource allocation
- coordinate-workflow.md - Real-time inter-agent communication, result aggregation, and conflict resolution
- worktree-setup.md - Automated git worktree lifecycle management with branch strategy enforcement
- quality-gate.md - Multi-stage validation pipeline with parallel test execution and security audits
Essential planning documents for skills-first and multi-agent workflows:
| Template | Purpose | Use When |
|---|---|---|
| AGENT_REGISTRY.md | Track agent capabilities and skill compatibility | Setting up orchestration projects, documenting available agents |
| MULTIAGENT_PLAN.md | Structured multi-agent planning with skills composition | Planning parallel development, coordinating multiple agents |
See Also: 12-Skills-First-Planning-and-Orchestration for comprehensive planning guidance
NEW: Extend command and agent capabilities with reusable workflow automation.
Skills are portable workflow automation units that complement commands and agents:
- Commands: Quick session shortcuts (
/test,/pr) - Agents: Role-specialized project execution (Builder, Validator)
- Skills: Cross-project reusable workflows (PR review, code formatting, doc generation)
Step 1: Identify a workflow that repeats β₯3x per week
Step 2: Use the skill creator:
"Use skill-creator skill to help me build a skill for [your workflow]"
Step 3: Choose your template:
- Simple workflows β
templates/skills/minimal-skill-template.md - Moderate workflows β
templates/skills/standard-skill-template.md - Complex workflows β
templates/skills/comprehensive-skill-template.md
Step 4: Test and deploy
Create production-ready Claude skills from any source in 4 automated steps.
This comprehensive guide walks through the complete skill creation pipeline, from identifying a source to deploying a validated, production-ready skill. Whether you're extracting patterns from documentation, GitHub repositories, or PDF manuals, this workflow ensures quality and consistency.
β Benefits:
- Portability: Share expertise across teams and projects
- Consistency: Standardize workflows and best practices
- Efficiency: Automate repetitive multi-step processes
- Knowledge Capture: Preserve institutional knowledge as executable code
- Rapid Onboarding: New team members inherit expert workflows immediately
β Create a skill when:
- You've solved a complex problem that others will face
- You have a multi-step workflow you repeat frequently
- You want to standardize a process across your organization
- You're integrating specialized domain knowledge into AI workflows
- You need to ensure quality gates and validation steps
β Don't create a skill when:
- The task is a one-time operation
- The process is already well-handled by existing tools
- The workflow is too simple (< 3 steps)
- Requirements are still evolving rapidly
Source Material β Generate β Validate β Integrate β Production
(Docs/GitHub/PDF) β β β β
SKILL.md Quality README Ready to Use
Checks Update
Timeline: 5-30 minutes depending on source complexity
The automated pipeline handles:
- Content extraction from your source
- Skill structure generation following best practices
- Quality validation with 7-stage checks
- Documentation integration into repository indices
- Production deployment ready for immediate use
Choose your source type and run the appropriate command:
Use when: You have markdown docs, text files, or local documentation
skill-seekers docs path/to/documentation/Example:
# Generate skills from FastAPI documentation
skill-seekers docs ~/projects/fastapi-docs/
# Generate from multiple markdown files
skill-seekers docs ./guides/*.mdWhat happens:
- Scans all
.md,.txt, and documentation files - Extracts patterns, workflows, and best practices
- Generates structured SKILL.md files
- Places output in
output/[source-name]/ - Creates scan report with quality metrics
Use when: You want to extract patterns from open-source projects
skill-seekers github owner/repo [--enhance]Example:
# Basic: Extract from repository structure
skill-seekers github fastapi/fastapi
# Enhanced: Include README, docs, and code analysis
skill-seekers github fastapi/fastapi --enhanceFlags:
--enhance: Deep analysis including README, documentation files, and code patterns (recommended for comprehensive extraction)
What happens:
- Clones repository (or uses cached version)
- Analyzes project structure and patterns
- With
--enhance: Processes README.md and docs/ directory - Generates skill capturing project's best practices
- Creates detailed extraction report
Use when: You have PDF documentation, whitepapers, or technical manuals
skill-seekers pdf path/to/manual.pdfExample:
# Generate skill from technical manual
skill-seekers pdf ~/Downloads/kubernetes-best-practices.pdf
# Process multiple PDFs
skill-seekers pdf ./manuals/*.pdfWhat happens:
- Extracts text content from PDF
- Preserves structure (headings, lists, code blocks)
- Identifies workflows and procedures
- Generates skill with preserved formatting
- Creates extraction quality report
After generation completes, you'll find:
- Generated skills:
output/[source-name]/SKILL.md - Scan report:
output/[source-name]/scan_report.md - Metadata: Quality scores, extraction statistics
Why this matters: The scan report helps you understand what was extracted and identify potential quality issues before validation.
What to verify:
- β Completeness: All key workflows captured
- β Structure: Proper frontmatter, sections, examples
- β Accuracy: Technical details preserved correctly
- β Clarity: Instructions are clear and actionable
- β Dependencies: External tools/libraries documented
- β Edge cases: Error handling and troubleshooting included
Common issues and fixes:
| Issue | Symptom | Fix |
|---|---|---|
| Incomplete extraction | Missing workflows or sections | Re-run with --enhance flag (GitHub) or include more source files |
| Formatting errors | Broken markdown, invalid YAML | Manually edit SKILL.md before validation |
| Too generic | Lacks specific examples or details | Add concrete examples in ## Examples section |
| Missing context | Unclear when/why to use skill | Enhance ## Purpose and ## Use When sections |
| No error handling | Doesn't address failure scenarios | Add ## Troubleshooting section |
| Outdated patterns | Source material is old | Update skill with current best practices |
Move generated skills into the integration pipeline for automated validation:
# Copy generated skill to incoming directory
cp output/fastapi/SKILL.md INTEGRATION/incoming/fastapi-skill.md
# Run integration scan
/integration-scan
# Review validation results
cat INTEGRATION/logs/scan-report-[timestamp].mdThe 7-stage validation pipeline checks:
-
File Structure β
- Valid frontmatter YAML
- Required fields present (
name,description,version) - Proper markdown formatting
-
Content Quality β
- Purpose section clearly explains intent
- Usage examples provided
- Error handling documented
- Minimum content length met
-
Category Assignment β
- Automatically categorized as Skill
- Subcategory identified from content analysis
- Proper directory structure determined
-
Naming Conventions β
- Follows kebab-case naming
- No special characters or spaces
- Descriptive and action-oriented
-
Cross-References β
- Links to existing files are valid
- No broken references
- Dependencies properly documented
-
Security Scan β
- No hardcoded credentials
- No suspicious command execution patterns
- Path traversal vulnerabilities checked
-
Best Practices β
- Follows skill template structure
- Includes versioning
- Has clear success criteria
After successful validation:
- β
Skill moved to
INTEGRATION/processed/[skill-name]/ - β Quality score assigned (0-100)
- β Ready for documentation integration
If validation fails:
β οΈ Skill moved toINTEGRATION/failed/β οΈ Detailed error report generatedβ οΈ Fix issues and re-run/integration-scan
Once validated, integrate the skill into repository documentation:
# Run integration update command
/integration-update-docs
# Or manually update using documentation-update skill
# This skill knows how to update all indices and catalogsWhat gets updated:
-
README.md Skills Catalog
- New row added to Pre-Built Skills table
- Skill name, purpose, and use-when description
- Alphabetically sorted for easy discovery
-
Skills Registry (
skills/registry.json){ "fastapi": { "name": "FastAPI Development Patterns", "version": "1.0.0", "category": "backend", "path": "skills-templates/fastapi/", "quality_score": 95 } } -
Template Indices
skills-templates/README.mdupdated- Cross-references added to related templates
- Integration examples provided
-
Integration Logs
- Timestamped audit trail in
INTEGRATION/logs/ - Tracks who added what, when, and validation scores
- Enables quality trend analysis over time
- Timestamped audit trail in
Your skill is now ready for use in 5 different ways:
1. Via Skill Tool (Recommended)
Uses the Skill tool with skill="fastapi"2. Via Slash Command
# If you created a wrapper command
/fastapi3. Via Agent Configuration
# In .claude/agents/backend-builder.md
context:
skills:
- fastapi
- testing
- deployment4. Via Direct File Reference
Follow the workflow in skills-templates/fastapi/SKILL.md5. Via Skill Orchestrator
Uses the skill-orchestrator to coordinate fastapi, database-design, and api-testing skills| Source Type | Generation | Review | Validation | Documentation | Total |
|---|---|---|---|---|---|
| Small docs (< 10 files) | 2 min | 3 min | 1 min | 1 min | ~7 min |
| Medium docs (10-50 files) | 5 min | 5 min | 2 min | 1 min | ~13 min |
| Large docs (> 50 files) | 10 min | 10 min | 3 min | 2 min | ~25 min |
| GitHub basic | 3 min | 5 min | 1 min | 1 min | ~10 min |
| GitHub enhanced | 8 min | 10 min | 2 min | 1 min | ~21 min |
| PDF simple (< 50 pages) | 4 min | 5 min | 1 min | 1 min | ~11 min |
| PDF complex (> 50 pages) | 10 min | 15 min | 2 min | 2 min | ~29 min |
Actual times vary based on source complexity, network speed, and system performance.
Issue: skill-seekers command not found
# Solution: Install or update skill-seekers
pip install -e skills-templates/skill-creator/scripts/
# Or use the full path
python3 skills-templates/skill-creator/scripts/skill_seekers.py docs ./Issue: Generation produces empty or minimal skill
# Solution: Check source content quality
# - Ensure source has clear workflows and patterns
# - Try --enhance flag for GitHub repositories
# - Provide more comprehensive source materialIssue: Validation fails with "Missing required fields"
# Solution: Manually add frontmatter
# Edit SKILL.md and ensure it starts with:
---
name: your-skill-name
description: Clear one-line description
version: 1.0.0
---Issue: Skill works but quality score is low
# Solution: Enhance the skill content
# - Add more detailed examples in ## Examples section
# - Include troubleshooting guidance
# - Document dependencies and prerequisites
# - Add success criteria and validation stepsIssue: Documentation update doesn't reflect new skill
# Solution: Manually trigger documentation update
/integration-update-docs
# Or use the documentation-update skill directlyIssue: Generated skill is too generic
# Solution: Use more specific source material
# - Include code examples in source docs
# - Add real-world use cases
# - Document edge cases and gotchas
# - Provide context about when/why to use patterns| Skill | Purpose | Use When |
|---|---|---|
| agent-skill-bridge | Integrates agents and skills | Coordinating agents with skills |
| agent-communication-protocol | Open protocol for AI agent interoperability | Multi-agent communication, framework-agnostic agents, REST API |
| ar-io-build | Comprehensive AR.IO build documentation | Building with AR.IO, implementing AR.IO solutions, debugging AR.IO code |
| arweave-ao-cookbook | Build decentralized applications on AO | Building decentralized apps on Arweave with permanent storage |
| arweave-standards | Arweave standards, specifications and best practices | Working with Arweave standards, implementing protocol specifications, checking compliance |
| artifacts-builder | React/Tailwind/shadcn UI artifact builder | Complex artifacts requiring state management or shadcn/ui components |
| astro | Astro web framework with Islands architecture | Content-focused websites, partial hydration, content collections, multi-framework support |
| braiins-ecosystem | Unified Braiins Bitcoin mining ecosystem | Complete mining stack (firmware, pool, tools, proxy, dashboard, calculator) |
| braiins-insights | Bitcoin mining profitability calculator | Evaluating mining profitability, ROI analysis, cash flow projections |
| braiins-manager | Web-based mining operations dashboard | Fleet monitoring, multi-user access, real-time metrics |
| braiins-os | ASIC firmware with autotuning | Firmware management, API integration, OS feeds |
| braiins-pool | Bitcoin mining pool (FPPS, Lightning) | Mining pool setup, FPPS rewards, Lightning payouts, Stratum V2 |
| braiins-proxy | Stratum V2 mining proxy | Large-scale operations, hashrate aggregation, farm proxy |
| braiins-toolbox | Batch mining operations management | Network scanning, firmware/system/miner management, performance tuning |
| brand-guidelines | Anthropic brand colors and typography | Applying brand standards to artifacts |
| canvas-design | Visual art creation using design philosophy | Creating posters, art, or static visual pieces |
| changelog-generator | Git commits to user-friendly changelogs | Preparing release notes or product updates |
| chezmoi | Dotfiles manager with 56 commands, templates, password managers, encryption | Cross-machine dotfiles, machine-specific configs, encrypted secrets |
| claude-mem | Persistent memory compression system for Claude Code | Cross-session context, MCP search, privacy controls, observations |
| cloudflare-ai-gateway | Unified interface to AI providers (OpenAI, Anthropic, Azure, HuggingFace) | Multi-provider AI proxy, caching, rate limiting, analytics |
| cloudflare-ai-search | Semantic search and vector embeddings in Workers | Vector-based search, embedding models |
| cloudflare-kv | Low-latency key-value storage at the edge | Edge storage, get/put/delete/list operations |
| cloudflare-pages | JAMstack platform for static sites + serverless functions | 13 framework guides, Pages Functions, static hosting |
| cloudflare-pulumi | Infrastructure as Code for Cloudflare resources | Multi-language IaC (TypeScript, Python, Go) |
| cloudflare-r2 | S3-compatible object storage with zero egress fees | S3 API, bucket management, data access |
| cloudflare-workers | Serverless edge computing with V8 runtime | Runtime APIs, fetch handlers, Durable Objects, KV bindings |
| cloudflare-zaraz | Server-side tag management with edge execution | Web API, consent management, GTM migration, 34+ tools |
| cloudflare-web-analytics | Privacy-first web analytics with Core Web Vitals | Free analytics, SPA tracking, RUM beacon, no cookies |
| coinmarketcap-api | Enterprise-grade cryptocurrency market data API | Crypto prices, market caps, exchanges, historical data, 40+ endpoints |
| competitive-ads-extractor | Analyze competitors' ads from ad libraries | Understanding competitor messaging and creative approaches |
| conductor | Build and deployment orchestration | Working with conductor, implementing conductor solutions, debugging conductor code |
| content-research-writer | Writing assistance with research and citations | Writing articles, documentation, blog posts |
| create-llmstxt-py | Python script generating llms.txt files using Firecrawl and OpenAI | Making websites LLM-accessible, automated content indexing, documentation extraction |
| developer-growth-analysis | Coding pattern analysis from Claude Code history | Identifying development gaps and curating learning resources |
| docling | IBM Research document processing library for AI | Parsing PDFs/DOCX, extracting tables/layouts, building RAG pipelines, MCP server for documents |
| document-skills/docx | Word document creation and editing | Working with .docx files, tracked changes, or comments |
| dokploy | Comprehensive assistance with dokploy | Deploying Docker applications with Dokploy platform |
| dokploy-mcp | AI-driven deployment management using Dokploy MCP server | Deploying apps, provisioning databases, managing Dokploy infrastructure |
| dnsdist | DNS load balancer with DoS protection and multi-protocol support | Load balancing DNS, DoH/DoT/DoQ, rate limiting, dynamic blocking |
| document-skills/pdf | PDF manipulation toolkit | Extracting text, creating PDFs, or filling PDF forms |
| document-skills/pptx | PowerPoint presentation toolkit | Creating or editing presentations |
| document-skills/xlsx | Excel spreadsheet toolkit | Working with spreadsheets, formulas, or data analysis |
| documentation-update | Update repository documentation tables and indices | Adding entries to README, maintaining indices |
| domain-name-brainstormer | Domain name generation and availability checking | Finding available domain names for projects |
| farm-monitor | Bitcoin mining fleet monitoring | Monitoring mining operations, fleet management |
| fastapi | FastAPI modern Python web framework | Building APIs, async endpoints, dependency injection, Python backend development |
| fastmcp | Model Context Protocol (MCP) server development with FastMCP framework | Creating MCP servers, Claude Desktop integration, building AI tools/resources, production MCP deployment (Python + TypeScript) |
| file-categorization | Categorize files as Command/Agent/Skill/Doc | Processing files in integration pipelines |
| file-organizer | Intelligent file organization | Organizing files, finding duplicates, or cleaning up directories |
| flyio | Deploy and scale full-stack applications globally on Fly.io platform | When deploying web applications, APIs, databases, or microservices that need global distribution and automatic scaling |
| github-copilot | AI coding assistant with suggestions, chat, code review | Using GitHub Copilot features, IDE integration, custom instructions |
| github-pages | GitHub Pages static site hosting | Creating sites, custom domains, Jekyll themes, GitHub Actions deployment |
| gitbook | GitBook documentation platform | Spaces, Git sync, custom domains, OpenAPI, change requests |
| google-seo | Google SEO best practices and web optimization | Creating web content, reviewing pages for SEO, implementing metadata, structuring URLs and site architecture |
| google-structured-data | Schema.org markup for Google Search rich results | JSON-LD templates, Article/Product/Event/FAQ markup, JavaScript generation |
| google-seo-starter-guide | Google SEO fundamentals and best practices | Implementing SEO for new sites, optimizing URLs and content, improving search visibility, auditing SEO implementation |
| google-url-inspection | Search Console URL Inspection Tool guide | Verifying indexing status, diagnosing crawl issues, requesting re-indexing, troubleshooting rendering problems |
| image-enhancer | Image quality improvement | Enhancing screenshots or images for presentations |
| internal-comms | Internal communications templates | Writing status reports, newsletters, or company updates |
| invoice-organizer | Invoice and receipt organization | Tax preparation or bookkeeping |
| just | Just command runner for project task automation | Creating justfile recipes, replacing Make/shell scripts, cross-platform command execution |
| langflow | Visual AI workflow platform with MCP integration | Building AI agent workflows visually, integrating MCP servers, deploying production AI agents |
| latex-manual | Comprehensive LaTeX reference with templates and troubleshooting | Writing LaTeX documents, creating equations, formatting papers, making presentations, debugging compilation |
| latex-wikibook | Comprehensive LaTeX tutorials from WikiBooks | Learning LaTeX best practices, LaTeX formatting, document preparation |
| lead-research-assistant | Lead identification and qualification | Sales, business development, or marketing research |
| mailgun | Email sending, receiving, and tracking API | Working with Mailgun, implementing email solutions, debugging email code |
| mcp-builder | MCP server development guide | Building Model Context Protocol servers |
| mcp-registry | MCP server discovery and publishing registry | Publishing MCP servers, server discovery, authentication |
| meeting-insights-analyzer | Meeting transcript analysis | Improving communication or leadership skills |
| neon | Neon serverless Postgres with branching | Serverless database, autoscaling, scale-to-zero, pgvector, edge-compatible drivers |
| openserv-agents | OpenServ platform for AI agents (SDK, API, no-code) | Building autonomous agents, "Second Brain" architecture, BRAID framework, multi-agent orchestration, deployment guides |
| openrouter | Unified API gateway for 100+ AI models | Working with OpenRouter, multi-provider routing, cost optimization, model comparison |
| passwordless-docs | Bitwarden Passwordless.dev documentation, SDKs, and React examples | Implementing passwordless authentication, integrating FIDO2/WebAuthn, building React passwordless auth |
| pict-test-designer | PICT pairwise test case design | Designing comprehensive test cases with minimal coverage |
| powerdns-authoritative | PowerDNS authoritative nameserver with DNSSEC, REST API, multiple backends | Authoritative DNS setup, zone management, dynamic DNS, Lua records |
| powerdns-recursor | High-performance recursive DNS resolver with DNSSEC validation and Lua scripting | Recursive DNS, RPZ, Lua hooks, DNSSEC validation |
| prompt-engineering | Advanced prompt engineering patterns | Writing commands, hooks, skills, or optimizing LLM interactions |
| quiche | Cloudflare QUIC/HTTP3 Rust library | QUIC connections, HTTP/3 clients/servers, connection management |
| raffle-winner-picker | Random winner selection | Running giveaways, raffles, or contests |
| raycast | Raycast extension development framework | Building Raycast extensions with TypeScript/React, API integration (Environment, Clipboard, Storage, OAuth), UI components (List, ActionPanel, Form) |
| root-cause-tracing | Systematic debugging through call stack | Tracing bugs deep in execution |
| sdk-sm | Bitwarden Secrets Manager SDK | Using Bitwarden Secrets Manager, working with multi-language SDK (Rust, Python, C#, Go, Java), secrets management API |
| seo | Google SEO research and web traffic monetization | SEO best practices, tool comparisons (Semrush, Moz, Ahrefs), search engine optimization, marketing |
| sharing-skills | Contribute skills upstream via PR | Sharing broadly useful patterns |
| skill-creator | Guide for creating effective skills | Building new skills with specialized knowledge |
| skill-orchestrator | Coordinates multiple skills | Complex multi-skill workflows |
| skill-share | Skill creation and Slack sharing | Automating skill sharing with teams |
| slack-gif-creator | Animated GIF creation for Slack | Creating GIFs optimized for Slack constraints |
| software-architecture | Clean Architecture & DDD guidance | Software design, code quality, anti-patterns |
| subagent-driven-development | Execute plans with fresh subagents per task | Plan execution with quality gates |
| theme-factory | 10 pre-set themes for artifact styling | Applying professional themes to slides, docs, or HTML |
| terraform | HashiCorp Terraform Infrastructure as Code (IaC) | Managing cloud infrastructure, writing .tf files, state management, multi-cloud provisioning |
| turbo-python-sdk | Python SDK for Ardrive Turbo Upload and Payment Service | Arweave uploads with Python, companion to turbo-sdk |
| turbo-sdk | Complete Arweave Turbo ecosystem including client SDKs, core upload infrastructure, payment service backend, and CLI tools | Arweave uploads, permanent storage, ANS-104 bundling, multi-signature support, AWS-scale infrastructure |
| twilio-voice | Comprehensive Twilio Voice API assistance with AI integration patterns | Voice assistants, OpenAI Realtime API, function-calling agents, Conversational Intelligence |
| ui-ux-pro-max | UI/UX design intelligence with 50+ styles, color palettes, font pairings, and 8 framework stacks | Frontend design, component styling, accessibility |
| using-git-worktrees | Isolated workspace management | Feature work needing isolation |
| using-superpowers | Meta-skill for skill discovery | Starting any conversation, ensuring skill usage |
| venice-ai | Privacy-focused AI platform assistance | Working with Venice.ai, privacy-focused AI implementations, platform features |
| video-downloader | Video downloads from YouTube and platforms | Downloading videos for offline viewing or archival |
| wao | Wizard AO SDK & Testing framework | Working with WAO SDK, testing AO applications, understanding AO development |
| weavedb | Decentralized database protocol with zero-knowledge proofs | Building with WeaveDB, implementing decentralized databases, permanent storage solutions |
| x402 | HTTP 402 payment protocol for crypto-native API monetization | Implementing paid APIs, AI agent payments, micropayments, USDC integration, MCP server payments |
| webapp-testing | Playwright-based web app testing | Testing local web applications or debugging UI |
Advanced Orchestration Skills - Enterprise-grade patterns (Document 15):
| Skill | Purpose | Use When |
|---|---|---|
| task-dependency-resolver-skill | Kahn's algorithm for topological sorting and cycle detection | Executing workflows with complex task dependencies (DAG execution) |
| agent-pool-manager-skill | Auto-scaling, health monitoring, and agent recycling | Managing variable workloads with dynamic agent pools |
| distributed-state-sync-skill | CRDT implementations for conflict-free distributed state | Sharing state across concurrent agents with automatic conflict resolution |
| saga-pattern-skill | Compensating transactions for distributed workflows | Multi-step workflows requiring automatic rollback on failure |
| circuit-breaker-skill | 3-state FSM to prevent cascading failures | Protecting against failing external services or dependencies |
| performance-profiler-skill | Token usage analysis and bottleneck detection | Optimizing costs and meeting performance SLAs |
Basic Orchestration Skills - Multi-agent coordination:
| Skill | Purpose | Use When |
|---|---|---|
| multi-agent-planner-skill | Automated MULTI_AGENT_PLAN.md generation | Creating multi-agent plans for complex features |
| parallel-executor-skill | Concurrent task execution orchestration | Executing tasks in parallel across agents |
| worktree-manager-skill | Git worktree lifecycle management | Setting up isolated workspaces for agents |
| agent-communication-skill | Inter-agent messaging and handoffs | Facilitating communication between agents |
- Documentation:
docs/best-practices/08-Claude-Skills-Guide.md - Templates:
templates/skills/ - Examples:
skills/*/SKILL.md - Best Practices: See comprehensive skills guide
- Official Spec:
docs/references/agent-skills-specification.md(Anthropic's open standard)
Anthropic's latest research reveals a fundamental shift: For most AI workflows, a single general agent dynamically loading skills dramatically outperforms multiple specialized agents in cost, efficiency, and maintainability.
Token Efficiency: Skills-first achieves 35% reduction in token usage vs. multi-agent
- Root cause: Context sharing and progressive disclosure
- Multi-agent: Each agent loads full context independently (15x baseline)
- Skills-first: Single agent loads base context once, then adds skills progressively (5-7x baseline)
Maintenance Burden: One agent configuration vs. N agent definitions
- Multi-agent: Update N agents when patterns evolve
- Skills-first: Update 1 agent + M skills (where M is typically smaller than N)
- Real savings: 60-80% reduction in configuration maintenance
Context Continuity: No context loss between steps
- Multi-agent: Handoffs require serializing context, losing nuance
- Skills-first: Same agent maintains full context from start to finish
- Quality impact: Fewer misunderstandings, better coherence
OLD Approach (Multi-Agent Specialization):
# Separate agent for each capability
agents:
- oauth-agent.md # Handles OAuth only
- jwt-agent.md # Handles JWT only
- session-agent.md # Handles sessions only
- validation-agent.md # Handles validation only
workflow:
1. OAuth agent authenticates β hands off to JWT agent
2. JWT agent issues token β hands off to Session agent
3. Session agent creates session β hands off to Validation agent
4. Validation agent verifies β returns to orchestrator
problems:
- 4 agent configs to maintain
- 3 handoff points (context loss risk)
- Each agent loads independent context
- 15x token usage vs. baselineNEW Approach (Skills-First with Single Agent):
# General agent loads capabilities on demand
agent: general-backend-agent.md
skills:
- oauth-skill.md
- jwt-skill.md
- session-skill.md
- validation-skill.md
workflow:
1. Agent loads oauth-skill β authenticates
2. Agent loads jwt-skill β issues token
3. Agent loads session-skill β creates session
4. Agent loads validation-skill β verifies
5. All in same context, zero handoffs
benefits:
- 1 agent config + 4 skills
- 0 handoff points
- Progressive context loading
- 5-7x token usage vs. baseline (65% savings)
- Skills reusable across projectsβ Multi-Agent Approach (Inefficient):
User: "Fix the login timeout bug"
1. Orchestrator analyzes β spawns Debug-Agent
(Context: Load project, analyze codebase - 10K tokens)
2. Debug-Agent investigates β hands off to Fix-Agent
(Context: Re-load project, previous findings - 12K tokens)
3. Fix-Agent implements β hands off to Test-Agent
(Context: Re-load project, understand fix - 11K tokens)
4. Test-Agent validates β reports back
(Context: Re-load test suite, understand changes - 9K tokens)
Total: 42K tokens, 3 handoffs, context duplicated 4 times
β Skills-First Approach (Efficient):
User: "Fix the login timeout bug"
Single Agent workflow:
1. Loads root-cause-tracing-skill β identifies bug location
(Context: Project loaded once - 10K tokens)
2. Loads builder-skill β implements fix
(Additional context: Just the skill - +2K tokens)
3. Loads validator-skill β writes and runs tests
(Additional context: Just the skill - +2K tokens)
Total: 14K tokens, 0 handoffs, context maintained throughout
Savings: 67% reduction in tokens, zero context loss
Scenario: Add user profile picture upload
β Multi-Agent (6 agents, 8 handoffs):
workflow:
- Architect-Agent: Design upload system β 15K tokens
- Frontend-Agent: Build UI component β 18K tokens (reload context)
- Backend-Agent: Create API endpoint β 17K tokens (reload context)
- Storage-Agent: Configure S3 integration β 14K tokens (reload context)
- Security-Agent: Add validation β 16K tokens (reload context)
- Test-Agent: Write tests β 19K tokens (reload context)
total: 99K tokens across 6 agents
handoffs: 8 (context serialization overhead)
maintenance: 6 agent configs to keep in syncβ Skills-First (1 agent, 6 skills):
workflow:
- Agent loads architect-skill: Design system β 15K tokens (initial)
- Agent loads frontend-skill: Build UI β +3K tokens
- Agent loads backend-skill: Create API β +3K tokens
- Agent loads storage-skill: S3 setup β +2K tokens
- Agent loads security-skill: Validation β +2K tokens
- Agent loads testing-skill: Test suite β +3K tokens
total: 28K tokens with single agent
handoffs: 0 (same agent, continuous context)
maintenance: 1 agent + 6 reusable skills
savings: 72% token reduction, 100% context preservationβ Multi-Agent (Sequential specialists):
PR submitted β 4 specialized review agents
1. Style-Agent reviews formatting β 8K tokens
2. Security-Agent scans vulnerabilities β 9K tokens (reload code)
3. Performance-Agent checks efficiency β 10K tokens (reload code)
4. Logic-Agent validates correctness β 11K tokens (reload code)
Total: 38K tokens, each agent reprocesses same code
Result: 4 separate reports requiring manual synthesis
β Skills-First (Comprehensive single pass):
PR submitted β General agent with review skills
1. Agent loads code-review-skill
- Checks style
- Scans security
- Analyzes performance
- Validates logic
- Generates unified report
Total: 12K tokens, code loaded once
Result: Single coherent report with cross-cutting insights
Savings: 68% tokens + better analysis (sees interactions)
| Task Type | Dependencies | Recommended Approach | Why |
|---|---|---|---|
| Bug fix | Sequential | β Single agent + skills | Context continuity critical for understanding cause β fix β test flow |
| Small feature (< 500 LOC) | Sequential | β Single agent + skills | Overhead of multi-agent exceeds benefits |
| Large feature (> 500 LOC) | Mixed | β Single agent + skills OR Hybrid | Skills-first unless parallel workstreams needed |
| Research task | Independent | β Multi-agent | Breadth-first exploration benefits from parallel investigation |
| Code review | Sequential | β Single agent + skills | Cross-cutting analysis requires unified context |
| Refactoring | Sequential | β Single agent + skills | Must maintain coherent mental model across changes |
| Documentation | Sequential | β Single agent + skills | Narrative flow requires continuous context |
| Testing | Can parallelize | βοΈ Skills OR Multi-agent | Skills for sequential, multi-agent if test suites are truly independent |
| Deployment | Parallel environments | β Multi-agent | Deploy to dev/staging/prod simultaneously |
| POC exploration | Independent | β Multi-agent | Compare multiple approaches in parallel |
| Migration | Sequential | β Single agent + skills | State transitions must be coordinated |
| Performance optimization | Sequential | β Single agent + skills | Requires holistic view of system interactions |
β Use Single Agent + Skills When:
-
Context Matters - The task requires understanding accumulated context from previous steps
- Example: Refactoring where later changes depend on earlier architectural decisions
- Why skills win: Zero context loss, agent maintains full understanding
-
Sequential Dependencies - Step B cannot start until Step A completes
- Example: Design API β Implement endpoints β Write tests β Document
- Why skills win: Natural workflow, no handoff overhead
-
Cross-Cutting Analysis - Need to see interactions and relationships
- Example: Security review examining how auth, data validation, and logging interact
- Why skills win: Unified view enables spotting subtle vulnerabilities
-
Iterative Refinement - Task involves back-and-forth adjustments
- Example: UI development with continuous styling tweaks
- Why skills win: Agent learns preferences and applies consistently
-
Standard Development - Common programming tasks
- Example: CRUD operations, API endpoints, database migrations
- Why skills win: 35% token savings, faster execution, simpler debugging
β Use Multi-Agent When:
-
True Parallelization - Tasks are genuinely independent and can run simultaneously
- Example: Research 5 different database solutions
- Why multi-agent wins: Wall-clock time reduction, breadth-first coverage
-
Diversity of Approaches - Want to compare multiple solution strategies
- Example: Implement feature 3 different ways to evaluate trade-offs
- Why multi-agent wins: Stochastic variation provides genuine alternatives
-
Scale Demands Concurrency - Dataset too large for sequential processing
- Example: Analyze security of 100 microservices
- Why multi-agent wins: Parallel execution reduces total time
-
Environment Isolation - Operations in truly separate contexts
- Example: Deploy to 10 regional clusters simultaneously
- Why multi-agent wins: Prevents cross-contamination, enables rollback per region
β Use Hybrid (Orchestrator + Workers with Skills) When:
-
Complex Feature with Parallel Sub-Tasks
- Example: E-commerce checkout (payment processing || inventory check || email confirmation)
- Architecture: Orchestrator coordinates, each worker loads relevant skills
- Result: Parallel efficiency + skills token optimization
-
Multi-Layered System Changes
- Example: Update frontend + backend + database + infrastructure
- Architecture: Worker per layer, each with specialized skills
- Result: Parallel execution with deep expertise per layer
Step 1: Identify Your Common Workflows
# Audit what you do repeatedly
- What coding patterns do you repeat?
- What multi-step processes do you always follow?
- What expertise do you wish your team shared?Step 2: Convert Workflows to Skills
# Use the skill creation pipeline
skill-seekers docs ./your-documentation/
# Or extract from successful project
skill-seekers github your-org/successful-project --enhanceStep 3: Build a Skills Library
my-skills/
βββ backend/
β βββ fastapi-skill.md
β βββ database-skill.md
β βββ api-testing-skill.md
βββ frontend/
β βββ react-patterns-skill.md
β βββ accessibility-skill.md
βββ devops/
βββ docker-skill.md
βββ k8s-deploy-skill.md
Step 4: Use Skills in Your Workflow
# In your conversations with Claude:
"Use the fastapi-skill to build this API endpoint"
"Load the database-skill and api-testing-skill for this feature"
# Or invoke via Skill tool:
Uses the Skill tool with skill="fastapi"Step 5: Measure and Optimize
Track metrics:
- Token usage before vs. after skills adoption
- Time to complete similar tasks
- Consistency across team members
- Knowledge retention (can new members ship faster?)
Typical results:
- 30-40% token reduction
- 25-35% faster task completion
- 50%+ reduction in "how do we do X?" questions
If you already have multiple specialized agents:
# STEP 1: Identify overlap
current_agents:
- frontend-agent.md (600 lines)
- backend-agent.md (800 lines)
- testing-agent.md (500 lines)
common_sections:
- All three have similar "allowed-tools"
- All three load project context
- All three have coding standards
- Overlap: ~60% of content duplicated
# STEP 2: Extract unique capabilities as skills
create_skills:
- frontend-skill.md (200 lines of unique patterns)
- backend-skill.md (300 lines of unique patterns)
- testing-skill.md (150 lines of unique patterns)
# STEP 3: Create general developer agent
general-agent.md:
- Common tooling: Read, Edit, Write, Bash, Search
- Project context: README, CLAUDE.md, architecture docs
- Skill loading: Can dynamically load any skill as needed
- Size: 300 lines (vs. 1900 lines across 3 agents)
# STEP 4: Gradual migration
week_1: Use skills-first for new bugs
week_2: Use skills-first for new features
week_3: Deprecate old multi-agent configs
week_4: Full skills-first adoption
results:
- Maintenance burden: 1 agent + 3 skills vs. 3 agents
- Token efficiency: 35% improvement
- Team velocity: 20% faster (less context switching)- 35% reduction in token usage through context reuse
- Single agent to maintain and configure
- Composable capabilities - combine skills for complex workflows
- Progressive context loading - load only what's needed per phase
- Easier knowledge sharing across teams and projects
- Faster onboarding - understand one agent pattern + modular skills
- Breadth-first parallel tasks - Research across independent sources
- Multiple independent workstreams - Concurrent feature development
- Exploring alternative approaches simultaneously
- Time-sensitive deliverables requiring parallel execution
- Large-scale operations needing true concurrency
For complex features, combine both patterns:
Orchestrator (Opus 4)
β
Spawns workers (Sonnet 4)
β
Each worker loads appropriate skills dynamically
Result: Parallel execution efficiency + skills-first token optimization
Read More: See Agent Skills vs. Multi-Agent Guide for detailed decision matrices, migration strategies, and performance analysis.
NEW: Automated content ingestion and repository health monitoring.
The Integration System provides automated workflows for:
- Ingesting new content - Commands, agents, skills, and documentation
- Validating quality - Structure, security, and standards compliance
- Integrating seamlessly - Moving files to correct locations and updating docs
- Maintaining audit trails - Complete logs of all integration activities
Step 0: Generate Skills (NEW) Create skills automatically from documentation, GitHub repos, or PDFs:
# From documentation
/create-skill --url https://fastapi.tiangolo.com --name fastapi
# From GitHub repository
/create-skill --github facebook/react --enhance
# From PDF
/create-skill --pdf /path/to/manual.pdf --name api-guideSkills are auto-generated and placed in /INTEGRATION/incoming/, ready for integration.
Step 1: Add Content
Or manually place files in /INTEGRATION/incoming/:
cp my-new-command.md /INTEGRATION/incoming/Step 2: Scan
/integration-scan
Categorizes files and generates detailed report (auto-run by /create-skill).
Step 3: Review
Check the scan report at /INTEGRATION/logs/scan-report-[timestamp].md
Step 4: Integrate (Coming Soon)
/integration-process # Move validated files to proper locations
/integration-validate # Run comprehensive quality checks
/integration-update-docs # Update all documentation
The Maintenance System keeps the repository healthy by:
- Identifying stale content - Files not updated in 30+ days
- Researching improvements - Latest best practices and patterns
- Proposing updates - Concrete action items for evolution
- Tracking repository health - Freshness scores and metrics
Step 1: Scan for Stale Files
/maintenance-scan
Generates report at /MAINTENANCE/todo/stale-files-[timestamp].md
Step 2: Review Priority Files (Coming Soon)
/maintenance-review path/to/stale-file.md
Research Specialist agent investigates and proposes updates.
Step 3: Update Development Plan (Coming Soon)
/maintenance-plan-update
Adds approved improvements to DEVELOPMENT_PLAN.md
/INTEGRATION/
βββ incoming/ # Drop new files here
βββ processed/ # Archive of successfully integrated files
βββ failed/ # Files that didn't pass validation
βββ logs/ # Scan and integration reports
/MAINTENANCE/
βββ reports/ # Research findings and proposals
βββ todo/ # Stale file lists and action items
The Integration Manager orchestrates the entire ingestion pipeline:
- Scans incoming directories
- Categorizes by type (Command/Agent/Skill/Doc)
- Validates against repository standards
- Coordinates file movement and documentation updates
- Maintains comprehensive audit trails
See: agents-templates/integration-manager.md
β Consistency - All content follows repository standards
β Security - Automated validation catches security issues
β Quality - Comprehensive checks before integration
β Automation - Reduces manual file management
β Audit Trail - Complete history of all changes
β Repository Health - Proactive staleness detection
NEW: Comprehensive GitHub Actions workflows for automated maintenance, security, and integration.
The repository includes 6 production-ready GitHub Actions workflows:
π§ Maintenance Scan
- Schedule: Monthly (1st @ 2 AM UTC)
- Purpose: Identifies stale files and generates health reports
- Output: GitHub Issue with actionable maintenance tasks
- Cost: ~$0.03/month
π Integration Pipeline
- Schedule: Hourly during work hours (Mon-Fri 9 AM-5 PM)
- Trigger: New files in
INTEGRATION/incoming/ - Pipeline: Scan β Validate β Process β Create PR
- Output: Automated PR for validated files
- Cost: ~$1.80/month
π Research Monitor
- Schedule: Weekly (Monday @ 9 AM UTC)
- Sources: Anthropic blog, SDK releases, MCP servers
- Output: GitHub Issue with research summary
- Downloads: New content to
INTEGRATION/incoming/ - Cost: ~$0.06/month
π Security Scanning
- Schedule: Daily @ 3 AM UTC + on push/PR
- Tools: CodeQL, TruffleHog, ShellCheck, Dependency Review
- Output: Security alerts + issues for findings
- Cost: Free (GitHub native)
β PR Validation
- Trigger: All pull requests
- Validates: Commands, agents, skills, structure
- Includes: Claude code review
- Mode: Non-blocking advisory
- Cost: ~$1.20/month
π Link Checker
- Schedule: Weekly (Wednesday @ 10 AM UTC)
- Validates: All markdown links
- Output: GitHub Issue if broken links found
- Cost: Free
Configure in repository settings:
Settings β Secrets and variables β Actions
Name: ANTHROPIC_API_KEY
Value: <your-anthropic-api-key>
All workflows support manual dispatch:
- Go to Actions tab
- Select workflow from sidebar
- Click Run workflow
- Configure inputs (if any)
- Click Run workflow
Total Monthly Cost: ~$3.09 in Anthropic API usage + Free GitHub Actions
Monitoring:
- Weekly: Review failed workflows, triage issues, merge PRs
- Monthly: Review maintenance report, audit security alerts
- Quarterly: Update configurations, rotate API key
Benefits:
- β Automated Health Checks - Catches stale content early
- β Security First - Daily scans with multiple tools
- β Quality Gates - Automated PR validation
- β Research Tracking - Stay current with Claude ecosystem
- β Cost Effective - ~$3/month for comprehensive automation
- β Zero Maintenance - Runs autonomously with human approval gates
All automation is in .github/:
workflows/maintenance-scan.yml- Monthly health checksworkflows/integration-pipeline.yml- Content processingworkflows/security-scanning.yml- Security auditsworkflows/pr-validation.yml- PR quality checksworkflows/research-monitor.yml- Research trackingworkflows/link-checker.yml- Link validationactions/setup-claude/- Composite action for Claude CLIdependabot.yml- Dependency updatesmarkdown-link-check.json- Link checker config
See CLAUDE.md#github-actions-automation for detailed documentation.
For most workflows, use a general agent that dynamically loads skills:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β General Agent (Claude) β
β β
β Dynamically Loads Skills Based on Task: β
β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β
β β Builder β βValidatorβ β Scribe β β DevOps β β
β β Skill β β Skill β β Skill β β Skill β β
β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Benefits:
- Maintains context across workflow phases
- 35% more token-efficient than multi-agent
- Single agent to configure and maintain
- Skills are composable and reusable
- Progressive context loading
- Easier knowledge sharing
Use For:
- Feature implementation (sequential workflows)
- Bug fixes and refactoring
- Documentation generation
- Code reviews and testing
- Standard development tasks
Best for breadth-first parallelizable work:
- Research across multiple independent sources
- Exploring multiple solution approaches simultaneously
- Multi-environment deployments
- Large-scale concurrent operations
NOT recommended for:
- Sequential coding workflows
- Single-threaded task execution
- When context needs to flow between steps
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Lead Agent (Orchestrator) β
β - Claude Opus 4 β
β - Request analysis β
β - Task decomposition β
β - Result synthesis β
ββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
β Spawns & coordinates
β
ββββββββββ΄βββββββββ¬βββββββββββ¬βββββββββββ
β β β β
βββββΌββββ βββββββΌβββββ ββββΌβββββ βββΌββββββ
βBuilderβ βValidator β βScribe β βDevOps β
βSonnet β βSonnet β βSonnet β βSonnet β
βββββββββ ββββββββββββ βββββββββ βββββββββ
Key Benefits:
- Parallel execution of independent tasks
- Cost optimization (efficient models for routine work)
- Specialized expertise per domain
- Clear responsibility boundaries
- Maintainable complexity
When to Use:
- Feature development spanning multiple concerns
- Complex refactoring requiring testing and documentation
- Release preparation with quality gates
- Multi-environment deployment orchestration
Modern Hybrid Approach: Orchestrator spawns workers that each load appropriate skills:
βββββββββββββββββββββββββββββ
β Orchestrator Agent β
β (Opus 4) β
βββββββββββββ¬ββββββββββββββββ
β
ββββββββββΌβββββββββ
β β β
ββββΌββββββ ββΌβββββββ ββΌβββββββ
βAgent 1 β βAgent 2β βAgent 3β
β+Skills β β+Skillsβ β+Skillsβ
ββββββββββ βββββββββ βββββββββ
Result: Parallel execution + skills-first token efficiency
NEW: Advanced patterns for parallel, concurrent multi-agent development with git worktree isolation.
The ultimate productivity pattern: Combine git worktrees with multi-agent orchestration for 3-10x faster development while maintaining code quality.
Problem with Sequential Development:
Day 1: Design authentication β 2 hours
Day 1: Implement OAuth β 4 hours
Day 2: Test OAuth β 2 hours
Day 2: Decide JWT might be better β stuck with OAuth
Day 2: Document OAuth β 1 hour
Total: 9 hours, single approach, can't compare alternatives
Solution with Git Worktrees + Multi-Agent:
Hour 1: Design authentication (Architect agent, main branch)
Hour 1-3: Parallel implementation in 3 worktrees:
ββ Agent 1 (OAuth) in ../auth-worktree-oauth
ββ Agent 2 (JWT) in ../auth-worktree-jwt
ββ Agent 3 (Session) in ../auth-worktree-session
Hour 3: Compare all 3 implementations
Hour 3: Select best approach (JWT wins)
Hour 3: Merge JWT implementation to main
Total: 3 hours, explored 3 alternatives, picked best
Speedup: 3x faster + higher quality through comparison
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Lead Orchestrator (Claude Opus 4) β
β β’ Decomposes feature into parallel tasks β
β β’ Spawns specialized agents in isolated worktrees β
β β’ Monitors progress and coordinates handoffs β
β β’ Synthesizes results and resolves conflicts β
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββΌβββββββββββββββββ¬βββββββββββββββββ
β β β β
βΌ βΌ βΌ βΌ
βββββββββββββββ βββββββββββββββ ββββββββββββββ βββββββββββββββ
β Agent 1 β β Agent 2 β β Agent 3 β β Agent 4 β
β Architect β β Builder β β Builder β β Validator β
β β β (OAuth) β β (JWT) β β β
β Worktree: β β Worktree: β β Worktree: β β Worktree: β
β ../arch β β ../impl-v1 β β ../impl-v2 β β ../tests β
β Branch: β β Branch: β β Branch: β β Branch: β
β feat/design β β feat/oauth β β feat/jwt β β feat/tests β
βββββββββββββββ βββββββββββββββ ββββββββββββββ βββββββββββββββ
All worktrees share the same .git (history, branches, commits)
Each worktree has its own working directory (zero conflicts!)
1. Massive Speed Gains (3-10x)
- Why: Agents work truly in parallel, not sequentially
- Example: 4 independent tasks Γ 2 hours = 2 hours total (vs. 8 hours sequential)
- When it matters most: Complex features, exploration tasks, multi-layer systems
2. Zero Merge Conflicts During Development
- Why: Each agent has its own working directory
- Traditional problem: Agent A modifies file.js while Agent B reads it β corruption
- Worktree solution: Agent A modifies ../worktree-a/file.js, Agent B reads ../worktree-b/file.js β perfect isolation
- Merge conflicts only happen at integration time (when you choose to merge)
3. Explore Multiple Approaches
- Why: Spawn N agents to explore N different solutions
- Example: OAuth vs JWT vs Session-based auth
- Result: Compare working implementations, not theoretical designs
- Bonus: Stochastic LLM variation means genuinely different approaches
4. Clean Git Integration
- Why: Worktrees share .git history
- Benefit: All commits visible from any worktree
- Benefit: Branches created in one worktree visible in all others
- Benefit: Easy to compare, cherry-pick, or merge between approaches
5. Resource Efficiency
- Disk: Worktrees share .git objects (minimal overhead ~10MB per worktree)
- Memory: Each agent runs independently (no blocking)
- Cost: Parallel execution reduces wall-clock time = lower developer cost
Scenario: Implement a payment processing system with 3 payment providers (Stripe, PayPal, Square)
Step 1: Initial Planning (5 minutes)
# In your main project directory
/orchestrate-feature
# Orchestrator asks: "What feature are you implementing?"
You: "Payment processing with Stripe, PayPal, and Square"
# Creates MULTI_AGENT_PLAN.md:feature: payment-processing
approach: parallel-exploration
agents:
- architect-agent: Design payment abstraction layer (main branch)
- builder-stripe: Implement Stripe integration (worktree)
- builder-paypal: Implement PayPal integration (worktree)
- builder-square: Implement Square integration (worktree)
- validator-agent: Test all integrations (worktree)
dependencies:
- Architect completes β Builders start
- All Builders complete β Validator starts
estimated_time: 3-4 hours (vs. 12 hours sequential)Step 2: Create Worktrees (30 seconds)
# Orchestrator automatically creates worktrees
/spawn-agents
# Creates:
# ../payment-worktree-stripe (branch: feat/stripe-integration)
# ../payment-worktree-paypal (branch: feat/paypal-integration)
# ../payment-worktree-square (branch: feat/square-integration)
# ../payment-worktree-tests (branch: feat/payment-tests)
# Your filesystem:
myproject/ β Your current location
../payment-worktree-stripe/ β Agent 1 workspace
../payment-worktree-paypal/ β Agent 2 workspace
../payment-worktree-square/ β Agent 3 workspace
../payment-worktree-tests/ β Agent 4 workspaceStep 3: Architect Designs Interface (30 minutes)
// Architect agent in main branch creates:
// src/payments/PaymentProvider.ts
interface PaymentProvider {
processPayment(amount: number, currency: string): Promise<PaymentResult>;
refund(transactionId: string): Promise<RefundResult>;
getStatus(transactionId: string): Promise<PaymentStatus>;
}
// Commits to main branch, all worktrees see this immediatelyStep 4: Parallel Implementation (2 hours)
# All 3 builder agents work simultaneously in parallel
# Agent 1 in ../payment-worktree-stripe:
cd ../payment-worktree-stripe
# Implements StripePaymentProvider
# Tests with Stripe API
# Commits to feat/stripe-integration
# Agent 2 in ../payment-worktree-paypal:
cd ../payment-worktree-paypal
# Implements PayPalPaymentProvider
# Tests with PayPal SDK
# Commits to feat/paypal-integration
# Agent 3 in ../payment-worktree-square:
cd ../payment-worktree-square
# Implements SquarePaymentProvider
# Tests with Square API
# Commits to feat/square-integration
# NO CONFLICTS - each agent has isolated workspace!Step 5: Monitor Progress (Continuous)
/coordinate-workflow
# Live status dashboard:
βββββββββββββββββββββββββββββββββββββββββββ
β Payment Processing - Live Status β
βββββββββββββββββββββββββββββββββββββββββββ€
β β
Architect: Design complete β
β π Stripe Builder: 80% (testing...) β
β π PayPal Builder: 65% (implementing) β
β β
Square Builder: 100% (DONE) β
β βΈοΈ Validator: Waiting for builders β
βββββββββββββββββββββββββββββββββββββββββββStep 6: Compare Implementations (30 minutes)
# All 3 implementations complete
# Orchestrator compares:
Stripe Implementation:
β
Clean code structure
β
Comprehensive error handling
β οΈ Requires webhook setup (complexity)
β οΈ Higher transaction fees
PayPal Implementation:
β
Familiar UX for users
β
Lower fees than Stripe
β οΈ API more complex
β οΈ Slower settlement times
Square Implementation:
β
Simplest API integration
β
Best documentation
β
Fastest settlement
β
Lowest fees
β Limited international support
# Decision: Use Square as primary, keep Stripe as fallbackStep 7: Merge Winner (15 minutes)
# In main project directory
git merge feat/square-integration
git merge feat/stripe-integration # Keep as backup provider
# Clean up unneeded worktrees
/worktree-setup cleanup
# Removes:
# ../payment-worktree-paypal (implementation discarded)
# ../payment-worktree-tests (tests merged to main)Step 8: Final Validation (30 minutes)
/quality-gate
# Runs:
β
Unit tests for Square integration
β
Unit tests for Stripe integration
β
Integration tests with test accounts
β
Security scan (no hardcoded keys)
β
Documentation completeness
β
Code review checklist
# Result: PASS - Ready for productionTotal Time: 3.5 hours
- Sequential approach (one at a time): ~12 hours
- Speedup: 3.4x faster
- Bonus: Evaluated 3 providers, made informed choice
- Bonus: Kept Stripe as backup (diversification)
β Perfect for:
- Complex features with multiple valid approaches
- Exploring 2-5 alternative implementations
- Full-stack features (FE + BE + DB all in parallel)
- Large refactorings affecting multiple modules
- POCs where you need to compare solutions
β Overkill for:
- Simple bug fixes
- Features with one obvious implementation
- Tasks requiring deep context sharing between steps
- Quick documentation updates
| Command | Purpose | Execution Time |
|---|---|---|
| orchestrate-feature | Multi-agent feature orchestration with parallel task execution | 90-120 min for complex features |
| spawn-agents | Dynamic agent instantiation with role assignment and resource allocation | < 1 min per agent |
| coordinate-workflow | Real-time inter-agent communication and progress tracking | Continuous monitoring |
| worktree-setup | Git worktree lifecycle management and cleanup automation | < 10 sec per worktree |
| quality-gate | Multi-stage validation pipeline with parallel test execution | 20-30 min validation |
| Agent | Model | Purpose | Cost Optimization |
|---|---|---|---|
| Orchestrator Lead | Claude Opus 4 | Request decomposition, agent spawning, result synthesis | High capability for planning |
| Task Coordinator | Claude Sonnet 4 | Dependency management, parallel optimization, bottleneck detection | Efficient for coordination |
| Integration Orchestrator | Claude Sonnet 4 | Result merging, conflict resolution, final validation | Efficient for integration |
| Monitoring Agent | Claude Haiku 3.5 | Real-time tracking, metrics collection, cost monitoring | Minimal cost for monitoring |
| Skill | Purpose | Integration |
|---|---|---|
| multi-agent-planner-skill | Automated MULTI_AGENT_PLAN.md generation with dependency analysis | Orchestrate-feature command |
| parallel-executor-skill | Concurrent task execution with work distribution and result aggregation | Spawn-agents, coordinate-workflow |
| worktree-manager-skill | Git worktree lifecycle management and merge strategies | Worktree-setup command |
| agent-communication-skill | Inter-agent messaging and handoff documentation | Coordinate-workflow command |
| Scenario | Use Orchestration? | Recommended Pattern |
|---|---|---|
| Simple bug fix (< 100 lines) | β No | Single Builder agent |
| Feature with clear implementation (< 500 lines) | β No | Single Builder + Validator |
| Complex feature with multiple approaches | β Yes | Parallel builders + comparison |
| Large refactoring (multi-module) | β Yes | Architect + parallel builders |
| Full-stack feature (FE + BE + DB + Tests + Docs) | β Yes | Specialized agents per layer |
| Exploring technical solutions (POC) | β Yes | Parallel researchers |
Lightweight Isolation (default for trusted code):
- Setup time: < 1 second per worktree
- Disk overhead: Minimal (shared .git)
- Isolation level: Filesystem only
- Use case: Parallel feature variants, rapid prototyping
Container-Based Isolation (security-critical):
- Setup time: 1-3 minutes per container
- Disk overhead: High (per-container layers)
- Isolation level: Full process isolation
- Use case: Untrusted code, compliance requirements
Hybrid Approach (production systems):
- Containers for primary isolation
- Worktrees within containers for lightweight filesystem separation
- Defense-in-depth security
- Resource quotas enforced at container level
- Least Privilege: Grant minimum necessary permissions per agent/command
- Explicit Allowlists: Use
allowed-toolsto restrict operations - Input Validation: Sanitize all dynamic values and user inputs
- Approval Gates: Require human confirmation for critical operations
- Audit Logging: Maintain detailed logs of all agent actions
- Rollback Capability: Design for safe recovery from failures
# Restrictive (default for most commands)
allowed-tools: ["Read", "Search"]
# Development (standard builder agent)
allowed-tools: ["Read", "Search", "Edit", "Test", "Bash(git:*)"]
# Operations (devops with infrastructure access)
allowed-tools: ["Read", "Edit", "Bash(git:*)", "Bash(docker:*)", "Bash(kubectl:*)"]
# NEVER grant unrestricted access
# β allowed-tools: ["Bash(*)"] # Dangerous!β Do:
- Use descriptive verb-noun naming (
/prepare-pr,/deploy-check) - Specify explicit
allowed-toolsrestrictions - Include comprehensive inline documentation
- Implement error handling and validation
- Version semantic changes (1.0 β 1.1)
β Don't:
- Hardcode project-specific values
- Grant excessive permissions
- Create monolithic multi-purpose commands
- Skip input validation
- Forget to document expected behavior
β Do:
- Define clear, focused roles
- Document responsibilities explicitly
- Implement context isolation
- Create handoff protocols
- Test agent interactions
β Don't:
- Create generalist "do everything" agents
- Allow unscoped context pollution
- Skip security boundary definitions
- Forget collaboration patterns
- Neglect memory management
β Do:
- Use orchestrator-worker pattern
- Create MULTI_AGENT_PLAN.md for coordination
- Define clear communication protocols
- Implement parallel execution where possible
- Handle errors gracefully with recovery
β Don't:
- Create circular dependencies
- Skip dependency mapping
- Neglect error propagation
- Forget result validation
- Ignore cost optimization
For Personal Use:
# Clone repository
git clone https://github.com/enuno/claude-command-and-control.git
# Copy templates to your Claude commands directory
cp -r templates/commands/* ~/.claude/commands/
# Copy agent templates to your project
cp -r templates/agents/* ./.claude/agents/For Team/Organization:
# Add as submodule to your project
git submodule add https://github.com/enuno/claude-command-and-control.git docs/claude
# Reference in your CLAUDE.md
echo "Import command and agent standards from docs/claude/" >> CLAUDE.mdCreate a Development Session:
# Initialize session with context
/start-session
# Plan work for the session
/plan
# Make changes...
# Close session with summary
/close-sessionMulti-Agent Feature Development:
# Architect agent: Create development plan
/plan feature/user-authentication
# Builder agent: Implement feature
# (automated via MULTI_AGENT_PLAN.md)
# Validator agent: Run tests and review
/test-all
# Scribe agent: Generate documentation
/docs
# DevOps agent: Prepare deployment
/prQuality Assurance Workflow:
# Check environment
/env-check
# Run full test suite
/test-all
# Fix linting issues
/lint-fixes
# Update dependencies
/deps-update
# Clean workspace
/cleanupOrganizations using these patterns report:
- 28.4% reduction in operational costs through efficient model selection
- 96.7% maintained performance quality with optimized architectures
- 40% faster feature delivery with multi-agent parallelization
- 60% reduction in human code review time through automated validation
- Zero security incidents when following security best practices
Your go-to cheat sheet for all Claude Code commands and workflows.
| Command | Purpose | When to Use | Example |
|---|---|---|---|
/start-session |
Initialize coding session with project context | Start of every work session | Beginning of day, after context switch |
/close-session |
End session with summary and documentation | End of work session | End of day, before switching projects |
/plan |
Generate or update development plan | Planning new features or refactors | Before starting complex work |
/summarize |
Summarize recent work and changes | Need quick recap of progress | Standups, handoffs to teammates |
| Command | Purpose | When to Use | Example |
|---|---|---|---|
/test-all |
Run complete test suite (unit + integration + e2e) | Before commits, before PRs | After feature completion |
/lint-fixes |
Auto-fix code style and linting issues | Clean up code before review | Before creating PR |
/deps-update |
Check and update outdated dependencies | Weekly maintenance, security patches | Monday morning routine |
/error-report |
Generate diagnostic report for failures | Tests or builds failing | Debugging CI failures |
/env-check |
Validate development environment setup | Environment issues suspected | Onboarding, after system updates |
| Command | Purpose | When to Use | Example |
|---|---|---|---|
/pr |
Create pull request with auto-generated description | Feature complete and tested | After /test-all passes |
/docs |
Generate or update documentation | API changes, new features | After public API modifications |
/search |
Search codebase for patterns or keywords | Finding specific code or usage | Locating implementation examples |
/cleanup |
Clean temporary files, old branches, unused configs | Workspace maintenance | Weekly cleanup routine |
| Command | Purpose | When to Use | Execution Time |
|---|---|---|---|
/orchestrate-feature |
Decompose feature into parallel tasks, create plan | Complex features (> 500 LOC) | 5-10 min planning |
/spawn-agents |
Instantiate specialized agents in isolated worktrees | After orchestrate-feature | < 1 min per agent |
/coordinate-workflow |
Monitor multi-agent progress in real-time | During parallel execution | Continuous |
/quality-gate |
Run comprehensive validation before merge | Before integrating parallel work | 20-30 min |
/worktree-setup |
Manage git worktree lifecycle and cleanup | Setup or cleanup worktrees | < 10 sec per worktree |
| Command | Purpose | When to Use | Execution Time |
|---|---|---|---|
/integration-scan |
Scan and categorize files in INTEGRATION/incoming/ | New content to integrate | 1-3 min |
/integration-update-docs |
Update documentation after successful integration | After integration-scan passes | 30 sec |
/maintenance-scan |
Identify stale content (> 30 days old) | Monthly repository health check | 2-5 min |
/create-skill |
Generate skill from docs/GitHub/PDF | Creating new reusable workflows | 5-30 min |
# Morning
/start-session # Load project context
/plan # Review today's goals
# ... code ...
/test-all # Validate changes
/lint-fixes # Clean up style
/pr # Create pull request
/close-session # End day with summary/maintenance-scan # Identify stale content
/deps-update # Check for updates
/cleanup # Remove unused files
/docs # Update documentation/orchestrate-feature # Plan parallel tasks
/spawn-agents # Create isolated workspaces
/coordinate-workflow # Monitor progress
/quality-gate # Validate before merge
/worktree-setup cleanup # Clean up worktrees# Generate from source
skill-seekers docs ./documentation/
# OR
skill-seekers github owner/repo --enhance
# OR
skill-seekers pdf manual.pdf
# Integrate
cp output/*/SKILL.md INTEGRATION/incoming/
/integration-scan # Validate
/integration-update-docs # Update indices/test-all # Run all tests
/test-all --unit # Unit tests only
/test-all --integration # Integration tests only
/test-all --coverage # With coverage report/create-skill --url https://docs.example.com --name example
/create-skill --github owner/repo --enhance
/create-skill --pdf manual.pdf --name manual-skill/worktree-setup create <name> <branch> # Create new worktree
/worktree-setup list # List all worktrees
/worktree-setup cleanup # Remove all worktrees
/worktree-setup cleanup <name> # Remove specific worktreeRecommended shell aliases (add to .bashrc or .zshrc):
alias c='/start-session'
alias qa='/test-all && /lint-fixes'
alias ship='/test-all && /lint-fixes && /pr'
alias maintain='/maintenance-scan && /deps-update && /cleanup'| Issue | Command to Fix | Prevention |
|---|---|---|
| Tests failing | /test-all --verbose |
Run /test-all before committing |
| Linting errors | /lint-fixes |
Enable pre-commit hooks |
| Outdated dependencies | /deps-update |
Weekly /deps-update routine |
| Environment broken | /env-check |
Document environment requirements |
| Stale documentation | /docs |
Update docs with code changes |
| Messy workspace | /cleanup |
Weekly /cleanup routine |
| Worktree conflicts | /worktree-setup cleanup |
Clean after each feature |
π‘ Combine commands in sequences:
# Pre-PR checklist
/test-all && /lint-fixes && /docs && /prπ‘ Use command output in scripts:
# Automated quality gate
if /test-all; then
/pr
else
/error-report
fiπ‘ Create custom workflows:
# Create new command that combines others
# See: docs/best-practices/02-Individual-Command-Creation.mdWe welcome contributions! Please see our Contributing Guide for:
- Code of conduct
- Development workflow
- Contribution guidelines
- Review process
- Style standards
- π Improve documentation clarity
- π¨ Add new command/agent templates
- π Report issues or bugs
- π‘ Suggest enhancements
- π Review pull requests
- π Share usage examples
This project is licensed under the MIT License - see the LICENSE file for details.
This manual synthesizes best practices from:
- Anthropic: Official Claude documentation and agent SDK patterns
- Production Teams: Real-world implementations across enterprise organizations
- Community: Open-source contributions and empirical research
- Academia: Studies on agent efficiency, safety, and effectiveness
- Security Experts: Frameworks for secure AI agent deployments
- π Full Manual Index
- π― Quick Start Guide
- ποΈ Architecture Patterns
- π Security Guidelines
- π¬ GitHub Discussions
- π Issue Tracker
- π§ Email Support
- π Anthropic Documentation
- π Claude Code Documentation
- π¬ Research Papers
Completed in 1.1 (January 2026):
- Advanced orchestration patterns - Document 15 with 6 enterprise-grade patterns (DAG execution, agent pools, distributed state, saga pattern, circuit breakers, performance profiling)
- CI/CD integration templates - Complete GitHub Actions automation system (6 workflows, security scanning, automated maintenance)
- Extended agent role library - Added 6 specialized orchestration agents (DAG orchestrator, pool manager, state manager, resilience orchestrator, performance monitor, general skills-first agent)
- Production orchestration skills - 6 advanced skill templates with algorithm implementations (Kahn's, CRDT, saga pattern, circuit breaker)
- Working examples - 5 comprehensive real-world examples with performance metrics
Remaining for 1.2 (Q1 2026):
- Performance benchmarking tools
- Multi-language command support
Planned for 2.0 (Q2 2026):
- Interactive command builder
- Visual orchestration designer
- Real-time collaboration tools
- Cloud-hosted template library
- Integration with popular IDEs
- Documentation: 15 comprehensive best practice manuals (including Document 15: Advanced Orchestration Patterns)
- Active Commands: 13 production-ready commands
- Agent Templates: 15 specialized agent configurations (10 base + 5 orchestration)
- Command Templates: 27 command templates (21 base + 6 orchestration)
- Production Skills: 20 working skills in
skills/ - Skill Templates: 35 skill templates (29 base + 6 orchestration)
- Orchestration Examples: 5 comprehensive real-world examples with metrics
- Processed Skills: 30 integrated skills in
INTEGRATION/processed/ - Code Examples: 100+ working examples across all categories
- Best Practices: 100+ documented patterns
- Security Guidelines: Comprehensive threat model and audit protocols
- Test Coverage: All templates validated
- GitHub Actions: 6 automated workflows (maintenance, integration, security, PR validation, link checking, research monitoring)
If you find this project useful, please consider starring it on GitHub to help others discover it!
Built with β€οΈ by the AI Engineering Community
Version: 1.1.0 Last Updated: January 22, 2026 Maintained By: @enuno Status: β Production Ready