# AI Agent Guidebook > πŸŽ“ Part of the **free, open-source AI Infrastructure Curriculum**. For live, instructor-led **[cohorts](https://ai-infra-curriculum.github.io/junior.html)** and **[team programs](https://ai-infra-curriculum.github.io/teams.html)**, visit **[ai-infra-curriculum.github.io](https://ai-infra-curriculum.github.io/)**. Comprehensive guides for AI-powered coding assistants, multi-agent orchestration, and Model Context Protocol (MCP) servers. --- ## ⚠️ AI-Generated Content Disclaimer > **Important Notice**: This repository contains AI-generated documentation and guides. While we strive for accuracy and completeness, **generated content may contain errors, inaccuracies, or outdated information**. > > **Status**: πŸ”„ Active development > > Please use this guidebook responsibly: > - Verify information against official documentation > - Test code examples in safe environments > - Cross-reference with authoritative sources > - Report issues or inaccuracies via GitHub Issues > > We appreciate your understanding as we develop comprehensive resources for AI-assisted development. --- ## Overview This guidebook provides in-depth documentation, best practices, templates, and examples for working with modern AI coding assistants. Whether you're using Claude Code, GitHub Copilot, Gemini CLI, or building multi-agent systems, this repository is your complete reference. ## What's Inside ### πŸ€– AI Assistant Guides Complete documentation for major AI coding assistants: - **[Claude Code](guides/claude-code/)** - Anthropic's CLI tool with MCP servers, agents, and skills - **[GitHub Copilot](guides/github-copilot/)** - GitHub's AI pair programmer (CLI and IDE) - **[Gemini CLI](guides/gemini-cli/)** - Google's Gemini integration for command line - **[Cursor](guides/cursor/)** - AI-first code editor: Agent, Plan mode, `.cursor/rules`, and MCP - **[VS Code](guides/vscode/)** - VS Code as an agentic environment: agent mode, MCP, and custom instructions - **[Google Antigravity](guides/antigravity/)** - Agent-first IDE: Editor view + Agent Manager, built on Gemini ### πŸ”Œ MCP Servers Model Context Protocol server documentation: - **[MCP Server Catalog](guides/mcp-servers/catalog.md)** - Comprehensive list of 50+ MCP servers - **[MCP Server Guide](guides/mcp-servers/guide.md)** - Installation, configuration, and usage - **[Building MCP Servers](guides/mcp-servers/building.md)** - Create your own MCP servers ### 🎭 Agents & Orchestration Multi-agent systems and orchestration patterns: - **[Agent Architecture](guides/agents-subagents/architecture.md)** - Design patterns and best practices - **[Orchestration Patterns](guides/agents-subagents/orchestration.md)** - Coordinate multiple agents - **[Agent Communication](guides/agents-subagents/communication.md)** - Message passing and state management ### 🎯 Claude Skills Reusable task packs for Claude Code: - **[Skills Guide](guides/skills/guide.md)** - Creating and using Claude Skills - **[Skill Templates](guides/skills/templates/)** - Ready-to-use skill examples - **[Skill Catalog](guides/skills/catalog.md)** - Community skills collection ### πŸ“‹ Templates Production-ready templates for project setup: - **[CLAUDE.md Template](templates/CLAUDE.md)** - Project orchestration file - **[AGENTS.md Template](templates/AGENTS.md)** - Multi-agent system configuration - **[MCP Configuration Template](templates/mcp-config.json)** - MCP server setup - **[Skills Template](templates/skill-template/)** - Claude Skills structure - **[Prompt Templates](templates/prompt-templates/)** - Fill-in-the-blank prompts for the Explore β†’ Plan β†’ Implement β†’ Verify workflow ### πŸ“Š Comparisons & Best Practices - **[Feature Comparison Matrix](comparisons/feature-matrix.md)** - Compare AI assistants - **[Use Case Guide](comparisons/use-cases.md)** - Which tool for which task - **[Best Practices](best-practices/)** - Proven patterns and anti-patterns ### πŸ’‘ Examples Real-world examples and case studies: - **[Content Generation System](examples/content-generation/)** - Multi-agent curriculum builder - **[DevOps Automation](examples/devops-automation/)** - Infrastructure management - **[Code Review System](examples/code-review/)** - Automated code analysis --- ## Quick Start ### Choose Your Tool **Starting with Claude Code?** ```bash # Read the Claude Code guide cat guides/claude-code/README.md # Copy CLAUDE.md template to your project cp templates/CLAUDE.md /path/to/your/project/ ``` **Using GitHub Copilot?** ```bash # Read the Copilot guide cat guides/github-copilot/README.md # Install Copilot CLI gh extension install github/gh-copilot ``` **Trying Gemini CLI?** ```bash # Read the Gemini CLI guide cat guides/gemini-cli/README.md ``` ### Set Up MCP Servers ```bash # Copy the MCP configuration template into your project as .mcp.json # (Claude Code's project-scope MCP config) cp templates/mcp-config.json /path/to/your/project/.mcp.json # Edit with your server configuration nano /path/to/your/project/.mcp.json # Or add servers via the CLI instead: claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem "$(pwd)" ``` ### Create Multi-Agent System ```bash # Copy AGENTS.md template to your project cp templates/AGENTS.md /path/to/your/project/ # Customize for your workflow nano /path/to/your/project/AGENTS.md ``` --- ## Repository Structure ``` ai-agent-guidebook/ β”œβ”€β”€ README.md # This file β”œβ”€β”€ guides/ β”‚ β”œβ”€β”€ claude-code/ β”‚ β”‚ β”œβ”€β”€ README.md # Claude Code overview β”‚ β”‚ β”œβ”€β”€ installation.md # Setup and installation β”‚ β”‚ β”œβ”€β”€ claude-md.md # CLAUDE.md & memory files β”‚ β”‚ β”œβ”€β”€ settings-and-permissions.md # settings.json & permissions β”‚ β”‚ β”œβ”€β”€ mcp-servers.md # MCP server integration β”‚ β”‚ β”œβ”€β”€ agents.md # Agent orchestration β”‚ β”‚ β”œβ”€β”€ skills.md # Claude Skills usage β”‚ β”‚ β”œβ”€β”€ hooks.md # Event hooks β”‚ β”‚ β”œβ”€β”€ advanced.md # Advanced techniques β”‚ β”‚ └── troubleshooting.md # Common issues β”‚ β”œβ”€β”€ github-copilot/ β”‚ β”‚ β”œβ”€β”€ README.md # Copilot overview β”‚ β”‚ β”œβ”€β”€ cli-guide.md # CLI usage β”‚ β”‚ β”œβ”€β”€ ide-guide.md # IDE integration β”‚ β”‚ β”œβ”€β”€ chat-guide.md # Copilot Chat β”‚ β”‚ β”œβ”€β”€ workspace-guide.md # Workspace context β”‚ β”‚ └── best-practices.md # Usage patterns β”‚ β”œβ”€β”€ gemini-cli/ β”‚ β”‚ β”œβ”€β”€ README.md # Gemini CLI overview β”‚ β”‚ β”œβ”€β”€ installation.md # Setup guide β”‚ β”‚ β”œβ”€β”€ usage.md # Command reference β”‚ β”‚ └── integration.md # Integration patterns β”‚ β”œβ”€β”€ mcp-servers/ β”‚ β”‚ β”œβ”€β”€ guide.md # MCP introduction β”‚ β”‚ β”œβ”€β”€ catalog.md # Server catalog (50+) β”‚ β”‚ β”œβ”€β”€ installation.md # Setup instructions β”‚ β”‚ β”œβ”€β”€ configuration.md # Configuration guide β”‚ β”‚ β”œβ”€β”€ building.md # Build your own β”‚ β”‚ └── advanced.md # Advanced topics β”‚ β”œβ”€β”€ agents-subagents/ β”‚ β”‚ β”œβ”€β”€ architecture.md # System design β”‚ β”‚ β”œβ”€β”€ orchestration.md # Coordination patterns β”‚ β”‚ β”œβ”€β”€ communication.md # Message protocols β”‚ β”‚ β”œβ”€β”€ state-management.md # State persistence β”‚ β”‚ └── examples.md # Real examples β”‚ └── skills/ β”‚ β”œβ”€β”€ guide.md # Skills overview β”‚ β”œβ”€β”€ creating.md # Build skills β”‚ β”œβ”€β”€ catalog.md # Skill collection β”‚ └── templates/ # Skill templates β”œβ”€β”€ templates/ β”‚ β”œβ”€β”€ CLAUDE.md # Claude orchestration template β”‚ β”œβ”€β”€ AGENTS.md # Multi-agent template β”‚ β”œβ”€β”€ mcp-config.json # MCP configuration β”‚ β”œβ”€β”€ skill-template/ # Claude Skill template β”‚ └── prompt-templates/ # Exploreβ†’Planβ†’Implementβ†’Verify prompts β”œβ”€β”€ examples/ β”‚ β”œβ”€β”€ content-generation/ # Curriculum builder example β”‚ β”œβ”€β”€ devops-automation/ # Infrastructure automation β”‚ β”œβ”€β”€ code-review/ # Code analysis system β”‚ └── data-pipeline/ # Data processing example β”œβ”€β”€ comparisons/ β”‚ β”œβ”€β”€ feature-matrix.md # Tool comparison β”‚ β”œβ”€β”€ use-cases.md # Which tool when β”‚ β”œβ”€β”€ performance.md # Performance benchmarks β”‚ └── cost-analysis.md # Cost comparison β”œβ”€β”€ best-practices/ β”‚ β”œβ”€β”€ prompting.md # Effective prompts β”‚ β”œβ”€β”€ agentic-workflow.md # Plan β†’ execute β†’ verify loop β”‚ β”œβ”€β”€ context-management.md # Managing context β”‚ β”œβ”€β”€ error-handling.md # Error recovery β”‚ β”œβ”€β”€ security.md # Security practices β”‚ β”œβ”€β”€ testing.md # Testing AI systems β”‚ β”œβ”€β”€ performance.md # Model selection & cost/latency β”‚ └── agent-governance.md # Agent governance & trust └── .github/ └── workflows/ └── ci.yml # CI validation ``` --- ## Key Features ### Claude Code - βœ… **MCP Server Integration** - 50+ pre-built servers for extended functionality - βœ… **Multi-Agent Orchestration** - Spawn specialized agents for complex tasks - βœ… **Claude Skills** - Reusable task packs and workflows - βœ… **Event Hooks** - Customize behavior with shell commands - βœ… **Checkpoint System** - Save and resume long-running tasks - βœ… **Context Management** - Efficient token usage with smart context ### GitHub Copilot - βœ… **IDE Integration** - Deep integration with VS Code, JetBrains, Vim - βœ… **CLI Assistant** - Command-line helper with `gh copilot` - βœ… **Copilot Chat** - Conversational coding assistance - βœ… **Workspace Context** - Project-aware suggestions - βœ… **Code Completion** - Real-time code suggestions ### Gemini CLI - βœ… **Google AI Integration** - Access to Gemini models - βœ… **Command Line Interface** - Terminal-based interaction - βœ… **Multimodal Support** - Text, images, and more - βœ… **Context Windows** - Large context support --- ## Use Cases ### Choose the Right Tool **Use Claude Code when:** - Building complex multi-agent systems - Need MCP server ecosystem (databases, APIs, tools) - Orchestrating long-running content generation - Require checkpoint/resume functionality - Building custom Claude Skills **Use GitHub Copilot when:** - Writing code in your IDE - Need real-time code completion - Working with GitHub workflows - Quick command-line assistance - Pair programming scenarios **Use Gemini CLI when:** - Need multimodal AI capabilities - Working with Google ecosystem - Terminal-based workflows - Large context requirements --- ## Getting Started Guides ### For Beginners 1. **[Start Here](guides/getting-started.md)** - Choose the right tool 2. **[Basic Setup](guides/basic-setup.md)** - Install and configure 3. **[First Steps](guides/first-steps.md)** - Your first AI-assisted task ### For Advanced Users 1. **[Multi-Agent Systems](guides/agents-subagents/architecture.md)** - Build complex orchestration 2. **[MCP Server Development](guides/mcp-servers/building.md)** - Create custom servers 3. **[Custom Skills](guides/skills/creating.md)** - Build reusable task packs 4. **[Performance Optimization](best-practices/performance.md)** - Maximize efficiency --- ## Examples & Case Studies ### Real-World Applications **[AI Infrastructure Curriculum Generator](examples/content-generation/)** - 8-phase multi-agent workflow - Checkpoint-based progress tracking - 50+ MCP servers integrated - Generated 200,000+ words of content **[DevOps Automation System](examples/devops-automation/)** - Infrastructure as Code generation - Kubernetes resource management - CI/CD pipeline orchestration - Multi-cloud deployments **[Code Review Automation](examples/code-review/)** - Automated code analysis - Security vulnerability scanning - Best practices enforcement - Documentation generation --- ## Best Practices ### Prompting - βœ… Be specific and detailed - βœ… Provide context and examples - βœ… Break complex tasks into steps - βœ… Iterate and refine prompts ### Context Management - βœ… Use `permissions.deny` rules (Claude Code) and ignore files (`.cursorignore`, `.geminiignore`) to exclude irrelevant files - βœ… Reference specific files and line numbers - βœ… Provide focused code snippets - βœ… Use MCP servers for external data ### Multi-Agent Systems - βœ… Define clear agent responsibilities - βœ… Use message protocols for communication - βœ… Implement state persistence - βœ… Design for failure recovery ### Security - βœ… Never commit API keys or secrets - βœ… Use environment variables - βœ… Review generated code before execution - βœ… Validate AI outputs --- ## Contributing We welcome contributions! See our [Contributing Guide](CONTRIBUTING.md) for details. ### How to Contribute 1. **Add Guide Content** - Expand existing guides or create new ones 2. **Share Examples** - Submit real-world use cases 3. **Create Templates** - Build reusable templates 4. **Document MCP Servers** - Add to the catalog 5. **Share Skills** - Contribute Claude Skills --- ## Resources ### Official Documentation - **[Claude Code Docs](https://docs.claude.com/claude-code)** - Official Claude Code documentation - **[GitHub Copilot Docs](https://docs.github.com/copilot)** - Official Copilot documentation - **[Gemini API Docs](https://ai.google.dev/docs)** - Google Gemini documentation - **[MCP Specification](https://spec.modelcontextprotocol.io/)** - Model Context Protocol spec ### Community Resources - **[Awesome MCP Servers](https://github.com/wong2/awesome-mcp-servers)** - Curated MCP server list - **[MCP Directory](https://mcpservers.org/)** - Searchable MCP server directory - **[Claude Code Community](https://github.com/anthropics/claude-code/discussions)** - Community discussions ### Related Projects - **[AI Infrastructure Content Generator](https://github.com/ai-infra-curriculum/ai-infra-content-generator)** - Curriculum generation framework - **[MCP Servers Repository](https://github.com/modelcontextprotocol/servers)** - Official MCP servers - **[Veriswarm](https://veriswarm.ai)** - Trust infrastructure for AI agents (real-time trust scoring, PII/prompt-injection guardrails, portable agent credentials, hash-chained audit ledger). Cross-framework β€” works with LangChain, CrewAI, AutoGen, Agentforce, Microsoft Agent 365, AWS Bedrock. See [Agent Governance & Trust](best-practices/agent-governance.md) for where this fits. --- ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. --- ## Contact - **GitHub**: https://github.com/ai-infra-curriculum/ai-agent-guidebook - **Issues**: https://github.com/ai-infra-curriculum/ai-agent-guidebook/issues - **Discussions**: https://github.com/ai-infra-curriculum/ai-agent-guidebook/discussions --- ## Changelog See [CHANGELOG.md](CHANGELOG.md) for version history and release notes. --- **Version**: 1.2.0 **Last Updated**: 2026-06-11 **Status**: πŸš€ Active Development β€” covering the current Claude models (Fable 5, Opus 4.8, Sonnet 4.6, Haiku 4.5), the standalone GitHub Copilot CLI + coding agent, Gemini CLI (Gemini 3.x), and MCP spec revision 2025-11-25. --- Maintained by [VeriSwarm.ai](https://veriswarm.ai)