一键导入
api-patterns
API design principles and decision-making(API 设计原则与决策逻辑)。REST vs GraphQL vs tRPC selection(选择)、response formats(响应格式)、versioning(版本控制)、pagination(分页)。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
API design principles and decision-making(API 设计原则与决策逻辑)。REST vs GraphQL vs tRPC selection(选择)、response formats(响应格式)、versioning(版本控制)、pagination(分页)。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
务实的编码标准—— 简洁、直接、不做过度设计、不写无用注释(Pragmatic coding standards)
性能分析原则。测量、分析与优化技术。
App Builder(应用构建编排器)主编排器。根据自然语言请求创建全栈应用,确定项目类型、选择技术栈并协调智能体。
Project scaffolding templates(项目脚手架模板)。用于从零创建新项目。包含 12 个技术栈模板。
Architectural decision-making framework(架构决策框架)。Requirements analysis(需求分析)、trade-off evaluation(权衡评估)、ADR documentation(架构决策记录)。Use when making architecture decisions or analyzing system design(用于架构决策与系统设计分析)。
AI(人工智能)运行模式(BRAINSTORM、IMPLEMENT、DEBUG、REVIEW、TEACH、SHIP、ORCHESTRATE)。用于根据任务类型自动调整 AI 行为逻辑。
| name | api-patterns |
| description | API design principles and decision-making(API 设计原则与决策逻辑)。REST vs GraphQL vs tRPC selection(选择)、response formats(响应格式)、versioning(版本控制)、pagination(分页)。 |
| allowed-tools | Read, Write, Edit, Glob, Grep |
API design principles and decision-making for 2025(2025 年 API 设计原则与决策逻辑)。 Learn to THINK, not copy fixed patterns(学习如何思考,而非机械复制固定模式)。
仅阅读与当前请求相关的文件(Read ONLY files relevant to the request)! 查阅内容地图并定位所需章节(Check the content map, find what you need)。
| File(文件) | Description(描述) | When to Read(阅读时机) |
|---|---|---|
api-style.md | REST vs GraphQL vs tRPC decision tree(决策树) | Choosing API type(选择 API 类型时) |
rest.md | Resource naming, HTTP methods, status codes(资源命名/HTTP 方法/状态码) | Designing REST API(设计 REST API 时) |
response.md | Envelope pattern, error format, pagination(信封模式/错误格式/分页) | Response structure(确定响应结构时) |
graphql.md | Schema design, when to use, security(模式设计/使用场景/安全性) | Considering GraphQL(考虑 GraphQL 时) |
trpc.md | TypeScript monorepo, type safety(TS 单仓/类型安全) | TS fullstack projects(TS 全栈项目) |
versioning.md | URI/Header/Query versioning(URI/请求头/查询参数版本控制) | API evolution planning(规划 API 演进) |
auth.md | JWT, OAuth, Passkey, API Keys(认证方案) | Auth pattern selection(选择认证模式) |
rate-limiting.md | Token bucket, sliding window(令牌桶/滑动窗口) | API protection(API 保护机制) |
documentation.md | OpenAPI/Swagger best practices(文档规范) | Documentation(编写 API 文档) |
security-testing.md | OWASP API Top 10, auth/authz testing(认证/授权测试) | Security audits(安全审计) |
| Need(需求) | Skill(技能) |
|---|---|
| API implementation(API 落地实现) | @[skills/nodejs-best-practices] |
| Data structure(数据库结构设计) | @[skills/database-design] |
| Security details(安全加固细节) | @[skills/vulnerability-scanner] |
设计 API 之前(Before designing an API):
不要(DON'T):
/getUsers(Use verbs in REST endpoints)。推荐做法(DO):
| Script(脚本) | Purpose(用途) | Command(命令) |
|---|---|---|
scripts/api_validator.py | API endpoint validation(API 端点校验) | python scripts/api_validator.py <project_path>(项目路径) |