design-an-interface

Installation
SKILL.md

Design an Interface

基于 “A Philosophy of Software Design” 中的 “Design It Twice”:你的第一个想法很可能不是最好的。生成多个根本不同的 designs,然后比较。

Workflow

1. Gather Requirements

设计前先理解:

  • 这个 module 解决什么问题?
  • callers 是谁?(other modules、external users、tests)
  • key operations 是什么?
  • 有哪些 constraints?(performance、compatibility、existing patterns)
  • 什么应该隐藏在内部,什么应该暴露?

询问:“这个 module 需要做什么?谁会使用它?”

2. Generate Designs (Parallel Sub-Agents)

Installs
553
GitHub Stars
995
First Seen
May 28, 2026
design-an-interface — vinvcn/mattpocock-skills-zh-cn