api-and-interface-design
Skill2 starsChanged 7 months agoMITView on GitHub
Use when designing or modifying any public interface — REST APIs, GraphQL schemas, module boundaries, Terraform provider schemas, CLI commands, or component contracts
92 other projects use a version of this.
Adopted by
Most recently taken up by
- dzikrisyairozi/agent-skillstheir own version, first seen Nov 29, 2026
- Mesteriis/Engineering-Bible-AItheir own version, first seen Nov 29, 2026
- jaydubya818/MissionControltheir own version, first seen Nov 29, 2026
- aakash1552005/universal-agent-skillstheir own version, first seen Nov 29, 2026
- karanmrn/karanagentskillstheir own version, first seen Nov 29, 2026
- karanmrn/kstacktheir own version, first seen Nov 29, 2026
Used with
Projects with it also use observability-and-instrumentation, accessibility-engineering and 7 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.
jaydubya818Skillobservability-and-instrumentation
Add or review logs, metrics, traces, and actionable alerts.
Also in 50 projects that use this
steven123397Skillaccessibility-engineering
Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.
Also in 4 projects that use this
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 22 projects that use this
seikaikyoSkilldoubt-driven-development
對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。
Also in 59 projects that use this
skytiger6724Skillbrainstorm-experiments-existing
Design experiments to test assumptions for an existing product — prototypes, A/B tests, spikes, and other low-effort validation methods. Use when validating assumptions, testing feature ideas cheaply, or planning product experiments.
Also in 4 projects that use this
skytiger6724Skillprioritize-assumptions
Prioritize assumptions using an Impact × Risk matrix and suggest experiments for each. Use when triaging a list of assumptions, deciding what to test first, or applying the assumption prioritization canvas.
Also in 4 projects that use this
- +1 more from skytiger6724
Other versions92 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 92
- addyosmani/agent-skills★ 121ksame name
- ollaya-dev/ollaya★ 1.5ksame name
- shashankswe2020-ux/whoop-mcp★ 181same name
- alexj11324/Mikka★ 90same name
- aspectly-labs/Mikka★ 90same name
- drvoss/everything-copilot-cli★ 49same name
- vinvcn/addyosmani-agent-skills-zh★ 46same name
- jmxt3/gitscape.ai★ 33same name
- sampleXbro/agentsmesh★ 31same name
- jaskirat1616/grok-skills★ 22same name
82 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 repository26 other files it gives its agents.
- brainstormingSkill
- ci-cd-and-automationSkill
- code-reviewSkill
- code-simplificationSkill
- context-engineeringSkill
- deprecation-and-migrationSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- grill-meSkill
- mentorSkill
- performance-optimizationSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-guidanceSkill
- session-synthesisSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- verification-phaseSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 87 edited versions we read keep these.
1
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 16
Don't leak implementation details.
- Distinctive: line 36
Don't force consumers to choose between versions.
“Common” is measured: kept by at least 6 in 10 of the 87 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 and Interface Design
Design stable interfaces that are hard to misuse. Applies to REST, GraphQL, module exports, Terraform providers, and CLIs.
Core Principles
Hyrum's Law
With sufficient users, all observable behaviors become depended on — regardless of your contract.
Don't leak implementation details. Plan deprecation at design time (see deprecation-and-migration).
Contract First
Define the interface before implementing. Types, schemas, HCL attributes, CLI flags — the contract is the spec. Implementation follows.
Consistent Error Semantics
Pick one error strategy. Use it everywhere across the same surface.
| Surface | Strategy |
| REST | HTTP status codes + { error: { code, message } } |
| GraphQL | errors[] with extensions |
| Module | Typed error/result types or consistent exceptions |
| Terraform | diag.Diagnostics with summary + detail |
| CLI | stderr for errors, stdout for data, exit codes |
One-Version Rule
Don't force consumers to choose between versions. Diamond dependencies arise when different consumers need different versions. Extend rather than fork.
Design Rules
- Validate at boundaries — API handlers, CLI arg parsing, provider schema, third-party responses. Trust internal code.
- Prefer addition over modification — new optional fields/subcommands/attributes. Never change types or remove fields.
- Predictable naming — plural nouns for REST resources, no verbs in URLs, consistent casing,
is/has/canfor booleans. - Paginate from day one — every list endpoint/query.
- Separate input from output — what callers provide vs what the system returns.
Anti-Rationalization Table
| Rationalization | Reality |
| "We'll document it later" | Types/schemas ARE the documentation. Define first. |
| "Don't need pagination yet" | You will at 100+ items. Add from the start. |
| "Nobody uses that behavior" | Hyrum's Law: if observable, someone depends on it. |
| "We can maintain two versions" | Multiple versions multiply cost. One-Version Rule. |
| "Internal APIs don't need contracts" | Internal consumers are still consumers. |
| "We'll version when we need to" | Breaking changes without versioning break consumers. |
Red Flags — STOP and Redesign
- Different response shapes depending on conditions
- Inconsistent error formats across the same surface
- Validation scattered in internal code instead of boundaries
- Breaking changes to existing fields
- List operations without pagination
- Verbs in REST URLs (
/api/createTask) - Third-party responses used without validation
- CLI mixing data and status messages on stdout
Verification
- Every operation has typed/documented input and output
- Errors follow a single consistent format
- Validation at boundaries only
- Lists paginated
- Changes are additive and backward-compatible
- Naming consistent across all operations
- Deprecation path exists for removals (see
deprecation-and-migration)
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.

