spike
它能做什么
它指导 AI 智能体完成一次简短的可行性测试,从一个明确的问题,到一个小型可运行的原型和结论。它适合希望在投入之前了解某个想法是否值得做的人。
适用场景
- ✓在开始构建之前,想知道某个想法在技术上是否可行的时候。
- ✓想用相同的输入并排比较两种方法的时候。
- ✓想知道一个快速原型能否验证某个方向的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/skills/spike/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在动手开发之前,我们能测试一下我们的应用能否足够快地读取 Google Places 数据吗?请做一个快速原型。”
每周 5 个新技能,1 分钟读完。
工作原理
技能说明问题,研究一个合理的方法,并构建最小的可运行测试。它会尝试一个较难的情况,然后给出“已验证”“部分验证”或“未通过”的结论,并附上证据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Spike
Use when the user wants to test an idea before committing to a real build: "spike this", "quick prototype", "is this possible", "compare A/B", "before we build".
Do not use when reading docs/code can answer the question, or when the user clearly asked for production implementation.
Loop
- Question: state the concrete feasibility question.
- Research: read enough docs/source to choose credible approach.
- Build: create the smallest runnable artifact that validates or invalidates the idea.
- Stress: try one edge case or failure mode.
- Verdict:
VALIDATED,PARTIAL, orINVALIDATED.
Output shape
- Default workspace:
.tmp/openclaw-spikes/<slug>unless user asks for a tracked repo-local path. - Repo-local option:
spikes/<NNN-slug>/withREADME.mdand minimal code. - Prefer runnable CLI, tiny HTML, one endpoint, or focused test.
- Avoid package sprawl, Docker, env files, app frameworks, and production cleanup.
Multi-spike ideas
- Split into 2-5 independent questions.
- Run the riskiest question first.
- For A/B comparisons, keep inputs equal and measure the same dimensions.
- Ask before building all variants if the work is more than a small prototype.
Verdict format
## Verdict: VALIDATED | PARTIAL | INVALIDATED
Question: ...
Evidence: exact command/output/measurement.
What worked: ...
What failed or surprised us: ...
Recommendation: ship / adjust / avoid, with the next production step.
Rules
- An invalidated spike is useful when it rules out a path with evidence.
- Do not merge spike code into production without rewriting it normally.
- If external dependencies are evaluated, check health: recent release/commit, docs, license, install friction.
常见问题
原型会成为正式代码吗?
不会。原型是一次性的,避免额外的软件包、Docker 以及正式的清理工作。
原型放在哪里?
默认放在临时工作区文件夹中,除非你要求放在项目内的某个路径。
结论包含什么内容?
它会列出所用的命令或测量方法、哪些有效、哪些失败,以及建议。
详情
作者的原始描述
Run throwaway prototypes to validate feasibility, compare approaches, and report a verdict.
repo: openclaw/openclaw
热度
- GitHub 星标
- 394k
- 排名
- #82
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。