Loading...
Loading...
使用并行子Agent为模块生成多种截然不同的接口设计。适用于用户想要设计API、探索接口选项、对比模块形态或提及‘两次设计法’的场景。
npx skill4agent add mattpocock/skills design-an-interfacePrompt 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