api-design-principles
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
Skill by boshi-xixixi
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/boshi-xixixi-api-design-principles
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
api-design-principles- Description
- Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
- License
- MIT
- Instructions
- 530 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "api-design-principles" does not match folder "02_Architect_APIDesign"
- body: 530 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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)
## Interactive Design Process
- **Clarify Requirements**: Before finalizing a design, ensure you understand the domain and constraints.
- **Feedback Loop**: Use the `mcp-feedback-enhanced` tool (e.g., `ask_followup_question`) if available to ask clarifying questions or present design options for review. If not available, use standard chat.
## 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
```
## REST API Design Patterns
### Pattern 1: Resource Collection Design
```python
# Good: Resource-oriented endpoints
GET /api/users # List users (with pagination)
POST /api/users # Create user
GET /api/users/{id} # Get specific user
PUT /api/users/{id} # Replace user
PATCH /api/users/{id} # Update user fields
DELETE /api/users/{id} # Delete user
# Nested resources
GET /api/users/{id}/orders # Get user's orders
POST /api/users/{id}/orders # Create order for user
# Bad: Action-oriented endpoints (avoid)
POST /api/createUser
POST /api/getUserById
POST /api/deleteUser
```
### Pattern 2: Pagination and Filtering
```python
from typing import List, Optional
from pydantic import BaseModel, Field
class PaginationParams(BaseModel):
page: int = Field(1, ge=1, description="Page number")
page_size: int = Field(20, ge=1, le=100, description="Items per page")
class FilterParams(BaseModel):
status: Optional[str] = None
created_after: Optional[str] = None
search: Optional[str] = None
class PaginatedResponse(BaseModel):
items: List[dict]
total: int
page: int
page_size: int
pages: intFrom boshi-xixixi/agenticflow-skills, MIT.
More from boshi-xixixi/agenticflow-skills
- 0.465score
web-design-guidelines
boshi-xixixi
Review UI code for Web Interface Guidelines compliance.
SkillDFreshness: D★ 7Claude Code +9 - 0.461score
gitops-workflow
boshi-xixixi
Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation.
SkillDFreshness: D★ 7Claude Code +9 - 0.460score
UI/UX Intelligence Expert
boshi-xixixi
UI/UX 设计智能库与推荐专家。包含 67 种风格、96 种配色方案、57 种字体搭配、99 条 UX 指南,支持跨技术栈的设计系统生成。
SkillDFreshness: D★ 7Claude Code +9 - 0.460score
Browser Automation Expert
boshi-xixixi
浏览器自动化与网页测试专家。支持基于 MCP 工具(Puppeteer/Playwright)的实时交互,以及基于 Python 脚本的复杂自动化流实现。
SkillDFreshness: D★ 7Claude Code +9 - 0.460score
Tech Stack Selector & Architect
boshi-xixixi
专门用于在项目初期或重大功能迭代时进行技术栈选择与方案评估。支持根据 PRD 自动生成 2-3 套对比方案,涵盖前端、后端、数据库及中间件,并提供优劣势分析(性能、SEO、开发成本、可维护性)和最终选型建议。
SkillDFreshness: D★ 7Claude Code +9 - 0.459score
git-workflow
boshi-xixixi
Git 版本控制与协作专家,涵盖 GitHub/Gitee 平台操作、Conventional Commits 规范及 PR/MR 最佳实践。
SkillDFreshness: D★ 7Claude Code +9 - 0.457score
Flutter Development Expert
boshi-xixixi
专注于构建高性能、可扩展且架构清晰的 Flutter 应用。涵盖整洁架构、高级状态管理和深度性能优化。
SkillDFreshness: D★ 7Claude Code +9 - 0.455score
GitHub Search & Discovery
boshi-xixixi
专用于在 GitHub 上搜索现有的开源库、工具、MCP Server 或最佳实践代码。当你想在开始开发前查找是否有“现成的轮子”或参考案例时使用。
SkillDFreshness: D★ 7Claude Code +9 - 0.455score
Meta Dispatcher & Task Orchestrator
boshi-xixixi
PRD 驱动的任务调度与技能管理专家。接收完整 PRD/需求文档,负责拆解业务、选择技术栈、路由到合适的专业 Skill,并维护从方案到落地的全流程。
SkillDFreshness: D★ 7Claude Code +9 - 0.452score
Backend Python Expert
boshi-xixixi
专注于 Python 后端开发,涵盖 FastAPI、异步编程和性能优化。
SkillDFreshness: D★ 7Claude Code +9 - 0.452score
Gitee Workflow Automation
boshi-xixixi
深度集成 Gitee MCP,实现 Issue 管理、PR 自动化提交、代码审查和版本发布的全流程自动化。
SkillDFreshness: D★ 7Claude Code +9 - 0.449score
Backend Database Expert
boshi-xixixi
专注于数据库设计、SQL 优化和迁移策略。
SkillDFreshness: D★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jan 23, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.544score
api-design-principles
LeoYeAI
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.344score
api-design-principles
Narendarcodes
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillBFreshness: B★ 4Claude Code +9 - 0.333score
api-design-principles
gaelrenzo
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillAFreshness: AClaude Code +9 - 0.300score
api-design-principles
ovachiever
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 55Claude Code +9 - 0.296score
api-design-principles
alexander-kastil
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 19Claude Code +9 - 0.293score
api-design-principles
roadsidedev
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 20Claude Code +9 - 0.288score
api-design-principles
jiho00seo-dev
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 10Claude Code +9 - 0.288score
api-design-principles
Mr-Wolv
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillCFreshness: CClaude Code +9 - 0.286score
api-design-principles
scaleto
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 8Claude Code +9 - 0.280score
api-design-principles
chendongqi
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 130Claude Code +9 - 0.279score
api-design-principles
relvorlabs
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillCFreshness: CClaude Code +9 - 0.279score
api-design-principles
haresh-sai06
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillCFreshness: CClaude Code +9
More from boshi-xixixi
- 0.465score
web-design-guidelines
boshi-xixixi
Review UI code for Web Interface Guidelines compliance.
SkillDFreshness: D★ 7Claude Code +9 - 0.461score
gitops-workflow
boshi-xixixi
Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation.
SkillDFreshness: D★ 7Claude Code +9 - 0.460score
Browser Automation Expert
boshi-xixixi
浏览器自动化与网页测试专家。支持基于 MCP 工具(Puppeteer/Playwright)的实时交互,以及基于 Python 脚本的复杂自动化流实现。
SkillDFreshness: D★ 7Claude Code +9 - 0.460score
UI/UX Intelligence Expert
boshi-xixixi
UI/UX 设计智能库与推荐专家。包含 67 种风格、96 种配色方案、57 种字体搭配、99 条 UX 指南,支持跨技术栈的设计系统生成。
SkillDFreshness: D★ 7Claude Code +9 - 0.460score
Tech Stack Selector & Architect
boshi-xixixi
专门用于在项目初期或重大功能迭代时进行技术栈选择与方案评估。支持根据 PRD 自动生成 2-3 套对比方案,涵盖前端、后端、数据库及中间件,并提供优劣势分析(性能、SEO、开发成本、可维护性)和最终选型建议。
SkillDFreshness: D★ 7Claude Code +9 - 0.459score
git-workflow
boshi-xixixi
Git 版本控制与协作专家,涵盖 GitHub/Gitee 平台操作、Conventional Commits 规范及 PR/MR 最佳实践。
SkillDFreshness: D★ 7Claude Code +9
Cite this page
api-design-principles skill. Agent Mart. https://agentmart.dev/skills/boshi-xixixi-api-design-principles (last updated 2026-10-24)