SKILL

apidesign

Design stable, hard-to-misuse interfaces - REST/GraphQL endpoints, module boundaries, type contracts, component props, anything where one piece of code talks to another. Use at design time, before implementing the surface. Triggers: 'design this API', 'API contract', 'endpoint design', 'module boundary', 'interface design', 'should this be one endpoint or two', 'how should this API look'.

原文 · 译文尚未补齐

适用对象:设计与内容创作。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • apidesign
  • What this skill is - and isn't
  • Two laws that shape everything
  • Principles
  • REST shape (worked patterns)
  • Typed-contract patterns (TS as the worked example; the ideas are language-agnostic)
  • Red flags
  • Integration points

Design interfaces that make the right thing easy and the wrong thing hard. A contract is a commitment. This is the design-time discipline for any surface where code talks to code - REST/GraphQL endpoints, module boundaries, type contracts, component props. Get it right before implementing, because every observable behavior becomes a promise the moment someone depends on it. Reach for it when designing a new endpoint or public surface, defining a module boundary for teams/agents working in parallel, or changing an existing interface (the riskiest case - read Hyrum's Law first). | Skill | Covers | |---|---| | vd:apidesign (this) | The contract - endpoint/interface shape, error semantics, boundaries, versioning posture | | vd:dbdesign | The storage - schema, indexes, normalization, migration plans | | vd:fastreact | Scaffolding one specific stack (FastAPI + React), not interface principles | | vd:code-review | Judging a contract after it's written (post-hoc) | Storage shape and API shape inform each other but aren't the same decision - design the contract here, the schema in vd:dbdesign. Hyrum's Law. With enough users, every observable behavior of your system will be depended on by so

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
vanducng/skills
源文件
skills/apidesign/SKILL.md
固定版本
c20411b8df8f821988c87689f6aefe142b6f9025
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:vanducng/skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T14:02:27.147Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。