design-an-interface — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited design-an-interface (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
基于 "A Philosophy of Software Design" 中的 "Design It Twice":你的第一个想法不太可能是最好的。生成多个激进不同的 designs,然后比较。
设计前,理解:
询问:"What does this module need to do? Who will use it?"
使用 Task tool 同时 spawn 3+ sub-agents。每个都必须产出一个激进不同的方法。
Prompt template for each sub-agent:
Design an interface for: [module description]
Requirements: [gathered requirements]
Constraints for this design: [assign a different constraint to each agent]
- Agent 1: "Minimize method count - aim for 1-3 methods max"
- Agent 2: "Maximize flexibility - support many use cases"
- Agent 3: "Optimize for the most common case"
- Agent 4: "Take inspiration from [specific paradigm/library]"
Output format:
1. Interface signature (types/methods)
2. Usage example (how caller uses it)
3. What this design hides internally
4. Trade-offs of this approach展示每个 design,并包含:
按顺序展示 designs,让用户能在比较前吸收每种方法。
展示所有 designs 后,按以下方面比较:
用 prose 讨论 trade-offs,不用 tables。突出 designs 差异最大的地方。
最好的 design 往往结合多个 options 的 insights。询问:
来自 "A Philosophy of Software Design":
Interface simplicity:更少 methods、更简单 params = 更容易学习并正确使用。
General-purpose:能无需 changes 就处理 future use cases。但要警惕 over-generalization。
Implementation efficiency:Interface shape 是否允许 efficient implementation?还是强迫 awkward internals?
Depth:小 interface 隐藏显著 complexity = deep module(好)。大 interface 搭配 thin implementation = shallow module(避免)。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.