Skip to content
vudovn avatar

Api Patterns

API design principles and decision-making covering REST, GraphQL, and tRPC selection, responses, and security.

CCM score
43 of 100
skills.sh installs
215
GitHub stars
8.2K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers API style selection, REST resource design, response envelopes, GraphQL, tRPC, versioning, pagination, auth, rate limiting, documentation, and security testing
  • Includes a decision checklist and anti-pattern list, such as avoiding verbs in REST endpoints and exposing internal errors to clients
  • Provides a validation script, scripts/api_validator.py, that checks an API endpoint in a project path
  • Designed for designing REST, GraphQL, or tRPC APIs, not for UI or frontend work

Install

$ npx -y skills add vudovn/ag-kit --skill api-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

API Patterns

API design principles and decision-making. Learn to THINK, not copy fixed patterns.

🎯 Selective Reading Rule

Read ONLY files relevant to the request! Check the content map, find what you need.


πŸ“‘ Content Map

FileDescriptionWhen to Read
api-style.mdREST vs GraphQL vs tRPC decision treeChoosing API type
rest.mdResource naming, HTTP methods, status codesDesigning REST API
response.mdEnvelope pattern, error format, paginationResponse structure
graphql.mdSchema design, when to use, securityConsidering GraphQL
trpc.mdTypeScript monorepo, type safetyTS fullstack projects
versioning.mdURI/Header/Query versioningAPI evolution planning
auth.mdJWT, OAuth, Passkey, API KeysAuth pattern selection
rate-limiting.mdToken bucket, sliding windowAPI protection
documentation.mdOpenAPI/Swagger best practicesDocumentation
security-testing.mdOWASP API Top 10, auth/authz testingSecurity audits

πŸ”— Related Skills

Details

Repository
github.com/vudovn/ag-kit
Categories
Backend & APIs, Technical Documentation
First seen
Jun 3, 2026

Questions

What does the api-patterns skill do?

The api-patterns skill guides API design decisions, helping choose between REST, GraphQL and tRPC for a project. It also covers response formats, versioning, pagination, rate limiting and API authentication patterns. It is meant for backend API work, not UI or frontend tasks.

How do I install the api-patterns skill?

Run npx -y skills add vudovn/ag-kit --skill api-patterns -y in your project. Once installed, the agent can read its guidance when designing REST, GraphQL or tRPC APIs.

Which other skills are in the Backend & APIs category?

Other top skills in the Backend & APIs category include entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. The api-patterns skill focuses on API design choices and conventions rather than a specific platform.

More from vudovn/ag-kit

All 30

Similar to Api Patterns

More Backend & APIs