Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
wshobson avatar

Api Design Principles

  • 25.3k installs
  • 38.3k repo stars
  • Updated July 22, 2026
  • wshobson/agents

api-design-principles is a skill that guides API design and development following established architectural patterns.

About

API design principles from the Agentic Plugin Marketplace. Provides guidance on designing robust, maintainable APIs. Part of a comprehensive marketplace with 92 plugins and 162 skills for multiple coding harnesses.

  • API design guidance
  • Best practices
  • Multi-harness support

Api Design Principles by the numbers

  • 25,329 all-time installs (skills.sh)
  • +445 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #41 of 4,386 Backend & APIs skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

api-design-principles capabilities & compatibility

Use cases
api development
npx skills add https://github.com/wshobson/agents --skill api-design-principles

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs25.3k
repo stars38.3k
Security audit3 / 3 scanners passed
Last updatedJuly 22, 2026
Repositorywshobson/agents

How do you design consistent REST APIs before coding?

Guide agents in designing and building well-structured APIs following established principles.

Who is it for?

Backend developers designing new REST or HTTP APIs who want a systematic checklist before implementation begins.

Skip if: Developers implementing GraphQL schemas, gRPC services, or already-finished APIs that only need refactoring without design review.

When should I use this skill?

A developer is about to create REST endpoints and needs resource naming, HTTP method, status code, and nesting conventions validated first.

What you get

Completed API Design Checklist covering resource nouns, HTTP method mapping, status code assignments, and nesting depth limits.

  • API design checklist review
  • endpoint convention document

Files

SKILL.mdMarkdownGitHub ↗

API Design Principles

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.

When to Use This Skill

  • Designing new REST or GraphQL APIs
  • Refactoring existing APIs for better usability
  • Establishing API design standards for your team
  • Reviewing API specifications before implementation
  • Migrating between API paradigms (REST to GraphQL, etc.)
  • Creating developer-friendly API documentation
  • Optimizing APIs for specific use cases (mobile, third-party integrations)

Core Concepts

1. RESTful Design Principles

Resource-Oriented Architecture

  • Resources are nouns (users, orders, products), not verbs
  • Use HTTP methods for actions (GET, POST, PUT, PATCH, DELETE)
  • URLs represent resource hierarchies
  • Consistent naming conventions

HTTP Methods Semantics:

  • GET: Retrieve resources (idempotent, safe)
  • POST: Create new resources
  • PUT: Replace entire resource (idempotent)
  • PATCH: Partial resource updates
  • DELETE: Remove resources (idempotent)

2. GraphQL Design Principles

Schema-First Development

  • Types define your domain model
  • Queries for reading data
  • Mutations for modifying data
  • Subscriptions for real-time updates

Query Structure:

  • Clients request exactly what they need
  • Single endpoint, multiple operations
  • Strongly typed schema
  • Introspection built-in

3. API Versioning Strategies

URL Versioning:

/api/v1/users
/api/v2/users

Header Versioning:

Accept: application/vnd.api+json; version=1

Query Parameter Versioning:

/api/users?version=1

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

REST APIs

1. Consistent Naming: Use plural nouns for collections (/users, not /user) 2. Stateless: Each request contains all necessary information 3. Use HTTP Status Codes Correctly: 2xx success, 4xx client errors, 5xx server errors 4. Version Your API: Plan for breaking changes from day one 5. Pagination: Always paginate large collections 6. Rate Limiting: Protect your API with rate limits 7. Documentation: Use OpenAPI/Swagger for interactive docs

GraphQL APIs

1. Schema First: Design schema before writing resolvers 2. Avoid N+1: Use DataLoaders for efficient data fetching 3. Input Validation: Validate at schema and resolver levels 4. Error Handling: Return structured errors in mutation payloads 5. Pagination: Use cursor-based pagination (Relay spec) 6. Deprecation: Use @deprecated directive for gradual migration 7. Monitoring: Track query complexity and execution time

Common Pitfalls

  • Over-fetching/Under-fetching (REST): Fixed in GraphQL but requires DataLoaders
  • Breaking Changes: Version APIs or use deprecation strategies
  • Inconsistent Error Formats: Standardize error responses
  • Missing Rate Limits: APIs without limits are vulnerable to abuse
  • Poor Documentation: Undocumented APIs frustrate developers
  • Ignoring HTTP Semantics: POST for idempotent operations breaks expectations
  • Tight Coupling: API structure shouldn't mirror database schema

Related skills

Forks & variants (1)

Api Design Principles has 1 known copy in the catalog totaling 63 installs. They canonicalize to this original listing.

How it compares

Pick api-design-principles for REST convention checklists before coding; use OpenAPI generator skills when the goal is spec file scaffolding.

FAQ

What HTTP methods does api-design-principles cover?

api-design-principles maps GET for safe retrieval, POST for creation, PUT for full replacement, PATCH for partial updates, and DELETE for removal with correct idempotency expectations.

How deep should REST resource nesting be?

api-design-principles recommends avoiding resource hierarchy deeper than two nesting levels. Resources should use plural noun names with consistent naming across endpoints.

Is Api Design Principles safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.