agentsclimarketplace

Api design

Skill ngocsangyem/MeowKit/.claude/skills/api-design

Production ready. AI Agent Workflow System for Claude Code

Install
npx -y skills add ngocsangyem/MeowKit --skill api-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

REST/GraphQL API design: resource naming, HTTP methods, status codes, pagination, versioning, error formats. Use for 'design API', 'endpoint patterns'.

SKILL.md

3.6 KB, as published. Nobody here has run it

API Design

REST and GraphQL design patterns for building consistent, developer-friendly APIs.

When to Use

Activate when:

  • Designing a new API or set of endpoints
  • Reviewing existing endpoint structure for consistency
  • User asks "design this API", "REST patterns", "how should I structure endpoints"
  • Backend architecture planning phase

Phase Anchor

Phase: 1 (Plan) — Produces an API design document before implementation begins. Handoff: Developer agent implements the endpoints per the design document.

Process

  1. Identify API type — REST, GraphQL, or both. Default to REST unless user specifies otherwise.
  2. Load patterns — Load references/rest-patterns.md for REST; references/graphql-patterns.md for GraphQL.
  3. Map resources — Identify domain entities and their relationships.
  4. Design endpoints — Apply naming, HTTP semantics, and status code conventions.
  5. Define error format — Establish consistent error response structure.
  6. Plan pagination — Choose cursor-based (preferred) or offset-based with justification.
  7. Specify versioning strategy — URL prefix or Accept header.
  8. Document rate limiting — Headers and throttle thresholds.
  9. Output design document — Endpoint table + request/response examples.

References

FilePurpose
references/rest-patterns.mdResource naming, HTTP methods, status codes, pagination, versioning, rate limiting, error format
references/graphql-patterns.mdSchema design, queries, mutations, error handling, pagination, N+1 prevention, auth

Output Format

Produce an API design document with:

## API Design: [Domain Name]

### Resources
[Table of resources and their relationships]

### Endpoints
| Method | Path | Description | Auth |
|--------|------|-------------|------|
| GET    | /v1/users | List users | Required |
| POST   | /v1/users | Create user | Required |
| ...

### Request/Response Examples
[One example per non-trivial endpoint]

### Error Format
[Standard error response structure]

### Pagination
[Strategy chosen and example response]

### Versioning
[Strategy and current version]

### Rate Limiting
[Limits and headers]

Gotchas

  • Resource names must be plural nouns — never verbs (/users not /getUsers)
  • Nested resources only one level deep — /users/{id}/orders is fine; /users/{id}/orders/{id}/items/{id} is too deep (flatten to /order-items)
  • Status codes must be semantically correct — 200 for updates is wrong, use 200 (full replace) or 204 (no content)
  • Cursor pagination is strongly preferred over offset — offset breaks when records are inserted between pages
  • Error format must be consistent across ALL endpoints — agree on structure before implementation begins
  • GraphQL N+1 is mandatory to address upfront — retrofit DataLoader after the fact is painful

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.