agent-protocol
БесплатноЗапускает вложенные скриптыНе проверенDesign AI agent communication protocols: MCP tool schemas, A2A, function calling, and inter- agent messaging. Use when building multi-agent systems, defining…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Agent Protocol
The agent designs tool schemas for MCP, Google A2A, and OpenAI Function Calling protocols. It implements transport selection, capability discovery, authentication flows (OAuth 2.1, API keys), structured error handling, rate limiting, and protocol bridges for heterogeneous agent ecosystems.
Core Capabilities
- Protocol selection & comparison — MCP (tool/resource/prompt serving), Google A2A (agent cards, task lifecycle, streaming), OpenAI Function Calling (JSON Schema, parallel calls, strict mode), LangChain/LangGraph tools, and custom WebSocket/gRPC messaging
- Tool schema design — JSON Schema input/output validation, semantic naming conventions, description engineering for LLM comprehension, required vs optional parameters, enum and default strategies
- Transport & discovery — stdio/SSE/WebSocket for MCP, HTTP+JSON-RPC for A2A, agent card capability advertisement, health checking, and protocol version negotiation
- Security & authentication — OAuth 2.1 flows, API key rotation and scoping, request signing, per-identity rate limiting, and audit logging for inter-agent calls
When to Use
- Designing tool interfaces for LLM-powered agents
- Building MCP servers that expose APIs to Claude, Cursor, or other clients
- Implementing agent-to-agent communication in multi-agent systems
- Bridging between different agent protocols (MCP to A2A, etc.)
- Standardizing tool calling patterns across a team or organization
- Debugging agent tool selection failures
Clarify First
Before designing the protocol, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- Protocol target: MCP, A2A, OpenAI Function Calling, or LangChain Tools (drives the entire schema and transport design via the Decision Framework below).
- Transport & client: which client consumes it (stdio/SSE/WebSocket for MCP, HTTP+JSON-RPC for A2A).
- Auth & trust boundary: in-process vs cross-organization (determines OAuth 2.1 vs API key vs none, plus rate limiting and signing).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Decision Framework
What are you building?
│
├─ Tools for a single LLM client (Claude, Cursor, Copilot)
│ └─ Use MCP — it's the native protocol for tool serving
│
├─ Agent-to-agent communication across organizations
│ └─ Use A2A — designed for cross-boundary agent discovery and delegation
│
├─ Tools for OpenAI models specifically
│ └─ Use OpenAI Function Calling — tightest integration
│
├─ Python pipeline with multiple chained tools
│ └─ Use LangChain Tools — simplest for in-process orchestration
│
└─ Heterogeneous agent ecosystem (multiple protocols)
└─ Use Protocol Bridge pattern — translate between protocols at boundaries
Quick Start Workflow
# 1. Generate a schema from flags (or --from-python FILE --function NAME, or --from-config FILE)
python scripts/schema_generator.py --name search_docs \
--desc "Search internal docs by keyword and return the top matches" \
--param "query:string:required:Search terms" --param "limit:integer:optional:Max results" \
--protocol openai --strict --output /tmp/search_docs.json
# 2. Validate it (auto-detects MCP, A2A agent card, OpenAI single tool / tools list / functions list)
python scripts/protocol_validator.py assets/sample_mcp_tool.json assets/sample_openai_tool.json --strict # PASS, exit 0
python scripts/protocol_validator.py assets/sample_mcp_tool_flawed.json --strict # 2 errors, exit 1
# 3. Map capabilities across files: inventory, duplicate names, compatibility matrix, quality gaps
python scripts/capability_mapper.py assets/sample_mcp_tool.json assets/sample_openai_tool.json
Tools Overview
| Tool | Purpose | Key flags |
|---|---|---|
schema_generator.py |
MCP tool, OpenAI tool ({"type": "function", ...}) or A2A agent card from flags, a Python signature or a config file |
--param name:type[:required|optional][:desc], --protocol, --strict (OpenAI strict mode: all params required, no extra properties), --output |
protocol_validator.py |
Naming, description quality, types, required-vs-properties consistency, strict-mode rules | --protocol auto|mcp|a2a|openai, --strict, --json |
capability_mapper.py |
Inventory and duplicate detection across protocols; reads everything the generator writes | --detect-conflicts, --compatibility-matrix, --gap-analysis, --scan-dir, --json |
Exit codes. protocol_validator.py: 0 no errors, 1 validation errors, 2 missing file or
invalid JSON. capability_mapper.py: 0 clean, 1 an unreadable protocol file or a likely
duplicate tool (same name and description in two places, as in step 3), 2 missing file or
directory. `sch
Установить agent-protocol в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-protocol?
Design AI agent communication protocols: MCP tool schemas, A2A, function calling, and inter- agent messaging. Use when building multi-agent systems, defining tool interfaces, or implementing agent-to-agent communication.
Как установить скилл agent-protocol?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-protocol запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic