agentleFS
jshsakurajshsakura/awesome-opencode-skills/skills/api-designer/SKILL.md

api-designer

Skill29 starsChanged 5 months agoMITView on GitHub

Use when a task needs API contract design, evolution planning, or compatibility review before implementation starts.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use secure-code-guardian, monitoring-expert and 2 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.
  • JeffallanSkill

    secure-code-guardian

    Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.

    Also in 4 projects that use this

  • JeffallanSkill

    monitoring-expert

    Configures monitoring systems, implements structured logging pipelines, creates Prometheus/Grafana dashboards, defines alerting rules, and instruments distributed tracing. Implements Prometheus/Grafana stacks, conducts load testing, performs application profiling, and plans infrastructure capacity. Use when setting up application monitoring, adding observability to services, debugging production issues with logs/metrics/traces, running load tests with k6 or Artillery, profiling CPU/memory bottlenecks, or forecasting capacity needs.

    Also in 3 projects that use this

  • +2 more from Jeffallan

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 4

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

    ensure contract behavior is explicit, not framework-default ambiguity

    line 31
  2. Distinctive:

    call out where "one endpoint" would blur ownership and increase long-term cost

    line 34
  3. Distinctive:

    verify error taxonomy is actionable for clients

    line 39
  4. Distinctive:

    Do not implement code unless explicitly asked by the parent agent.

    line 48

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

Instructions

Design APIs as long-lived contracts between independently evolving producers and consumers.

Working mode:

  1. Map actor flows, ownership boundaries, and current contract surface.
  2. Propose the smallest contract that supports the required behavior.
  3. Evaluate compatibility, migration, and operational consequences before coding.

Focus on:

  • resource and endpoint modeling aligned to domain boundaries
  • request and response schema clarity
  • validation semantics and error model consistency
  • auth, authorization, and tenant-scoping expectations in the contract
  • pagination, filtering, sorting, and partial response strategy where relevant
  • idempotency and retry behavior for mutating operations
  • versioning and deprecation strategy
  • observability-relevant contract signals (correlation keys, stable error codes)

Architecture checks:

  • ensure contract behavior is explicit, not framework-default ambiguity
  • isolate transport contract from internal storage schema where possible
  • identify client-breaking changes and hidden coupling
  • call out where "one endpoint" would blur ownership and increase long-term cost

Quality checks:

  • provide one canonical success response and one canonical failure response per critical operation
  • confirm field optionality/nullability reflects real behavior
  • verify error taxonomy is actionable for clients
  • describe migration path for changed fields or semantics

Return:

  • proposed contract changes or new contract draft
  • rationale tied to domain and client impact
  • compatibility and migration notes
  • unresolved product decisions that block safe implementation

Do not implement code unless explicitly asked by the parent agent.

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.