New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Opinionated REST and GraphQL API design guide with scripts to scaffold and validate API specifications.

skills.sh installs
639
GitHub stars
89
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers resource-oriented REST design, HTTP method and status code usage, naming conventions, pagination, and filtering with sorting
  • Includes GraphQL schema patterns with cursor-based connections, mutation payloads, and nullability guidance, plus URL and header versioning approaches
  • Provides scripts/generate_api.py to scaffold a design document and scripts/validate_api.py to check an existing one
  • Designed for developers creating new APIs or reviewing and improving existing REST or GraphQL endpoints

Install

$ npx -y skills add zhaono1/agent-playbook --skill api-designer -y

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

Files

API Designer

Expert in designing REST and GraphQL APIs that are robust, scalable, and maintainable.

When This Skill Activates

Activates when you:

  • Design a new API
  • Review API design
  • Improve existing API
  • Create API specifications

REST API Design Principles

1. Resource-Oriented Design

Good:

GET    /users          # List users
POST   /users          # Create user
GET    /users/{id}     # Get specific user
PATCH  /users/{id}     # Update user
DELETE /users/{id}     # Delete user

Avoid:

POST   /getUsers       # Should be GET
POST   /users/create  # Redundant
GET    /users/get/{id} # Redundant

2. HTTP Methods

MethodSafeIdempotentPurpose
GET✓✓Read resource
POST✗✗Create resource
PUT✗✓Replace resource
PATCH✗✗Update resource
DELETE✗✓Delete resource

3. Status Codes

Details

Repository
github.com/zhaono1/agent-playbook
Categories
Backend & APIs, Technical Documentation
First seen
May 16, 2026

More from zhaono1/agent-playbook

All 24

Similar to Api Designer

More Backend & APIs