design-an-interface
设计接口契约 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/design-an-interface/。
Skill by BlueprintOS
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/blueprintos-design-an-interface
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/design-an-interface
What's inside
- Skill name
design-an-interface- Description
- 设计接口契约 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/design-an-interface/。
- License
- MIT
- Instructions
- 70 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Design-an-Interface(桥接到 superpowers)
## Contract
- Inputs: design spec, domain constraints, integration points
- Outputs: interface contract document
- Gates: interface is testable and accepted by caller/implementer
- Required disciplines: `stage-gate`
- Next: `/domain-modeling` or `/writing-plans`
> **本仓库不维护此 skill 的内容**。完整纪律请读:
> `<SUPERPOWERS_SKILL_ROOT>/design-an-interface/SKILL.md`
## 何时调
- brainstorming 之后,writing-plans 之前
- 需要把功能拆成可测试的接口
## 衔接点
- **产出**:接口契约文档
- **下一步**:`/domain-modeling` 或 `/writing-plans`
- **门控**:`disciplines/stage-gate` 第 2 层
## 降级方案(superpowers 未装时)
如果 `<SUPERPOWERS_SKILL_ROOT>/design-an-interface/` 不存在,按以下 4 步产出接口契约:
### 1. 列举调用方与实现方
- **调用方**是谁?(controller / 巴枪 / 第三方系统)
- **实现方**是谁?(哪个 service / 模块)
- **触发场景**有哪些?(主动调用 / 事件回调 / 定时)
### 2. 写接口契约表
每个接口必须含 5 列:
| 列 | 含义 | 例子 |
|---|---|---|
| Name | 方法/路径名 | `POST /api/v1/asn/receive` |
| Input | 入参 schema | `{tcAsnId, lpnList[]}` |
| Output | 出参 schema | `{receivedQty, exceptionList[]}` |
| Errors | 错误码字典 | `E_ASN_NOT_FOUND(40401)` |
| Pre/Post | 前置/后置条件 | 前置:ASN 状态=10;后置:状态=30 |
### 3. 验收契约
- **可测试性**:每个契约都对应 1 个测试用例(契约层用)
- **错误码对齐**:与全局 `09-QA审计报告` 的错误码字典一致
- **联调**:与调用方对齐字段名 / 类型,**字段名严禁猜测**(走 `disciplines/no-field-guessing`)
### 4. 输出 + 签字
写到 `docs/superpowers/specs/<topic>-interface.md`,末尾 `## Sign-off` 等用户白名单签字(4 句之一)。
### 最小纪律摘要
- **契约是合同**:写下来就不准改,改了要重新签字
- **错误码全局唯一**:不复用业务字段名当错误码
- **Pre/Post 必须**:只写 Input/Output = 验收没边界
- **联调不靠人脑**:调用方拿到契约文档就能写 Mock
### 安装提示
```bash
npx skills@latest add obra/superpowers-design-an-interface
```From BlueprintOS/analysis-to-delivery, MIT.
More from BlueprintOS/analysis-to-delivery
- 0.563score
analysis-to-delivery
BlueprintOS
通用需求分析到开发设计工作流 — thin Skill router,加载规则与路径按声明。Use when starting any new feature requiring structured analysis-to-delivery workflow.
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
compliance-review
BlueprintOS
合规性评审 — 按 compliance-path.md 引用的合规规则,逐条评估设计。涉及 GSP / HIPAA / SOX / GDPR 等强合规场景时调用。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
domain-modeling
BlueprintOS
梳理领域模型 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/domain-modeling/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
handoff
BlueprintOS
代码交接文档 — 整理本项目已完成的全部设计文档、待办事项、已知风险、后续工作建议。设计阶段收尾、向实施团队或编码 skill 正式交接时调用本 skill 生成 HANDOVER.md。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
verification-before-completion
BlueprintOS
完成任务前验证(铁律)— 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/verification-before-completion/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
writing-plans
BlueprintOS
把 spec 拆成可执行计划(每个 ≤ 2h)— 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/writing-plans/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
tdd
BlueprintOS
测试驱动开发(红绿循环)— 来自 superpowers 体系。本 skill 是桥接层,先写失败测试再写实现,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/tdd/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
qa-audit
BlueprintOS
QA 审计 — 跑全量文档质量检查,按 P0/P1/P2 严重度分级输出审计报告。设计完成、代码交接前调用本 skill,作为进入实施的最后一道硬门控,确保 P0=0 才放行。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
ask-delivery
BlueprintOS
分析到交付的入口 — 根据你的目标(配置/澄清/BRD/PRD/合规/开发/审计/交接)路由到正确的 user-invoked skill。不确定该用哪个 analysis-to-delivery skill 时,从此入口进入。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
executing-plans
BlueprintOS
逐步按计划执行 + 复盘 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/executing-plans/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
brainstorming
BlueprintOS
反复提问澄清需求,产出设计稿 — 来自 superpowers 体系(obra/superpowers)。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/brainstorming/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
using-superpowers
BlueprintOS
开发实施子流程入口 — brainstorming / writing-plans / TDD / executing / verification 等。设计完成、准备进入实施时调用。
SkillCFreshness: C★ 26Claude Code +9
Signals
- Stars
- 26
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Jun 26, 2026 (4 months ago)
- Last release
- Jun 26, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from BlueprintOS
- 0.563score
analysis-to-delivery
BlueprintOS
通用需求分析到开发设计工作流 — thin Skill router,加载规则与路径按声明。Use when starting any new feature requiring structured analysis-to-delivery workflow.
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
ask-delivery
BlueprintOS
分析到交付的入口 — 根据你的目标(配置/澄清/BRD/PRD/合规/开发/审计/交接)路由到正确的 user-invoked skill。不确定该用哪个 analysis-to-delivery skill 时,从此入口进入。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
executing-plans
BlueprintOS
逐步按计划执行 + 复盘 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/executing-plans/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
brainstorming
BlueprintOS
反复提问澄清需求,产出设计稿 — 来自 superpowers 体系(obra/superpowers)。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/brainstorming/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
domain-modeling
BlueprintOS
梳理领域模型 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/domain-modeling/。
SkillCFreshness: C★ 26Claude Code +9 - 0.552score
tdd
BlueprintOS
测试驱动开发(红绿循环)— 来自 superpowers 体系。本 skill 是桥接层,先写失败测试再写实现,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/tdd/。
SkillCFreshness: C★ 26Claude Code +9
Cite this page
design-an-interface skill. Agent Mart. https://agentmart.dev/skills/blueprintos-design-an-interface (last updated 2026-10-24)