forest6511/claude-code-cookbook/api-design
Claude Code and agent skill by forest6511/claude-code-cookbook
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Design a REST API and generate an OpenAPI 3.1 spec. Use for new APIs or documenting existing endpoints.
Install
npx vskill@latest install forest6511/claude-code-cookbook/api-designSKILL.md
The same SKILL.md was published earlier as forest6511/claude-code-cookbook/api-design.
API Design & OpenAPI Generation
Target
$ARGUMENTS
Phase 1: Resource Design
Define the resource:
- Resource name (plural English noun)
- Attributes (type, required/optional, validation)
- Relationships to other resources
Endpoint Template
| Method | Path | Description | Response | |
|---|---|---|---|---|
| GET | /resources | List | 200: array | |
| GET | /resources/:id | Detail | 200/404 | |
| POST | /resources | Create | 201/400 | |
| PUT | /resources/:id | Update | 200/404 | |
| DELETE | /resources/:id | Delete | 204/404 |
Design Principles
- RESTful (resource-oriented, stateless)
- Consistent naming (kebab-case paths, camelCase fields)
- Standard HTTP status codes
- Pagination, filtering, and sorting patterns
Phase 2: OpenAPI 3.1 Spec Generation
Generate a YAML file with:
- info (title, version, description)
- paths (all endpoints)
- components/schemas (request/response schemas)
- components/responses (standard error format)
Standard Error Format
{ "error": { "code": "RESOURCE_NOT_FOUND", "message": "The requested resource was not found" } }
Phase 3: Output
- Save the OpenAPI 3.1 spec as YAML
- Display a summary of design decisions
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingch08/recipe-45/.claude/skills/api-design/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/forest6511/claude-code-cookbook/api-design)