Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Production-grade AI agent patterns with MCP integration, agentic RAG, handoff orchestration, multi-layer guardrails, and observability (modern best practices)
.claude/skills/majiayu000-ai-agents/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 166% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 93% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 55% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 156% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 185% | 0% |
Modern Best Practices (December 2025): deterministic control flow, bounded tools, auditable state, MCP-based tool integration, handoff-first orchestration, multi-layer guardrails, OpenTelemetry tracing, and human-in-the-loop controls (OWASP LLM Top 10: https://owasp.org/www-project-top-10-for-large-language-model-applications/).
This skill provides production-ready operational patterns for designing, building, evaluating, and deploying AI agents. It centralizes procedures, checklists, decision rules, and templates used across RAG agents, tool-using agents, OS agents, and multi-agent systems.
No theory. No narrative. Only what Claude can execute.
Claude should activate this skill whenever the user asks for:
/resources/ or /templates/.| Agent Type | Core Control Flow | Interfaces | MCP/A2A | When to Use | |------------|-----------|------------|---------|-------------| | Workflow Agent (FSM/DAG) | Explicit state transitions | State store, tool allowlist | MCP | Deterministic, auditable flows | | Tool-Using Agent | Route → call tool → observe | Tool schemas, retries/timeouts | MCP | External actions (APIs, DB, files) | | RAG Agent | Retrieve → answer → cite | Retriever, citations, ACLs | MCP | Knowledge-grounded responses | | Planner/Executor | Plan → execute steps with caps | Planner prompts, step budget | MCP (+A2A) | Multi-step problems with bounded autonomy | | Multi-Agent (Orchestrated) | Delegate → merge → validate | Handoff contracts, eval gates | A2A | Specialization with explicit handoffs | | OS Agent | Observe UI → act → verify | Sandbox, UI grounding | MCP | Desktop/browser control under strict guardrails | | Code/SWE Agent | Branch → edit → test → PR | Repo access, CI gates | MCP | Coding tasks with review/merge controls |
textWhat does the agent need to do? ├─ Answer questions from knowledge base? │ ├─ Simple lookup? → RAG Agent (LangChain/LlamaIndex + vector DB) │ └─ Complex multi-step? → Agentic RAG (iterative retrieval + reasoning) │ ├─ Perform external actions (APIs, tools, functions)? │ ├─ 1-3 tools, linear flow? → Tool-Using Agent (LangGraph + MCP) │ └─ Complex workflows, branching? → Planning Agent (ReAct/Plan-Execute) │ ├─ Write/modify code autonomously? │ ├─ Single file edits? → Tool-Using Agent with code tools │ └─ Multi-file, issue resolution? → Code/SWE Agent (HyperAgent pattern) │ ├─ Delegate tasks to specialists? │ ├─ Fixed workflow? → Multi-Agent Sequential (A → B → C) │ ├─ Manager-Worker? → Multi-Agent Hierarchical (Manager + Workers) │ └─ Dynamic routing? → Multi-Agent Group Chat (collaborative) │ ├─ Control desktop/browser? │ └─ OS Agent (Anthropic Computer Use + MCP for system access) │ └─ Hybrid (combination of above)? └─ Planning Agent that coordinates: - Tool-using for actions (MCP) - RAG for knowledge (MCP) - Multi-agent for delegation (A2A) - Code agents for implementation
Protocol Selection:
Do
Avoid
resources/agent-maturity-governance.mdresources/modern-best-practices.mdresources/context-engineering.mdresources/operational-patterns.mdresources/mcp-practical-guide.mdBuilding MCP servers, tool integration, and standardized data access
resources/mcp-server-builder.mdEnd-to-end checklist for workflow-focused MCP servers (design → build → test)
resources/a2a-handoff-patterns.mdAgent-to-agent communication, task delegation, and coordination protocols
resources/protocol-decision-tree.mdWhen to use MCP vs A2A, decision framework, and selection criteria
resources/agent-operations-best-practices.mdAction loops, planning, observation, and execution patterns
resources/rag-patterns.mdContextual retrieval, agentic RAG, and hybrid search strategies
resources/memory-systems.mdSession, long-term, episodic, and task memory architectures
resources/tool-design-specs.mdTool schemas, validation, error handling, and MCP integration
resources/skill-lifecycle.mdScaffold, validate, package, and share Claude skills with teams (Slack-ready)
resources/api-contracts-for-agents.mdRequest/response envelopes, safety gates, streaming/async patterns, error taxonomy
resources/multi-agent-patterns.mdManager-worker, sequential, handoff, and group chat orchestration
resources/os-agent-capabilities.mdDesktop automation, UI grounding, and computer use patterns
resources/code-swe-agents.mdSE 3.0 paradigm, autonomous coding patterns, SWE-Bench, HyperAgent architecture
resources/evaluation-and-observability.mdOpenTelemetry GenAI, metrics, LLM-as-judge, and monitoring
resources/deployment-ci-cd-and-safety.mdMulti-layer guardrails, HITL controls, NIST AI RMF, production checklists
templates/checklists/agent-safety-checklist.mdGo/No-Go safety gate: permissions, HITL triggers, eval gates, observability, rollback
templates/core/agent-template-standard.mdFull production spec: memory, tools, RAG, evaluation, observability, safety
templates/core/agent-template-specialized.mdDomain-specific agents with custom capabilities and constraints
templates/core/agent-template-quick.mdMinimal viable agent for rapid prototyping
templates/rag/rag-basic.mdSimple retrieval-augmented generation pipeline
templates/rag/rag-advanced.mdContextual retrieval, reranking, and agentic RAG patterns
templates/rag/hybrid-retrieval.mdSemantic + keyword search with BM25 fusion
templates/tools/tool-definition.mdMCP-compatible tool schemas with validation and error handling
templates/tools/tool-validation-checklist.mdTesting, security, and production readiness checks
templates/multi-agent/manager-worker-template.mdOrchestration pattern with task delegation and result aggregation
templates/multi-agent/evaluator-router-template.mdDynamic routing with quality assessment and domain classification
../dev-api-design/templates/fastapi/fastapi-complete-api.mdAuth, pagination, validation, error handling; extend with model lifespan loads, SSE, background tasks
data/sources.jsonAuthoritative sources spanning standards, protocols, and production agent frameworks
CC-*) for citationThis skill integrates with complementary Claude Code skills:
../ai-llm/ - LLM patterns, prompt engineering, and model selection for agents../ai-rag/ - Deep RAG implementation: chunking, embedding, reranking../ai-prompt-engineering/ - System prompt design, few-shot patterns, reasoning strategies../qa-observability/ - OpenTelemetry, metrics, distributed tracing../software-security-appsec/ - OWASP Top 10, input validation, secure tool design../ops-devops-platform/ - CI/CD pipelines, deployment strategies, infrastructure../dev-api-design/ - REST/GraphQL design for agent APIs and tool interfaces../ai-mlops/ - Model deployment, monitoring, drift detection../qa-debugging/ - Agent debugging, error analysis, root cause investigationUsage pattern: Start here for agent architecture, then reference specialized skills for deep implementation details.
data/sources.json for authoritative documentation linksTraditional → Modern:
PLAN.md or use a planning tool; require code-path trace, dependency map, and risk/edge-case list before build starts.Other measured skills in the registry, with their headline benchmark lift.