designing-apis
Guides REST and GraphQL API design, endpoint patterns, request/response schemas, versioning, and API best practices. Use when building APIs, designing endpoints, or reviewing API contracts.
npx skills add majiayu000/claude-skill-registry --skill designing-apis-cloudai-x-opencode-workflow --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Designing APIs Principles and patterns for designing clean, consistent, and maintainable APIs. ## When to Use This Skill - Designing new API endpoints - Reviewing API contracts - Planning API versioning strategies - Defining request/response schemas - Building GraphQL schemas - Documenting APIs --- ## REST API Design Principles ### Resource-Oriented Design APIs should be organized around **resources**, not actions: ``` GOOD (Resource-oriented): GET /users → List users GET /users/123 → Get user 123 POST /users → Create user PUT /users/123 → Update user 123 DELETE /users/123 → Delete user 123 BAD (Action-oriented): POST /getUsers POST /createUser POST /updateUser POST /deleteUser ``` ### HTTP Method Semantics | Method | Purpose | Idempotent | Safe | Request Body | |--------|---------|------------|------|--------------| | GET | Retrieve resource(s) | Yes | Yes | No | | POST | Create resource | No | No | Yes | | PUT | Replace resource | Yes | No | Yes | | PATCH | Partial update | Yes | No | Yes | | DELETE | Remove resource | Yes | No | Optional | ### URL Structure Patterns ``` Collection: /users Item: /users/{id} Nested: /users/{id}/posts Action: /users/{id}/activate (POST only, for
- When to Use This Skill
- REST API Design Principles
- Resource-Oriented Design
- HTTP Method Semantics
- URL Structure Patterns
- Request Design
- Path Parameters vs Query Parameters
- Request Body Patterns
- Response Design
- Consistent Response Envelope
- HTTP Status Code Guidelines
- Status Code Decision Tree
- API Versioning Strategies
- URL Path Versioning (Recommended)
What does the designing-apis skill do?
Guides REST and GraphQL API design, endpoint patterns, request/response schemas, versioning, and API best practices. Use when building APIs, designing endpoints, or reviewing API contracts.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill designing-apis-cloudai-x-opencode-workflow --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
