Automated summary
This skill supports designing and reviewing RESTful APIs by applying best practices: resource naming, HTTP methods, pagination, standardized errors, versioning, and HATEOAS.
Strengths
- Provides concrete conventions and resource-naming examples (plural nouns, no verbs in URLs)
- Offers ready-to-use patterns for paginated responses and structured error payloads
- Maps HTTP methods to expected status codes for each operation
- Covers versioning, HATEOAS, and OpenAPI documentation as part of its scope
Limitations
- Does not address authentication, authorization, or rate limiting
- Stays REST-focused: no guidance for GraphQL, gRPC, or websockets
- Ships no tooling for automated validation or contract testing of APIs
Use it when designing a new REST API, reviewing an existing one, or standardizing pagination, errors, and versioning.
Avoid it if your project relies on GraphQL, gRPC, or non-RESTful RPC, or if you need security and authentication guidance.
Security analysis
SafeThe skill is a documentation/guidance file about REST API conventions. It contains no executable payloads, no curl|sh, no file deletion, and no instruction to transmit secrets. The only minor concern is that its allowed-tools list grants Bash/Write/Edit beyond what the advisory text requires, which is a least-privilege nit rather than a real risk.
- •Declares Bash, Write, and Edit in allowed-tools even though the skill body is purely documentation and needs no execution capability.
- •No credential handling, network calls, or destructive commands are described in the skill content.
Examples
Design a REST API for a blog with users, posts and comments. Give me the resource URLs, HTTP methods, status codes and a paginated response shape.Our API returns inconsistent error payloads. Propose a single error response schema with codes and field-level validation details, and show how each endpoint should use it.Review these endpoints and tell me what violates REST conventions: GET /api/getUsers, POST /api/createUser, GET /api/users/123/getPosts. Suggest fixes with proper HTTP methods and status codes.name: rest-api-design description: RESTful API design principles, versioning, pagination, HATEOAS, and documentation. allowed-tools: Read, Write, Edit, Bash, Glob, Grep
REST API Design Skill
Expert assistance for designing RESTful APIs following best practices.
Capabilities
- Design resource-oriented APIs
- Implement proper HTTP methods and status codes
- Configure API versioning strategies
- Implement pagination patterns
- Design error responses
- Apply HATEOAS principles
Usage
Invoke this skill when you need to:
- Design new REST APIs
- Review existing API design
- Implement pagination
- Define error handling
- Version APIs
Design Principles
Resource Naming
# Good - nouns, plural
GET /api/users
GET /api/users/123
GET /api/users/123/posts
# Bad - verbs, actions in URL
GET /api/getUsers
GET /api/users/123/getPosts
POST /api/createUser
HTTP Methods
| Method | Usage | Response | |--------|-------|----------| | GET | Read resource | 200 OK | | POST | Create resource | 201 Created | | PUT | Replace resource | 200 OK | | PATCH | Partial update | 200 OK | | DELETE | Remove resource | 204 No Content |
Pagination Response
{
"data": [...],
"meta": {
"page": 1,
"limit": 10,
"total": 100,
"totalPages": 10
},
"links": {
"self": "/api/users?page=1",
"next": "/api/users?page=2",
"prev": null
}
}
Error Response
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"details": [
{ "field": "email", "message": "Invalid email format" }
]
}
}
Best Practices
- Use proper HTTP status codes
- Implement consistent error responses
- Version APIs from the start
- Document with OpenAPI
Target Processes
- api-design
- backend-development
- microservices-architecture
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/rest-api-design-mm8o529d/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/rest-api-design-mm8o529d' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/rest-api-design-mm8o529d/download' --output '.skill-downloads/rest-api-design-mm8o529d/SKILL.md.part' && mv '.skill-downloads/rest-api-design-mm8o529d/SKILL.md.part' '.skill-downloads/rest-api-design-mm8o529d/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Write, Edit, Bash, Glob, Grep
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/rest-api-design-mm8o529d/SKILL.md' && test -s '.skill-downloads/rest-api-design-mm8o529d/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/rest-api-design' && cp -R '.skill-downloads/rest-api-design-mm8o529d' '.claude/skills/rest-api-design'Cursor
test -f '.skill-downloads/rest-api-design-mm8o529d/SKILL.md' && test -s '.skill-downloads/rest-api-design-mm8o529d/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/rest-api-design' && cp -R '.skill-downloads/rest-api-design-mm8o529d' '.cursor/skills/rest-api-design'Codex
test -f '.skill-downloads/rest-api-design-mm8o529d/SKILL.md' && test -s '.skill-downloads/rest-api-design-mm8o529d/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/rest-api-design' && cp -R '.skill-downloads/rest-api-design-mm8o529d' '.agents/skills/rest-api-design'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/rest-api-design-mm8o529d'openskills read 'rest-api-design-mm8o529d'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/rest-api-design-mm8o529d/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.