api-design
Skill0 starsChanged 32 days agoMITView on GitHub
Design clean, consistent, production-ready REST APIs and service contracts. Use when designing new endpoints or microservices, defining request/response schemas, choosing HTTP methods and status codes, specifying pagination/filtering/error handling, deciding auth/idempotency/rate limiting/versioning, or producing OpenAPI documentation. Do NOT use for debugging a failing endpoint (backend-debugging), reviewing existing API code (backend-code-review), or internship task implementation (software-internship) - design the contract here first, then route implementation to the right skill.
190 other projects use a version of this.
Adopted by
Most recently taken up by
- Arupbiswas09/claude_skillstheir own version, first seen Nov 29, 2026
- KevinLoichot/everything-claude-codetheir own version, first seen Nov 29, 2026
- aayushsoam/clawbot-plustheir own version, first seen Nov 29, 2026
- multiplex-ai/muggle-ai-teamstheir own version, first seen Nov 29, 2026
- Cyvid7-Darus10/claude-code-configtheir own version, first seen Nov 29, 2026
- AtulPurohit/Antigravity-Awesome-Skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use db-design, everything-claude-code and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
yuexueyuSkilldb-design
数据库工程师技能 - Schema设计、索引优化、并发安全、数据库审计。当你涉及数据库表/字段/索引/SQL/迁移/MCP数据库操作、建表改表、写查询时必须使用此技能。即使用户只是说"加个字段"或"查下数据",也应触发。
Also in 4 projects that use this
InfopibeSkilleverything-claude-code
Also in 9 projects that use this
mryeastcodeSkilleverything-claude-code-conventions
Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.
Also in 8 projects that use this
thejordanleopoldSkillthird-party-integration
Use when integrating with external APIs, payment processors (Stripe), webhooks, or third-party services. Use when implementing API clients with authentication and rate limiting, handling webhooks with signature verification and idempotency, writing contract tests for external services, or isolating third-party dependencies behind adapters. Triggers: \"Stripe\", \"payment integration\", \"webhook\", \"third-party API\", \"external service\", \"API client\", \"integrate with\", \"signature verification\", \"idempotency key\".
Also in 3 projects that use this
Indium-AI-LabsSkilldata-pipeline-design
Design batch or incremental ETL and ELT pipelines and warehouse models: grain, partitioning, idempotent loads, late-arriving data, data quality tests, PII controls, and cost monitoring, before building them. Use when adding or changing a dbt model, warehouse table, scheduled transformation, or ingestion job. Not for transactional schema design (use the database-design skill) or event-sourced stores (use the event-sourcing-architecture skill).
Also in 3 projects that use this
InfopibeSkillinvestor-materials
Create and update pitch decks, one-pagers, investor memos, accelerator applications, financial models, and fundraising materials. Use when the user needs investor-facing documents, projections, use-of-funds tables, milestone plans, or materials that must stay internally consistent across multiple fundraising assets.
Also in 21 projects that use this
- +1 more from Infopibe
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 190
- affaan-m/ECC★ 246ksame name
- RostislavDugin/postgresus★ 9.4ksame name
- databasus/databasus★ 9.4ksame name
- authgear/authgear-server★ 2.2ksame name
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
- Aaronontheweb/dotnet-skills★ 1.3ksame name
- epam/ai-dial-chat★ 501same name
- loulanyue/awesome-claude-notes★ 272same name
- KbWen/agentic-os★ 245same name
- DevelopersGlobal/ai-agent-skills★ 220same name
180 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- applied-ai-deliverySkill
- backend-code-reviewSkill
- backend-debuggingSkill
- backend-deploymentSkill
- backend-jobSkill
- backend-testingSkill
- car-part-retrievalSkill
- continuous-improvementSkill
- data-engineeringSkill
- documentationSkill
- internship-communicationSkill
- interview-prepSkill
- learning-roadmapSkill
- observabilitySkill
- production-deliverySkill
- skill-health-checkSkill
- software-internshipSkill
- thesis-helperSkill
- workflow-adapterSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 161 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Read the my-skill plugin's docs/workflow-profile.md.
- Distinctive: line 39
Write OpenAPI YAML when requested or when the consumer needs generated clients/docs.
- Distinctive: line 66
Use consistent naming (plural nouns, kebab-case paths, camelCase JSON fields unless an existing convention differs) and conventional HTTP …
- Distinctive: line 67
Never leak internal database details (IDs' internal meaning, SQL errors, table/column names, stack traces) in responses.
- Distinctive: line 69
Do not invent company endpoints, data models, or a company name.
- Distinctive: line 70
Keep the contract implementable: concrete examples over abstract rules.
“Common” is measured: kept by at least 6 in 10 of the 161 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Design
Purpose
Help design clean, consistent, production-ready REST APIs and service contracts: correct resource modeling, conventional HTTP semantics, robust error handling, and explicit security/versioning decisions — documented enough to hand to a frontend, mobile, or service consumer.
When to use
- New endpoint or new microservice design for any context (backend job, internship, or car-part retrieval project API).
- Defining request/response schemas and validation rules.
- Choosing pagination, filtering, sorting, idempotency, rate limiting, caching, or versioning strategies.
- Producing OpenAPI (Swagger) specifications.
- Reviewing a proposed contract before implementation.
When not to use
- The endpoint is failing or slow →
backend-debugging. - Reviewing an implementation PR →
backend-code-review. - Implementing the endpoint within a specific task →
backend-job(backend job) orsoftware-internship(internship) — ask the routing question if the context is unclear. - Data modeling for analytics/warehouse tables →
data-engineering.
Context intake
- API audience (web / mobile / partner / internal service) and whether the contract replaces an existing one - that decides breaking-change handling. Detect or confirm before starting (ask at most what is genuinely needed):
- Which context: one of the contexts defined in
docs/workflow-profile.md("Contexts")? Readdocs/active-context.mdfirst: ifCurrentnames a context set within the last day, use it, apply its rules, and do not ask. Otherwise fall back to the active roles and projects indocs/workflow-profile.md; ask when it could be two different contexts. - What is the desired output: a plan, code, a review, tests, documentation, a deployment plan, or research notes? Confirm if ambiguous.
Workflow
- Read the my-skill plugin's
docs/workflow-profile.md. If it is missing, contradicts this request, or was last updated more than ~3 months ago, confirm or update it with Sothy before applying any role, project, or stack assumptions. - Clarify the business capability and consumers; ask one short clarifying round only if something essential is missing.
- Identify resources, operations, ownership, and relationships. Model nouns, not actions; push behavior-driven endpoints toward sub-resources or domain operations deliberately when needed.
- Propose endpoint paths and methods with concrete example request/response bodies for the happy path.
- Specify for every endpoint: validation rules, auth/permissions, error responses, pagination, filtering, caching headers, idempotency, retry behavior, and versioning.
- Produce an endpoint table (method, path, purpose, auth, key params, notes).
- Write OpenAPI YAML when requested or when the consumer needs generated clients/docs.
- List edge cases and the tests each consumer/reviewer should expect.
Adaptation rules
- Web/mobile consumer APIs: cursor pagination + full error envelope; internal admin tools: simpler versioning but unchanged authz discipline.
- ML/vision endpoints (image upload / search jobs): prefer async 202 + job-resource or streaming responses; never expose model internals or raw index artifacts.
- Internship or team APIs: mirror the team's existing naming/envelope conventions instead of these defaults when they differ; say which won and why.
Inputs needed
- The business capability in one or two sentences.
- Who consumes the API (frontend, mobile, partner, internal service).
- Existing conventions (if any) from the codebase or team.
- Whether the API is public, partner-facing, or internal.
- Any non-functional constraints: expected traffic, latency targets, consistency needs.
Output contract
- API goal — capability + consumers.
- Resource model — resources, relationships, ownership.
- Endpoint table — method, path, purpose, auth, params, notes.
- Example requests and responses — JSON for the happy path and one representative endpoint set.
- Error responses — standard error body shape + status code usage table.
- Security and validation rules — auth, permission model, input validation, rate limiting, idempotency.
- OpenAPI YAML — only if requested.
- Edge cases and tests — short list.
Rules and constraints
- Use consistent naming (plural nouns, kebab-case paths, camelCase JSON fields unless an existing convention differs) and conventional HTTP semantics; 4xx = client mistake, 5xx = server mistake, never 200 for errors.
- Never leak internal database details (IDs' internal meaning, SQL errors, table/column names, stack traces) in responses.
- Flag breaking changes explicitly (renamed fields, changed status codes, removed fields) and prefer additive changes versioned contracts.
- Do not invent company endpoints, data models, or a company name; design from what is given and mark assumptions clearly.
- Keep the contract implementable: concrete examples over abstract rules.
Quality checklist
- Every endpoint: method/path/auth/validation/error shape defined.
- No internal schema or DB details leak into examples.
- Breaking changes flagged with migration notes.
- Examples are copy-pasteable, realistic JSON.
Examples
- Request: "Design the API for managing car-kit bundles in an internal admin tool." Behavior: Clarify admin vs. customer consumers. Produce a resource model (bundles, bundle items, SKUs), endpoint table, JSON examples, error shape, permission notes, and edge cases (bundle with discontinued part, concurrent edits).
- Request: "Our mobile team needs an orders endpoint supporting status filter and cursor pagination."
Behavior: Design
GET /v1/orders?status=shipped&cursor=...&limit=..., define response envelope and cursor semantics, idempotent webhook for status updates if relevant, OpenAPI YAML on request, and flag pagination-strategy change as breaking if replacing page numbers.
Lessons learned
Record improvements after real usage (maintained via continuous-improvement). Format:
<date>--<what happened>-><change made to this SKILL.md>
(empty -- entries appear after real usage)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

