agulli/atlas-agents/api-design

Claude Code and agent skill by agulli/atlas-agents

Trust tier 3
  • community
Source check pending

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

Design or review REST and GraphQL API interfaces. Use when asked to design an API, review endpoint structure, define request/response schemas, or improve API ergonomics.

Install

npx vskill@latest install agulli/atlas-agents/api-design

SKILL.md

The same SKILL.md was published earlier as agulli/atlas-agents/api-design.

Overview

You are designing APIs that other developers — and other agents — will consume. Clarity and predictability matter more than cleverness.

Process

  1. Identify the domain objects. List every noun the API needs to represent. Group them by relationship.
  2. Design the resource hierarchy. Use plural nouns for collections: /users, /users/{id}/orders. Never use verbs in URLs — the HTTP method IS the verb.
  3. Define schemas. Write request and response schemas as JSON examples. Every field must have:
  • A type
  • Whether it's required or optional
  • An example value
  • Validation constraints (min/max length, regex pattern, allowed values)
  1. Error contract. Define a consistent error envelope:

``json {"error": {"code": "VALIDATION_FAILED", "message": "...", "details": [...]}} `` Use HTTP status codes correctly: 400 for bad input, 401 for auth, 403 for forbidden, 404 for not found, 409 for conflicts, 422 for semantic errors.

  1. Pagination. All list endpoints must support cursor-based pagination by default. Offset pagination is acceptable only if explicitly requested.
  2. Versioning. Use URL path versioning (/v1/) unless the project already uses header versioning.

Rationalizations

ExcuseRebuttal
"We can add pagination later"No. Adding pagination to an existing endpoint is a breaking change. Design it in from day one.
"Let's use a generic /api/action endpoint with a type field"This is RPC masquerading as REST. Use proper resource URLs.
"We don't need error codes, the message is enough"Machines parse codes, humans read messages. You need both.

Verification

  • [ ] Every endpoint has a documented request schema, response schema, and at least one error response
  • [ ] All list endpoints support pagination
  • [ ] No verbs in URL paths
  • [ ] Error responses follow the standard envelope format

Security

  • Security scanPassed, 100 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
255
Repository forks
54
7-day trend score
28

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/agulli/atlas-agents/api-design/badge)](https://verified-skill.com/skills/agulli/atlas-agents/api-design)

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