agentleFS
chrislacey89chrislacey89/skills/api-design-review/SKILL.md

api-design-review

Skill4 starsChanged 8 days agoMITView on GitHub

Invoked helper skill for higher-risk API contract decisions, usually called from /research or /write-a-prd. Use when the unresolved question is API shape, compatibility, auth, webhook design, or paradigm choice. Not a default top-level workflow step or a substitute for ordinary implementation work.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-audit and security-audit.

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.
  • GitHubSkill

    accessibility-audit

    Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.

    Also in 3 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when API complexity is high enough that the normal /research or /write-a-prd flow needs a focused contract review.

    line 8
  2. Distinctive:

    Use it when the unresolved question is the API contract itself: paradigm choice, consumer-facing shape, compatibility posture, or auth and …

    line 16
  3. Very specific:

    Do not use it for ordinary backend implementation work or for non-API module design questions that belong in /design-an-interface.

    line 18
  4. Distinctive:

    Do not invoke it for ordinary backend changes that merely happen to call an API without changing the contract shape.

    line 31
  5. Distinctive:

    If the work is not actually API-shaping, stop and return control to the caller.

    line 56
  6. Distinctive:

    If these are missing, ask the caller to supply them or derive them from the existing pitch/research context before proceeding.

    line 67
  7. Distinctive:

    Prefer additive change over mutation of existing behavior.

    line 80
  8. Distinctive:

    Keep the output concise. This is a focused design review, not a full PRD or a full research report.

    line 116

“Common” is measured: kept by at least 6 in 10 of the 8 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

API Design Review

Use this skill when API complexity is high enough that the normal /research or /write-a-prd flow needs a focused contract review.

This is an invoked skill, not a default pipeline step. It exists to add rigor only when the cost of an API mistake is unusually high.

Invocation Position

This is an invoked helper skill. It normally runs from /research or /write-a-prd rather than as the first entry point for a feature.

Use it when the unresolved question is the API contract itself: paradigm choice, consumer-facing shape, compatibility posture, or auth and webhook model.

Do not use it for ordinary backend implementation work or for non-API module design questions that belong in /design-an-interface.

Invoke This Skill When

Invoke /api-design-review only if at least one of these is true:

  • a new external or partner-facing API is being introduced
  • an existing request or response contract is changing
  • OAuth, scopes, token model, or webhook verification is involved
  • there is real uncertainty about paradigm selection (REST, RPC, GraphQL, WebHooks, WebSockets)

You may also invoke it for internal APIs with multiple independent consumers when a contract mistake would create broad cleanup cost.

Do not invoke it for ordinary backend changes that merely happen to call an API without changing the contract shape.

Goals

Produce a lightweight design review that answers:

  • What developer problem is this API solving?
  • Who are the consumers and what operations do they need?
  • What paradigm best fits the operation inventory?
  • What is the minimum viable auth and scope design?
  • Is the proposed change additive or breaking?
  • What contract details must be fixed before implementation starts?

Workflow

1. Establish the API surface under review

Summarize the proposed API work in a few lines:

  • new API vs change to existing API
  • internal vs external consumers
  • synchronous request/response vs event/webhook delivery
  • auth model involved
  • known compatibility constraints

If the work is not actually API-shaping, stop and return control to the caller.

2. Write the minimum spec-first inputs

Capture these before judging the design:

  • Problem statement — what developer pain or capability gap exists?
  • Impact statement — what outcome does solving it enable?
  • Developer consumers — who integrates with this and what do they care about?
  • Operation inventory — list the concrete operations the API must support

If these are missing, ask the caller to supply them or derive them from the existing pitch/research context before proceeding.

3. Review the design

Evaluate the proposal across these dimensions:

  • Paradigm fit — does REST/RPC/GraphQL/WebHooks match the operation inventory?
  • Contract shape — are inputs, outputs, required/optional fields, and defaults explicit?
  • Error design — are there machine-readable codes plus human-readable messages?
  • Security model — are scopes, token handling, or webhook verification conservative and clear?
  • Compatibility — is the change additive, or does it risk breaking existing consumers?
  • Rejected alternatives — what was considered and why was it rejected?

Prefer additive change over mutation of existing behavior. If a contract must evolve incompatibly, say so explicitly.

4. Produce the review result

Return a short memo with these sections:

API Design Verdict

  • Proceed — the contract is shaped enough to enter implementation
  • Proceed with constraints — acceptable, but only if listed constraints are preserved
  • Revise before implementation — unresolved design issues remain

Must-lock decisions

List the contract decisions that must be fixed before implementation starts.

Compatibility classification

State one of:

  • Additive
  • Potentially breaking
  • Breaking

Explain why.

Key risks

List the 2-5 highest-risk failure modes.

Recommendation

Give the simplest viable recommendation that fits the constraints.

Output guidance

Keep the output concise. This is a focused design review, not a full PRD or a full research report.

Good outputs help /research or /write-a-prd sharpen the contract before implementation. Bad outputs restate generic API best practices without deciding anything.

Handoff

  • Expected input: API-shaped uncertainty from /research or /write-a-prd
  • Produces: a concise verdict, compatibility classification, must-lock decisions, and key risks
  • Returns control to: the calling skill so shaping can continue with a firmer contract
  • Typical next step: back to /research or /write-a-prd, then onward through the normal pipeline

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.