agentleFS
AaqibhafeezkhanAaqibhafeezkhan/skillself/skills/api-design-review/SKILL.md

api-design-review

Skill0 starsChanged 5 days agoMITView on GitHub

Reviews REST APIs and OpenAPI specs for naming, status codes, pagination, idempotency, versioning, error shape, authentication and rate limiting. Use it when someone says “review this API”, “audit this OpenAPI spec”, or “score this endpoint design”.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use test-writer, accessibility-audit and 1 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.
  • leonardomsoSkill

    test-writer

    Generate comprehensive Vitest tests for code examples in JavaScript concept documentation pages, following project conventions and referencing source lines

    Also in 3 projects that use this

  • 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

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 7

    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. Distinctive:

    Use this skill when the user supplies OpenAPI YAML/JSON, endpoint definitions, HTTP examples or a REST API description and requests a …

    line 13
  2. Distinctive:

    Read the complete contract, including schemas, parameters, responses, security schemes and shared components.

    line 23
  3. Very specific:

    Read references/checklist.md and score each of its 30 checks as met, partly met or not met.

    line 24
  4. Distinctive:

    Verify that deductions do not exceed 100 and calculate the score as 100 minus points lost.

    line 26
  5. Very specific:

    Start with API design score: NN/100.

    line 32
  6. Distinctive:

    Do not award credit for controls merely mentioned in prose when the contract does not define them.

    line 37
  7. Distinctive:

    Do not infer behavior or context that the supplied source does not establish.

    line 42
  8. Distinctive:

    Do not omit a required field, test or referenced checklist.

    line 43
  9. Distinctive:

    Do not claim a review or validation passed without observing the result.

    line 44

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

Purpose

Score an API contract consistently and identify design decisions that create client ambiguity, data loss, security exposure or operational risk.

When to use

Use this skill when the user supplies OpenAPI YAML/JSON, endpoint definitions, HTTP examples or a REST API description and requests a design review.

Inputs needed

Require an OpenAPI document or enough endpoint definitions to assess the checklist. Ask for the missing contract when none is supplied. Ask for the authentication model only when it is not represented and affects scoring.

Step-by-step procedure

  1. Read the complete contract, including schemas, parameters, responses, security schemes and shared components. Record covered operations.
  2. Read references/checklist.md and score each of its 30 checks as met, partly met or not met. Record points lost and evidence.
  3. Inspect naming, HTTP semantics, pagination, retry safety, versioning, validation, error consistency, authentication and rate limiting.
  4. Verify that deductions do not exceed 100 and calculate the score as 100 minus points lost. Record the arithmetic.
  5. Order findings by points lost, then operation path and method. Return evidence and concrete contract changes.

Exact output format

Start with API design score: NN/100. Then output a Markdown table with columns points lost, check, operation, evidence, recommended change. Sort by points lost descending. Omit checks that pass. Finish with Scoring: 100 - total points lost = NN/100.

Edge cases

Do not award credit for controls merely mentioned in prose when the contract does not define them. Mark infrastructure-managed controls not assessable unless the contract or configuration proves them. Do not deduct twice for one root cause.

Do not

  • Do not infer behavior or context that the supplied source does not establish.
  • Do not omit a required field, test or referenced checklist.
  • Do not claim a review or validation passed without observing the result.

Worked example summary

For a payment creation operation without idempotency, deduct the corresponding checklist points and recommend a documented key, scope and replay response.

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.