api-design-principles-zh
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "api-design-principles-zh" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e1e20f381bcfee246cd83031460d5f441ad0f87010cb80573fa0adec75a3d873. Verify the upstream source and version against https://skillhub.cn/skills/org-02qudk26/api-design-principles-zh before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Design principles for REST and GraphQL APIs, presented as key considerations for API design and selection.
Introduction source: third_party · org-02qudk26 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: api-design-principles
displayName: API 设计原则
description: 掌握 REST 与 GraphQL 的 API 设计原则,构建直观、可扩展、易维护且让开发者满意的 API。适用于设计新 API、评审 API 规范,或建立 API 设计标准。
summary: REST 与 GraphQL 的 API 设计原则。
tags: [API, REST, GraphQL, 设计, 最佳实践]
version: 1.0.0API 设计原则
掌握 REST 与 GraphQL 的 API 设计原则,构建直观、可扩展、易维护且让开发者满意、经得起时间考验的 API。
使用本技能的时机
- 设计新的 REST 或 GraphQL API
- 重构现有 API 以提升可用性
- 为团队建立 API 设计标准
- 在实现前评审 API 规范
- 在 API 范式之间迁移(如 REST 到 GraphQL)
- 编写对开发者友好的 API 文档
- 针对特定场景优化 API(移动端、第三方集成)
不使用本技能的时机
- 你只需要某个具体框架的实现指引
- 你做纯基础设施工作、没有 API 契约
- 你无法更改或给公共接口做版本管理
指令
- 定义调用方、使用场景与约束条件。
- 选择 API 风格,并对资源或类型建模。
- 明确错误、版本管理、分页与鉴权策略。
- 用示例校验,并评审一致性。
详见 resources/implementation-playbook.md 获取详细模式、检查清单与模板。
资源
resources/implementation-playbook.md提供详细模式、检查清单与模板。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 为开发者提供 REST 与 GraphQL 的通用设计原则,受众明确,实用性强
- 覆盖 API 设计全流程,从建模到评审,适用场景广泛
Highlights
- 触发词精准覆盖 REST、GraphQL、API 设计等核心概念
- description 位置正确且内容完整,边界清晰
Areas to improve
-
缺少端到端示例 Reported severity: Minor
文档提供了指令步骤,但缺少一个完整的 API 设计示例来展示如何应用这些原则
Recommendation: 建议添加一个从需求到最终 API 设计的完整示例,帮助开发者更好地理解应用流程
Highlights
- 使用时机和指令步骤清晰,结构良好
- frontmatter 完整,标签合理
Areas to improve
-
异常处理建议不足 Reported severity: Minor
文档缺少对常见异常场景(如版本冲突、鉴权失败、分页超限)的具体处理建议
Recommendation: 建议补充常见异常场景的处理策略和最佳实践
Highlights
- 提供了基本的 API 设计策略框架
- 资源引用清晰,指向 implementation-playbook.md
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.