Api conventions

From maxyeh0817/Forge · View interactive version

Api conventions is an AI agent skill from the GitHub repository maxyeh0817/Forge. API 設計慣例。定義 RESTful 規範、錯誤格式、分頁策略等。 PM、Architect、Backend Dev、QA Reviewer 應注入此 skill。

How to use this skill

Skill file

API Conventions 規範

RESTful 慣例

狀態碼

錯誤格式

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "人類可讀的錯誤描述",
    "details": [
      { "field": "email", "message": "格式不正確" }
    ]
  }
}

分頁策略

{
  "data": [],
  "pagination": {
    "next_cursor": "abc123",
    "has_more": true
  }
}

版本策略

已知注意事項

(由 QA 迭代時追加)

詳細模式參考:references/patterns.md

歷史教訓:references/lessons.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.