/code:api-designfrom code
Guides designing, reviewing, or planning REST and GraphQL APIs — endpoint structure, schema design, versioning, error handling, pagination, URI naming, and OpenAPI spec creation.
Ships in code. 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.
Read when SKILL.md points to them.
When NOT to use:
api-design.
Skip the notice when the user asked for the skill by name or slash command; spelling and spacing need not match.
A phrase from this skill's own trigger list is not a name — naming the work is not naming the skill.These apply regardless of REST or GraphQL:
Use the references below as scoped guidance. Some references describe broad consensus, while others document strong defaults or ecosystem-specific patterns.
| Design Task | Reference | When to Load |
|---|---|---|
| REST vs GraphQL decision | rest-vs-graphql.md | Starting a new API or evaluating a paradigm shift |
| REST endpoint design | rest-design.md | Designing REST resources, methods, status codes |
| GraphQL schema/query/mutation design | graphql-design.md | Designing GraphQL types, queries, mutations, subscriptions |
| URI/URL naming | uri-design.md | Naming endpoints, path segments, query parameters |
| API versioning | versioning.md | Planning version strategy, deprecation, migration |
| Error responses | error-handling.md | Designing error formats, status code usage, RFC 9457 |
| Pagination and filtering | pagination-filtering.md | Lists, collections, search results, sorting |
| FastAPI implementation | fastapi-practices.md | Building APIs with FastAPI specifically |
How to use this table: Load only the references relevant to the current task.
For a new API design, start with rest-vs-graphql.md, then load the paradigm-specific reference.
For targeted questions (e.g., "how should we version this?"), load only that reference.
For the full decision tree and tradeoff matrix, load rest-vs-graphql.md.
| Mistake | Fix |
|---|---|
Verbs in REST URIs (/getUsers, /createOrder) | Use nouns + HTTP methods for CRUD; verbs only for controller resources (POST /orders/{id}/cancel) |
| Exposing database IDs/structure in API | Abstract with slugs, UUIDs, and domain-oriented shapes; use a mapping layer, not auto-serialization |
| Inconsistent error formats across endpoints | Define one error schema, use it everywhere |
| No pagination on collection endpoints | Paginate unbounded or growth-prone collections; small bounded reference data may not need it — always set default and max page sizes when pagination is used |
| Breaking changes without versioning | Use additive changes; version when breaking is unavoidable |
Generic GraphQL mutations (updateEntity) | Use specific semantic mutations (publishPost, archiveOrder) |
| Auth logic in resolvers/handlers instead of business layer | Delegate authorization to domain services |
| Nullable everything / non-null everything | Be intentional: non-null only when you can guarantee presence |
references/error-handling.md (opens in a new tab)references/fastapi-practices.md (opens in a new tab)references/graphql-design.md (opens in a new tab)references/pagination-filtering.md (opens in a new tab)references/rest-design.md (opens in a new tab)references/rest-vs-graphql.md (opens in a new tab)references/uri-design.md (opens in a new tab)references/versioning.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ahgraber/skills --plugin code10 skills in this plugin
/changelogUse when writing, updating, or generating a CHANGELOG.md — for a new release, an unreleased section update, or drafting from git history or diff. Triggers: "update the changelog", "write release notes", "what changed since X", "generate changelog for v1.2.0", "add this to the changelog", "draft unreleased section". Not for commit messages (use commit-message skill) or internal deployment runbooks./code-reviewUse when reviewing code changes before committing or merging — staged diffs, branch diffs, or PR readiness checks. Triggers: 'review my code', 'check these changes', 'review this branch', 'give feedback on my diff', 'is this PR ready?'. Not for implementing features, running test suites, formatting-only passes, or building understanding of a change (use teach-me)./