mcpbeat Sign in

API Patterns Agent Skill

API design principles and decision-making.

5k tokens
context cost
the whole folder, loaded on every use
12
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
505
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill api-patterns

What comes with it

18โ€‰121 bytes besides the instruction
api-style.md
auth.md
documentation.md
graphql.md
rate-limiting.md
response.md
rest.md
scripts/api_validator.py
security-testing.md
trpc.md
versioning.md

The instruction itself

7 sections, as written by the author

API Patterns

> API design principles and decision-making for 2025.

> 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

| File | Description | When to Read |

|------|-------------|--------------|

| api-style.md | REST vs GraphQL vs tRPC decision tree | Choosing API type |

| rest.md | Resource naming, HTTP methods, status codes | Designing REST API |

| response.md | Envelope pattern, error format, pagination | Response structure |

| graphql.md | Schema design, when to use, security | Considering GraphQL |

| trpc.md | TypeScript monorepo, type safety | TS fullstack projects |

| versioning.md | URI/Header/Query versioning | API evolution planning |

| auth.md | JWT, OAuth, Passkey, API Keys | Auth pattern selection |

| rate-limiting.md | Token bucket, sliding window | API protection |

| documentation.md | OpenAPI/Swagger best practices | Documentation |

| security-testing.md | OWASP API Top 10, auth/authz testing | Security audits |


| Need | Skill |

|------|-------|

| API implementation | @[skills/backend-development] |

| Data structure | @[skills/database-design] |

| Security details | @[skills/security-hardening] |


โœ… Decision Checklist

Before designing an API:

  • [ ] Asked user about API consumers?
  • [ ] Chosen API style for THIS context? (REST/GraphQL/tRPC)
  • [ ] Defined consistent response format?
  • [ ] Planned versioning strategy?
  • [ ] Considered authentication needs?
  • [ ] Planned rate limiting?
  • [ ] Documentation approach defined?

โŒ Anti-Patterns

DON'T:

  • Default to REST for everything
  • Use verbs in REST endpoints (/getUsers)
  • Return inconsistent response formats
  • Expose internal errors to clients
  • Skip rate limiting

DO:

  • Choose API style based on context
  • Ask about client requirements
  • Document thoroughly
  • Use appropriate status codes

Script

| Script | Purpose | Command |

|--------|---------|---------|

| scripts/api_validator.py | API endpoint validation | python scripts/api_validator.py <project_path> |

Other skills for the same job

different authors, same section of the catalogue
GitHub Project Management
by ComeOnOliver
ร—3

Comprehensive GitHub project management with swarm-coordinated issue tracking, project board automation, and sprint planning

14k tokens
Folder Structure Blueprint Generator
by github
vendor ร—1

Comprehensive technology-agnostic prompt for analyzing and documenting project folder structures. Auto-detects project types (.NET, Java, React, Angular, Python, Node.js, Flutter), generates detailed blueprints with visualization options, naming conventions, file placement patterns, and extension templates for maintaining consistent code organization across diverse technology stacks.

3k tokens
Sequential Thinking
by mrgoonie
ร—1

Use when complex problems require systematic step-by-step reasoning with ability to revise thoughts, branch into alternative approaches, or dynamically adjust scope. Ideal for multi-stage analysis, design planning, problem decomposition, or tasks with initially unclear scope.

4k tokens
Openserv Multi Agent Workflows
by internet-court
ร—1

Multi-agent workflow examples to work together on the OpenServ Platform. Covers agent discovery, multi-agent workspaces, task dependencies, and workflow orchestration using the Platform Client. Read reference.md for the full API reference. Read openserv-agent-sdk and openserv-client for building and running agents.

24k tokens
Caveman Compress
by HoangNguyen0403
ร—1

> Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md.

7k tokens scripts
API Patterns
by lingxling
ร—1

API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.

5k tokens scripts
Github Workflow Automation
by lingxling
ร—1

Patterns for automating GitHub workflows with AI assistance, inspired by [Gemini CLI](https://github.com/google-gemini/gemini-cli) and modern DevOps practices.

5k tokens
Domain Identification Grouping
by christophacham
ร—1

Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components belong together?", "group these into services", "organize by domain", "component-to-domain mapping", or planning service extraction from an existing codebase. Do NOT use for identifying new domains from scratch (use domain-analysis) or analyzing coupling (use coupling-analysis).

10k tokens

How to use it

Copy the folder

Take dokhacgiakhoa/api-patterns from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side โ€” one of them will be ignored.