KS
Killer-Skills

api-design — how to use api-design how to use api-design, api-design best practices, api-design vs RESTful API, api-design setup guide, api-design endpoint design, what is api-design, api-design OpenAPI documentation, api-design HTTP verbs and status codes

v1.0.0
GitHub

About this Skill

Perfect for Developer Agents needing structured API endpoint design and refactoring capabilities. api-design is a skill for designing and refactoring API endpoints, incorporating HTTP verbs, status codes, and OpenAPI documentation best practices.

Features

Incorporates HTTP verbs and status codes for effective API design
Supports refactoring of document upload, ask, query, or chat endpoints
Reviews API documentation using OpenAPI, /docs, and /redoc
Helps decide between new endpoint creation and extending existing ones
Applies lessons from the v0→v1 redesign for improved API design

# Core Topics

pkuppens pkuppens
[1]
[0]
Updated: 3/2/2026

Quality Score

Top 5%
44
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add pkuppens/on_prem_rag/api-design

Agent Capability Analysis

The api-design MCP Server by pkuppens is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use api-design, api-design best practices, api-design vs RESTful API.

Ideal Agent Persona

Perfect for Developer Agents needing structured API endpoint design and refactoring capabilities.

Core Value

Empowers agents to design new API endpoints, refactor existing routes, and review API changes using HTTP verbs and status codes, incorporating lessons from the v0→v1 redesign and supporting OpenAPI documentation.

Capabilities Granted for api-design MCP Server

Refactoring document upload endpoints
Reviewing API documentation for consistency
Deciding between new endpoint creation vs extending existing ones

! Prerequisites & Limits

  • Requires understanding of HTTP verbs and status codes
  • Limited to API design and refactoring use cases
Project
SKILL.md
2.1 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

API Design Skill

Use when designing new API endpoints, refactoring existing routes, or reviewing API changes. Incorporates lessons from the v0→v1 redesign.

When to Invoke

  • Adding a new route or router
  • Changing request/response models
  • Refactoring document upload, ask, query, or chat endpoints
  • Reviewing API documentation (OpenAPI, /docs, /redoc)
  • Deciding between new endpoint vs extending existing

Core Rules (from API_DESIGN.md)

1. HTTP Verbs and Status Codes

VerbUseIdempotent
GETRetrieve, list, healthYes
POSTCreate, action (ask, transcribe)No (unless designed)
PUTReplace resourceYes
DELETERemoveYes

Upload semantics (implemented):

  • New: 201 Created, created: true
  • Duplicate (hash match): 200 OK, created: false — no file saved, no processing

2. Resource Naming

  • Plural nouns: /api/documents, not /api/document
  • Hierarchical: /api/documents/{id}/chunks
  • No verbs in URLs; use HTTP method
  • RPC-style actions OK for domain operations: /api/ask, /api/ask/voice

3. New vs Extend

Create new when: different resource, different contract, clear separation. Extend when: same resource, minor variant, additive params.

Example: /api/ask + /api/ask/voice — extend. /api/query vs /api/ask — separate (chunks vs answer).

4. Anti-Patterns (from current codebase)

  • Duplicate endpoints: POST /api/documents/upload and POST /api/v1/upload — consolidate in v1.
  • Overlapping semantics: document list by router — unify contract.
  • Missing OpenAPI metadata: add tags, summary, description, examples.

5. Checklist Before PR

  • Correct HTTP verb
  • Consistent naming
  • OpenAPI tags, description, examples
  • Pydantic models for request/response
  • Unit tests for route
  • API_ENDPOINTS.md updated

References

Related Skills

Looking for an alternative to api-design or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication