Skip to main content
skill

api-patterns — Claude Code skill: API design and installation

This skill guides API style choices and covers response structure, versioning, and pagination. Use it when planning an API.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/api-patterns
Open on GitHub

What api-patterns does

The skill helps weigh REST, GraphQL, and tRPC against the project context. Its topic files cover response formats, version strategies, pagination, authentication, rate limits, documentation, and security checks. It also prompts the agent to consider who will consume the API before settling on an approach.

The material is split into focused files, so the skill directs attention to the sections relevant to the current request. Recommendations therefore depend on the API question at hand. A Python script checks API endpoints: run it with python scripts/api_validator.py <project_path>. The skill can use Read, Write, Edit, Glob, and Grep.

What it helps with

  • choose an API style for a project
  • define consistent response and error formats
  • plan API versioning
  • select a pagination approach
  • validate project API endpoints

Example prompts for the agent

  • Help me choose REST, GraphQL, or tRPC for this project.
  • Design response and error formats with pagination for my REST API.
  • Check this project's endpoints with python scripts/api_validator.py <project_path>.

How to install api-patterns

1claude-code-templates

npx claude-code-templates@latest --skill development/api-patterns

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill api-patterns -a claude-code

3Manually: put the files in place

~/.claude/skills/api-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/api-patterns/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about api-patterns

How do I install api-patterns in Claude Code?

Run npx claude-code-templates@latest --skill development/api-patterns.

What does api-patterns do?

It guides API design decisions, including the choice between REST, GraphQL, and tRPC, along with response formats, versioning, and pagination.

How can I validate API endpoints?

Run python scripts/api_validator.py <project_path> and pass the project path.

Similar skills

All skills for Backend and APIs →

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor