api-design
Skill9 starsChanged 9 days agoMITView on GitHub
Design or evolve APIs and integration contracts by identifying consumers, choosing an appropriate interaction style, and defining operations, errors, security, and compatibility. Use for API contract design or review; do not use for implementation-only work, dedicated vulnerability audits, or documentation-only updates.
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 repository9 other files it gives its agents.
- code-reviewSkill
- commitsSkill
- debugSkill
- deployment-readinessSkill
- docsSkill
- refactorSkill
- security-reviewSkill
- sqlSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 161 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill to design a new API, review an API proposal, choose an integration style, or evolve a published contract.
- Distinctive: line 16
Do not activate it for implementation with an already approved contract, documentation-only synchronization, general code refactoring, or a …
- Distinctive: line 41
Use Problem Details when it fits the project's standards and clients.
- Distinctive: line 47
Use idempotency keys or another deduplication strategy for retryable operations whose repeated execution could duplicate effects.
- Distinctive: line 49
Add rate limits and abuse protection based on resource cost and threat context.
- Distinctive: line 68
Do not recommend gateways, brokers, service meshes, new protocols, patterns, or versioning merely because they are common.
- Distinctive: line 70
If consumer, security, scale, or compatibility information is insufficient, provide a bounded proposal with labeled assumptions or stop …
- Distinctive: line 71
Do not claim a contract is secure, compatible, validated, or implemented without corresponding evidence.
“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
Outcome
Produce a comprehensible, testable API contract and an evidence-based design rationale that meet known consumer needs without unnecessary architectural or operational complexity. Make assumptions, trade-offs, compatibility risks, and unresolved questions explicit.
Use and non-use
Use this skill to design a new API, review an API proposal, choose an integration style, or evolve a published contract.
Do not activate it for implementation with an already approved contract, documentation-only synchronization, general code refactoring, or a dedicated security vulnerability assessment. A design-only request does not authorize implementing endpoints, schemas, infrastructure, or clients.
Required context
Identify the business capability, consumers, ownership boundary, deployment environment, existing technologies, published contracts, expected scale, data sensitivity, and operational constraints. Separate confirmed requirements from assumptions and ask only for missing information that materially changes the contract or integration choice.
Workflow
- Define the API's objective, bounded responsibility, success criteria, and explicit non-goals. Avoid exposing internal implementation structure as the contract by default.
- Identify human, service, partner, device, or event consumers and their capabilities, trust boundaries, latency needs, release independence, and tolerance for change.
- Capture functional requirements as consumer operations and observable outcomes. Record relevant quality attributes such as availability, latency, throughput, consistency, durability, privacy, auditability, evolvability, and operational cost.
- Compare integration styles in context. HTTP resource or action APIs favor broad interoperability; gRPC can favor typed internal RPC and streaming; GraphQL can support client-shaped queries with added governance and execution complexity; events can decouple producers and consumers but require delivery, ordering, schema, idempotency, and observability decisions. Do not impose REST or any other style universally.
- Model resources, commands, queries, events, and operation boundaries using domain terms already established by the project. Define identity, lifecycle, ownership, state transitions, and consistency boundaries without adding abstraction that has no requirement.
- Specify inputs and outputs: required and optional fields, types, constraints, defaults, nullability, units, formats, ordering, metadata, and examples. Distinguish transport envelopes from domain data and minimize sensitive data exposure.
- Define failures as part of the contract. Provide stable machine-readable codes, safe human-readable detail, correlation information where useful, retryability, and mappings to transport semantics. Do not leak secrets, internals, or resource existence across authorization boundaries.
- Design authentication and authorization separately. Define access per resource and operation, tenant or ownership isolation, input and consumption limits, abuse controls, sensitive-data handling, and applicable audit events. Authentication alone does not make an API secure.
- Analyze retries, timeouts, duplicate delivery, idempotency, concurrency, partial failure, cancellation, and recovery across the full interaction. Assign responsibility to clients, servers, intermediaries, and operators rather than leaving network behavior implicit.
- Classify every evolution proposal as compatible, conditionally compatible, or breaking for published contracts and known consumers. Plan deprecation, observability, incremental migration, rollback, and removal; state consumer risks explicitly.
- Validate the contract with representative consumer flows, boundary and negative cases, schema or specification checks, examples, and compatibility tests when available. Verify that implementation technology can support the design, but do not implement it unless requested.
- Record decisions, alternatives, trade-offs, rejected complexity, operational impacts, assumptions, and open questions. Keep the result consistent with project terminology and existing platforms.
HTTP contract guidance
For an HTTP API, always align method semantics, status codes, resource or action naming, input validation, error representation, access control, and compatibility expectations. Treat safe and idempotent method properties accurately: reads must not cause unintended state change, retries must not duplicate effects, and POST, PUT, PATCH, and DELETE semantics must be defined rather than inferred from naming. Choose success and error status codes that reflect the actual outcome, including asynchronous acceptance, conflicts, preconditions, authorization failures, throttling, and server failures.
Use Problem Details when it fits the project's standards and clients; otherwise define an equally consistent error schema. Do not adopt it as a label without specifying stable application error identifiers and safe details.
Apply these mechanisms only when requirements justify them:
- Paginate collections that can grow beyond safe response or query bounds; define stable ordering, cursor or offset behavior, limits, and consistency expectations.
- Define allowlisted filtering and sorting semantics, validation, cost limits, and deterministic tie-breaking.
- Use idempotency keys or another deduplication strategy for retryable operations whose repeated execution could duplicate effects; define key scope, lifetime, request matching, and replayed responses.
- Define end-to-end timeouts and cancellation. Recommend retries only for classified transient failures, with bounded attempts, backoff, jitter, and idempotency awareness.
- Add rate limits and abuse protection based on resource cost and threat context; document client-visible limits and retry guidance where appropriate.
- Define optimistic or pessimistic concurrency controls when lost updates or conflicting commands matter.
- Enable caching only with explicit freshness, validation, privacy, and invalidation semantics.
- Introduce URL, header, media-type, or schema versioning only with a demonstrated evolution need and a migration policy.
- Maintain OpenAPI when a machine-readable HTTP contract benefits validation, client generation, testing, or governance; keep it synchronized with approved behavior.
Security and evolution safeguards
- Minimize returned and logged data; classify sensitive fields and prevent over-broad object serialization.
- Validate structure, semantics, size, ranges, and allowed values at the trust boundary. Consider query complexity and payload limits, not only field syntax.
- Enforce authorization for the specific resource and operation, including tenant isolation and indirect object access.
- Design errors, metrics, traces, and audit records to support operations without exposing credentials, personal data, internals, or forbidden resource existence.
- Identify changes to required fields, types, nullability, defaults, enum values, identifiers, ordering, error behavior, serialization, and timing as potential consumer breaks. Additive changes are not automatically safe for strict consumers.
- Account for deployed consumers and tolerant-reader behavior rather than reasoning from the latest schema alone. Prefer staged migration and measurable deprecation over abrupt removal.
- For a dedicated vulnerability assessment, compose this skill with
security-review; keep baseline contract security decisions in this workflow and do not turn API design into an AppSec audit.
Limits and uncertainty
- Respect the project's existing technologies and constraints unless evidence supports changing them.
- Do not recommend gateways, brokers, service meshes, new protocols, patterns, or versioning merely because they are common.
- Surface cost, latency, failure modes, consistency, deployment, monitoring, and support burden for each material option.
- If consumer, security, scale, or compatibility information is insufficient, provide a bounded proposal with labeled assumptions or stop before irreversible design or implementation.
- Do not claim a contract is secure, compatible, validated, or implemented without corresponding evidence. Report checks not run and why.
- Preserve unrelated work and do not commit or push automatically.
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.

