Agent skill · Backend & API

design-api

Design API contracts before implementation — endpoints, models, status codes (Daniel Okoye's workflow)

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill design-api-g-zenr-relay-api --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Path: skills/api/design-api-g-zenr-relay-api/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

Design the API contract for: $ARGUMENTS Design BEFORE implementing. This produces a specification that /add-endpoint or /add-feature will implement. ## Step 1 — Requirements - What problem does this API solve? - Who are the consumers? (frontend, mobile, external integrators, automation) - What data flows in and out? - What error conditions exist? ## Step 2 — Endpoint Design For each endpoint, define: ```markdown ### `METHOD /api/<version>/<path>` **Summary:** <one-line description> **Auth:** Required / Public **Request Body:** ```json { "field": "type — description (constraints)" } ``` **Response 200:** ```json { "field": "type — description" } ``` **Error Responses:** | Status | Condition | Response | |--------|-----------|----------| | 401 | Missing/invalid API key | Uniform auth error message | | 404 | Resource not found | Error response model | | 422 | Validation error | Pydantic validation error | | 503 | External resource unavailable | Error response model | ``` ## Step 3 — Pydantic Models Define request/response schemas: ```python class FeatureRequest(BaseModel): field: type = Field(..., description="...", ge=0) class FeatureResponse(BaseModel): field: type ``` - Explicit ty

What's inside
Steps it walks through
  1. Step 1 — Requirements
  2. Step 2 — Endpoint Design
  3. Step 3 — Pydantic Models
  4. Step 4 — Route Organization
  5. Step 5 — Auth & Security
  6. Step 6 — Backwards Compatibility
  7. Output
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the design-api skill do?

Design API contracts before implementation — endpoints, models, status codes (Daniel Okoye's workflow)

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill design-api-g-zenr-relay-api --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.

Keep going