Back to Skills

discover-api

rand
Updated Today
24 views
29
2
29
View on GitHub
Metaapiautomationdesign

About

The discover-api skill automatically activates when working on backend API development tasks to provide comprehensive API design expertise. It covers REST APIs, GraphQL schemas, authentication, rate limiting, versioning, and error handling. Developers can use it for guidance on API implementation best practices and specialized skills.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/rand/cc-polymath
Git CloneAlternative
git clone https://github.com/rand/cc-polymath.git ~/.claude/skills/discover-api

Copy and paste this command in Claude Code to install this skill

Documentation

API Skills Discovery

Provides automatic access to comprehensive API design, authentication, and implementation skills.

When This Skill Activates

This skill auto-activates when you're working with:

  • REST API design and implementation
  • GraphQL schema design
  • API authentication (JWT, OAuth 2.0, API keys, sessions)
  • API authorization (RBAC, ABAC, permissions)
  • Rate limiting and throttling
  • API versioning strategies
  • Error handling and validation
  • HTTP methods, status codes, endpoints

Available Skills

Quick Reference

The API category contains 7 specialized skills:

  1. rest-api-design - RESTful resource modeling, HTTP semantics, URL conventions
  2. graphql-schema-design - GraphQL types, resolvers, N+1 problem prevention
  3. api-authentication - JWT, OAuth 2.0, API keys, session management
  4. api-authorization - RBAC, ABAC, policy engines, permission systems
  5. api-rate-limiting - Token bucket, sliding window, rate limiting algorithms
  6. api-versioning - API versioning, deprecation, backward compatibility
  7. api-error-handling - RFC 7807 errors, validation, standardized responses

Load Full Category Details

For complete descriptions and workflows:

cat skills/api/INDEX.md

This loads the full API category index with:

  • Detailed skill descriptions
  • Usage triggers for each skill
  • Common workflow combinations
  • Cross-references to related skills

Load Specific Skills

Load individual skills as needed:

# Core API design
cat skills/api/rest-api-design.md
cat skills/api/graphql-schema-design.md

# Security and access control
cat skills/api/api-authentication.md
cat skills/api/api-authorization.md

# Production hardening
cat skills/api/api-rate-limiting.md
cat skills/api/api-error-handling.md
cat skills/api/api-versioning.md

Common Workflows

New REST API

Sequence: REST design → Authentication → Authorization

cat skills/api/rest-api-design.md      # Resource modeling, HTTP methods
cat skills/api/api-authentication.md   # User authentication
cat skills/api/api-authorization.md    # Access control

New GraphQL API

Sequence: GraphQL schema → Authentication → Authorization

cat skills/api/graphql-schema-design.md  # Schema design, resolvers
cat skills/api/api-authentication.md     # User authentication
cat skills/api/api-authorization.md      # Field-level permissions

API Hardening

Sequence: Rate limiting → Error handling → Versioning

cat skills/api/api-rate-limiting.md    # Prevent abuse
cat skills/api/api-error-handling.md   # Standardized errors
cat skills/api/api-versioning.md       # Manage evolution

Complete API Stack

Full implementation from scratch:

# 1. Design phase
cat skills/api/rest-api-design.md

# 2. Security phase
cat skills/api/api-authentication.md
cat skills/api/api-authorization.md
cat skills/api/api-rate-limiting.md

# 3. Production readiness
cat skills/api/api-error-handling.md
cat skills/api/api-versioning.md

Skill Selection Guide

Choose REST API skills when:

  • Building traditional web services
  • Need simple CRUD operations
  • Working with mobile apps or SPAs
  • Require caching and HTTP semantics

Choose GraphQL skills when:

  • Clients need flexible data fetching
  • Reducing over-fetching or under-fetching
  • Building aggregation layers
  • Need strong typing for APIs

Authentication vs Authorization:

  • Authentication (api-authentication.md): Who are you? (Login, JWT, OAuth)
  • Authorization (api-authorization.md): What can you do? (Permissions, RBAC)

Production considerations:

  • Always implement rate limiting for public APIs
  • Use versioning from day one
  • Standardize error responses early

Integration with Other Skills

API skills commonly combine with:

Database skills (discover-database):

  • API endpoints → Database queries
  • Connection pooling for API servers
  • Query optimization for API performance

Testing skills (discover-testing):

  • Integration tests for API endpoints
  • Contract testing for API consumers
  • Load testing for API performance

Frontend skills (discover-frontend):

  • API client libraries
  • Data fetching patterns
  • Error handling in UI

Infrastructure skills (discover-infra, discover-cloud):

  • API deployment strategies
  • Load balancing and scaling
  • API gateways and proxies

Usage Instructions

  1. Auto-activation: This skill loads automatically when Claude Code detects API-related work
  2. Browse skills: Run cat skills/api/INDEX.md for full category overview
  3. Load specific skills: Use bash commands above to load individual skills
  4. Follow workflows: Use recommended sequences for common API patterns
  5. Combine skills: Load multiple skills for comprehensive coverage

Progressive Loading

This gateway skill (~200 lines, ~2K tokens) enables progressive loading:

  • Level 1: Gateway loads automatically (you're here now)
  • Level 2: Load category INDEX.md (~3K tokens) for full overview
  • Level 3: Load specific skills (~2-3K tokens each) as needed

Total context: 2K + 3K + skill(s) = 5-10K tokens vs 25K+ for entire index.

Quick Start Examples

"Design a REST API for a blog":

cat skills/api/rest-api-design.md

"Add OAuth authentication to my API":

cat skills/api/api-authentication.md

"Implement role-based access control":

cat skills/api/api-authorization.md

"Prevent API abuse":

cat skills/api/api-rate-limiting.md

"Design an API versioning strategy":

cat skills/api/api-versioning.md

Next Steps: Run cat skills/api/INDEX.md to see full category details, or load specific skills using the bash commands above.

GitHub Repository

rand/cc-polymath
Path: skills/discover-api
aiclaude-codeskills

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

Algorithmic Art Generation

Meta

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

View skill