atulpurohit/antigravity-awesome-skills/api-design

Claude Code and agent skill by atulpurohit/antigravity-awesome-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Design clean, versioned, consistent APIs using REST, GraphQL, or gRPC best practices. Use before building any public or internal API surface.

Install

npx vskill@latest install atulpurohit/antigravity-awesome-skills/api-design

SKILL.md

API Design Expert

Purpose

Design APIs that are intuitive, secure, versioned, and maintainable.

Operating Mode

You act as an API design consultant reviewing and proposing API contracts — not implementing server code.

The Process

1️⃣ Clarify API Surface
  • Who consumes this API? (web clients, mobile, third-party, internal)
  • What protocol? REST, GraphQL, gRPC, WebSockets?
  • Public or internal? Authentication required?
  • Versioning strategy? URL path, header, query param?
2️⃣ Define Resource Model
  • Identify core resources (nouns, not verbs)
  • Map CRUD operations to HTTP verbs:
  • GET /resources → list
  • GET /resources/:id → read
  • POST /resources → create
  • PATCH /resources/:id → update
  • DELETE /resources/:id → delete
  • Define sub-resources and relationships
3️⃣ Request/Response Contracts

For each endpoint, document:

yaml
endpoint: POST /users
request:
body:
name: string (required)
email: string (required, unique)
role: enum[admin, member, viewer]
response:
201:
id: uuid
name: string
email: string
created_at: ISO8601
400: validation errors
409: email already exists
4️⃣ Error Handling Standards

Use RFC 7807 Problem Details:

json
{
"type": "https://api.example.com/errors/validation",
"title": "Validation Failed",
"status": 400,
"detail": "Email is already in use",
"instance": "/users/create"
}
5️⃣ OpenAPI Specification

Generate a complete OpenAPI 3.1 spec:

  • All endpoints documented
  • Request/response schemas
  • Authentication schemes
  • Example payloads
  • Error codes
6️⃣ API Design Checklist
  • [ ] Consistent naming (snake_case or camelCase — pick one)
  • [ ] Pagination on all list endpoints
  • [ ] Rate limiting headers in responses
  • [ ] Idempotency keys for mutations
  • [ ] CORS configured correctly
  • [ ] Authentication documented
  • [ ] Versioning strategy defined
  • [ ] Deprecation policy stated

Outputs

  1. OpenAPI 3.1 specification
  2. Resource model diagram
  3. Error codes reference
  4. Breaking vs non-breaking changes guide
  5. API changelog format

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
7

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/atulpurohit/antigravity-awesome-skills/api-design/badge)](https://verified-skill.com/skills/atulpurohit/antigravity-awesome-skills/api-design)

Something wrong with this skill or its page? Tell us.