api-design-principles
它能做什么
这个工具帮助你设计和改进 API(软件之间相互通信的接口)的结构,无论是 REST 还是 GraphQL。目标是让 API 更易用、更高效,并且经得起时间考验。
适用场景
- ✓设计一个新的 API 时。
- ✓改进现有 API 时。
- ✓为团队制定 API 设计规范时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-design-principles/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我该如何设计一个 REST API 来高效地管理用户?”
每周 5 个新技能,1 分钟读完。
工作原理
工具会引导你完成几个步骤,比如理解谁会使用这个 API、选择合适的 API 类型、规定错误处理和版本管理的方式,并通过示例来验证整体设计。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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.
Use this skill when
- 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)
Do not use this skill when
- You only need implementation guidance for a specific framework
- You are doing infrastructure-only work without API contracts
- You cannot change or version public interfaces
Instructions
- Define consumers, use cases, and constraints.
- Choose API style and model resources or types.
- Specify errors, versioning, pagination, and auth strategy.
- Validate with examples and review for consistency.
Refer to resources/implementation-playbook.md for detailed patterns, checklists, and templates.
Resources
resources/implementation-playbook.mdfor detailed patterns, checklists, and templates.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
什么是 API?
API 就像餐厅的菜单。它告诉软件可以点什么菜,以及如何点,而不需要了解厨房是怎么运作的。
REST 和 GraphQL 有什么区别?
REST 就像从菜单上点特定的菜,而 GraphQL 则允许你一次性精确请求你想要的所有食材。
我需要会编程才能使用这个工具吗?
你不需要是经验丰富的程序员。这个工具旨在帮助你规划 API 设计,即使你不会直接编写代码也可以使用。
详情
作者的原始描述
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.
热度
- GitHub 星标
- 48k
- 排名
- #3766
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。