跳到正文
cccskills
免费在 GitHub 公开

api-designer

Design RESTful APIs with best practices for consistency and usability

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

API Designer

Expert guidance for designing clean, consistent REST APIs.

REST Principles

  • Use nouns for resources, verbs for actions
  • Follow HTTP method semantics (GET, POST, PUT, DELETE)
  • Return appropriate status codes
  • Support content negotiation

URL Design

  • Use plural nouns for collections (/users, /posts)
  • Nest resources logically (/users/123/posts)
  • Use query parameters for filtering and pagination
  • Keep URLs readable and predictable

Response Format

  • Use consistent JSON structure
  • Include metadata for collections (total, page, etc.)
  • Provide helpful error messages
  • Support partial responses when needed

Versioning

  • Include version in URL or header
  • Maintain backward compatibility
  • Document breaking changes clearly
  • Deprecate gracefully with notice periods

Security

  • Use HTTPS everywhere
  • Implement proper authentication
  • Validate all inputs
  • Rate limit API endpoints
  • Log security-relevant events

Documentation

  • Provide OpenAPI/Swagger specs
  • Include request/response examples
  • Document error codes and meanings
  • Keep docs updated with changes

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Provides coding assistance with best practices and code review

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Systematic debugging approach for identifying and fixing issues

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Git best practices for version control and collaboration

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Convert a codebase into a self-contained HTML portal app for ingestion into AI application systems. Produces a single deployable HTML file with embedded CSS, JS, and data.

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Write thorough tests following TDD and BDD principles

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

查看 athola 的全部技能

报告此技能的问题