agentsclimarketplace

Rest api design

Skill kimtth/agent-skill-100-lines-or-less/skills/rest-api-design

🧿 Minimal but effective AI agent skill definitions in 100 lines or less.

Install
npx -y skills add kimtth/agent-skill-100-lines-or-less --skill rest-api-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when: design RESTful HTTP APIs with correct resources, methods, status codes, and pagination.

SKILL.md

1.1 KB, as published. Nobody here has run it

Goal: HTTP APIs that follow REST conventions consumers expect.

Use for:

  • designing resource-oriented HTTP endpoints
  • reviewing method, status code, and URL choices
  • adding pagination, filtering, and idempotency

Workflow:

  1. Model nouns as resources; use HTTP methods for verbs.
  2. Use GET (safe), POST (create), PUT/PATCH (update), DELETE.
  3. Return correct status codes: 2xx, 4xx for client, 5xx for server.
  4. Make PUT and DELETE idempotent; guard POST with idempotency keys.
  5. Paginate collections; support filtering and sorting via query params.
  6. Document the contract and version breaking changes.

Conventions:

  • plural resource nouns: /users, /users/{id}/orders
  • 201 + Location on create, 204 on empty success
  • consistent error body with code and message
  • cursor or page-based pagination, documented

Rules:

  • methods match semantics; GET must not mutate
  • choose status codes by meaning, not habit
  • keep endpoints resource-oriented, not RPC-in-disguise
  • never break URLs or shapes without versioning

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.