npx skills add https://github.com/corygabrielsen/skills --skill spike你不能抽象地比较各种方法。需要逐一实现它们,在真实代码中感受其效果,然后做出决定。这能消除猜测,用实际证据取而代之。
设计讨论常常陷入假设的泥潭。实现每种方法可以消除猜测。你将获得精确的代码行数、真实的依赖项变更、揭示隐藏约束的实际 lint/编译错误,以及阅读代码时的直观感受。
明确识别 N 种方法。来源包括 /synthesize 的输出、/brainstorm 的排名、用户指定的列表或自由描述。
如果用户未指定具体方法,请通过 AskUserQuestion 询问。
对于每种方法,定义一个分支名称(spike/<描述性名称>),说明它实现了哪个(些)选项,并提供一行摘要。在实现前展示计划。
一些头脑风暴选项是互补的——当它们相互增强而非竞争时,可以将它们合并到单个分支中。
You can't compare approaches in the abstract. Implement each one, see how they feel in real code, then decide. This removes speculation and replaces it with evidence.
Design discussions stall on hypotheticals. Implementing each approach takes the guesswork out. You get exact line counts, real dependency changes, actual lint/compile errors that reveal hidden constraints, and the visceral feel of reading the code.
Identify exactly N approaches. Sources include /synthesize output, /brainstorm rankings, a user-specified list, or freeform description.
If the user hasn't specified which approaches, ask via AskUserQuestion.
For each approach, define a branch name (spike/<descriptive-name>), which option(s) it implements, and a one-line summary. Present the plan before implementing.
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
make format lint、cargo clippy、npm run lint 等)。如果不清楚,请询问。按顺序处理各个分支(它们修改相同的文件)。对于每个分支:检出基础分支,创建 spike/<名称>,完整实现。
完整意味着:所有代码变更、更新的导入和调用点、更新的文档注释。没有存根,没有 TODO。实现应该足够完整,如果团队选择此方法,就可以合并。
遇到错误时即时处理。 预期会出现 lint 失败和编译错误——它们揭示了隐藏的约束。修复它们并记录下来以便比较。
在所有分支上投入相等的精力。 如果你花额外时间让某个分支变得优雅,就是在使比较产生偏差。
实现每个分支后,运行验证命令。修复失败(修复过程本身就是数据),重新运行直到通过,然后提交。在进入下一个分支之前,每个分支都必须能够编译并通过 lint 检查。
展示一个并排的比较表格。选择具有区分度的维度——如果所有分支在某个维度上得分相同,则舍弃它。正确的维度来自问题领域,而非通用清单。
不要选择优胜者。 比较表格就是交付物。用户现在掌握了全貌。询问:
"你打算如何处理这些?"
-n,则 N = 4spike/用户有需要比较的方法。实现 N 个 spike 分支。从阶段 1 开始:选择方法。
每周安装量
1
仓库
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Some brainstorm options are complementary — combine them into a single branch when they strengthen each other rather than competing.
make format lint, cargo clippy, npm run lint, etc.). Ask if unclear.Work through branches sequentially (they modify the same files). For each: check out the base branch, create spike/<name>, implement fully.
Fully means: all code changes, updated imports and call sites, updated doc comments. No stubs, no TODOs. The implementation should be complete enough to merge if the team chose this approach.
Handle errors as they come. Lint failures and compile errors are expected — they reveal hidden constraints. Fix them and note them for the comparison.
Equal effort across all branches. If you spend extra time making one branch elegant, you're biasing the comparison.
After implementing each branch, run the verification command. Fix failures (the fix is data), re-run until clean, then commit. Every branch must compile and pass lint before moving to the next.
Present a side-by-side comparison table. Choose dimensions that discriminate — if all branches score the same on a dimension, drop it. The right dimensions come from the problem domain, not a generic checklist.
Don't pick a winner. The comparison table is the deliverable. The user has the full picture now. Ask:
"What do you want to do with these?"
-n not specifiedspike/The user has approaches to compare. Implement N spike branches. Start with Phase 1: Select the approaches.
Weekly Installs
1
Repository
First Seen
1 day ago
Security Audits
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
109,600 周安装