/synapse-a2a:api-designfrom synapse-a2a
Guides API design for REST, GraphQL, gRPC, and CLI interfaces with naming conventions, versioning, pagination, and error format best practices.
Ships in synapse-a2a. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Design consistent, well-documented APIs across REST, GraphQL, gRPC, and CLI interfaces.
/users, /tasks/user-settings/users/{id}/tasks/tasks/{id}/approve| Method | Purpose | Idempotent |
|---|---|---|
| GET | Read | Yes |
| POST | Create / action | No |
| PUT | Full replace | Yes |
| PATCH | Partial update | Yes |
| DELETE | Remove | Yes |
{
"data": { ... },
"meta": { "page": 1, "total": 42 }
}
Error format:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Human-readable description",
"details": [
{ "field": "email", "reason": "required" }
]
}
}
| Code | Use |
|---|---|
| 200 | Success (with body) |
| 201 | Created |
| 204 | Success (no body) |
| 400 | Client error (validation) |
| 401 | Not authenticated |
| 403 | Not authorized |
| 404 | Not found |
| 409 | Conflict (duplicate, state mismatch) |
| 422 | Unprocessable (semantically invalid) |
| 500 | Server error |
Use cursor-based for large datasets, offset-based for simple cases:
GET /tasks?cursor=abc123&limit=20
GET /tasks?page=2&per_page=20
/v1/tasks, /v2/tasks<tool> <noun> <verb> [args] [--flags]
Example: synapse send gemini "Review code" --wait
--output, --verbose-o, -v--force, --no-color--attach file1 --attach file2--wait | --notify | --silent--json: machine-readable JSON--quiet / -q: minimal outputList the entities and actions the API must support.
Apply naming conventions to produce the API surface.
Specify required and optional fields, types, and validation rules.
For each endpoint, list possible error responses and their meaning.
Cross-check naming, error format, and pagination across all endpoints.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
api-design, rest-api, graphql, grpc, openapi, api-conventions
npx claudepluginhub s-hiraoku/synapse-a2a --plugin synapse-a2a24 skills in this plugin
/anthropic-skill-creatorDesign, review, and improve Claude/Codex skills based on Anthropic's "The Complete Guide to Building Skills for Claude". Use when creating a new skill, rewriting SKILL.md frontmatter and workflows, fixing under-triggering or over-triggering, designing scripts/references/assets, building test cases, or preparing a skill for upload/distribution./code-reviewPerform structured code reviews focusing on correctness, readability, security, and maintainability. Use this skill when reviewing pull requests, evaluating code changes, or establishing review standards for a team./code-simplifierSimplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise. This skill should be used when code-quality checks pass but the code would benefit from structural cleanup — deduplication, branching simplification, naming improvements, or dead-code removal. Invoked as a subagent from /code-quality or directly via the Task tool.Other plugins' skills for the same job