·api-and-interface-design
</>

api-and-interface-design

在設計 API、模組邊界或任何公共介面時使用。在建立 REST 或 GraphQL 端點、定義模組之間的類型契約或在前端和後端之間建立邊界時使用。

14安裝·0熱度·@addyosmani

安裝

$npx skills add https://github.com/addyosmani/agent-skills --skill api-and-interface-design

如何安裝 api-and-interface-design

透過命令列快速安裝 api-and-interface-design AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/addyosmani/agent-skills --skill api-and-interface-design
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:addyosmani/agent-skills。

SKILL.md

查看原文

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
分類
</>開發工具
認證
收錄時間
2026-02-24
更新時間
2026-03-10

Browse more skills from addyosmani/agent-skills

快速解答

什麼是 api-and-interface-design?

在設計 API、模組邊界或任何公共介面時使用。在建立 REST 或 GraphQL 端點、定義模組之間的類型契約或在前端和後端之間建立邊界時使用。 來源:addyosmani/agent-skills。

如何安裝 api-and-interface-design?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/addyosmani/agent-skills --skill api-and-interface-design 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/addyosmani/agent-skills