·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