# agent-protocol

agent-protocol — a skill for Claude Code designs tool schemas and communication layers between AI agents. It targets setups using MCP, Google A2A, or OpenAI Function Calling.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 104 installs · ★ 1183 repo stars
- Author: borghei
- License: LicenseRef-MIT-Commons-Clause · policy=link-only · description only; the file stays with the author
- Source: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/agent-protocol/SKILL.md
- Updated: 2026-11-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/borghei-agent-protocol

## What it does

The skill guides interface definitions for LLM tools, crafts descriptive parameter schemas, and maps transport options like stdio, SSE, or WebSocket.

The repository includes three Python utilities: `schema_generator.py` for turning signatures into JSON, `protocol_validator.py` for schema verification, and `capability_mapper.py` for conflict detection across integrations. Running these verification steps locally requires a working Python interpreter.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill agent-protocol -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/agent-protocol/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/agent-protocol/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill agent-protocol -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/agent-protocol/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill agent-protocol -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/agent-protocol/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install borghei/Claude-Skills engineering/agent-protocol/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/agent-protocol/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill agent-protocol -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/agent-protocol
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agent-protocol/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill agent-protocol -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/agent-protocol/SKILL.md

## When to use it
- design JSON schemas for MCP servers and OpenAI function calling
- set up agent-to-agent communication through Google A2A
- validate tool descriptions and parameters against strict schema rules
- detect duplicate tools across different protocol definitions

## Example prompts
- Generate an MCP tool schema for an internal documentation search query
- Validate this tool schema JSON using scripts/protocol_validator.py in strict mode
- Compare Google A2A and MCP transports for connecting two external services

## Similar
- [tools](https://affpapa.org/en/nevibecode/skills/launchdarkly-tools.md) — skill · 1900 installs
- [tool-function-schema-designer](https://affpapa.org/en/nevibecode/skills/tool-function-schema-designer.md) — skill · 258 installs
- [NEXUS Protocol](https://affpapa.org/en/nevibecode/mcp/nexus-protocol.md) — MCP server · 508 installs
- [structured-output-extractor](https://affpapa.org/en/nevibecode/skills/structured-output-extractor.md) — skill · 323 installs
- [qianwen-text](https://affpapa.org/en/nevibecode/skills/qianwen-text.md) — skill · 6200 installs
- [openai-api-development](https://affpapa.org/en/nevibecode/skills/openai-api-development.md) — skill · 906 installs

## Other versions with the same name
- [agent-protocol · alirezarezvani](https://affpapa.org/en/nevibecode/skills/agent-protocol.md) — 611 installs

From the same set: [borghei/claude-skills](https://affpapa.org/en/nevibecode/by/borghei/claude-skills.md) — 120 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
