什麼是 api-and-interface-design?
在設計 API、模組邊界或任何公共介面時使用。在建立 REST 或 GraphQL 端點、定義模組之間的類型契約或在前端和後端之間建立邊界時使用。 來源:addyosmani/agent-skills。
在設計 API、模組邊界或任何公共介面時使用。在建立 REST 或 GraphQL 端點、定義模組之間的類型契約或在前端和後端之間建立邊界時使用。
透過命令列快速安裝 api-and-interface-design AI 技能到你的開發環境
來源:addyosmani/agent-skills。
Design stable, well-documented interfaces that are hard to misuse. Good interfaces make the right thing easy and the wrong thing hard. This applies to REST APIs, GraphQL schemas, module boundaries, component props, and any surface where one piece of code talks to another.
Define the interface before implementing it. The contract is the spec — implementation follows.
Don't mix patterns. If some endpoints throw, others return null, and others return { error } — the consumer can't predict behavior.
在設計 API、模組邊界或任何公共介面時使用。在建立 REST 或 GraphQL 端點、定義模組之間的類型契約或在前端和後端之間建立邊界時使用。 來源:addyosmani/agent-skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/addyosmani/agent-skills --skill api-and-interface-design在設計 API、模組邊界或任何公共介面時使用。在建立 REST 或 GraphQL 端點、定義模組之間的類型契約或在前端和後端之間建立邊界時使用。 來源:addyosmani/agent-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/addyosmani/agent-skills --skill api-and-interface-design 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/addyosmani/agent-skills