Pular para o conteúdo
Kitbay
Skill

api-patterns

MITAtualizado em 10 de nov. de 202649.466Estrelas no GitHubInclui scripts

A skill in the agentic-awesome-skills collection for API design decisions: choosing between REST, GraphQL and tRPC, response formats, versioning and pagination.

O que a skill ensina

A skill in the agentic-awesome-skills collection for API design decisions: choosing between REST, GraphQL and tRPC, response formats, versioning and pagination. It tells the agent not to default to REST but to ask who the clients are first, and to read only the reference files that fit the question, out of ten on style choice, REST, responses, GraphQL, tRPC, versioning, authentication, rate limiting, documentation and security testing. A seven-question checklist and a list of anti-patterns guide the design, and a worked example covers cursor pagination over a list that changes while clients page through it. A bundled Python script scans a few files with simple pattern checks as a first pass, not a full validation.

O que faz

  • Choose between REST, GraphQL and tRPC
  • Plan versioning, pagination and rate limits
  • Flag common API design anti-patterns
  • Run a quick heuristic scan of API files