跳到正文
Skillpedia
通用编程394k · #82

spike

它能做什么

它指导 AI 智能体完成一次简短的可行性测试,从一个明确的问题,到一个小型可运行的原型和结论。它适合希望在投入之前了解某个想法是否值得做的人。

适用场景

  • ✓在开始构建之前,想知道某个想法在技术上是否可行的时候。
  • ✓想用相同的输入并排比较两种方法的时候。
  • ✓想知道一个快速原型能否验证某个方向的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/skills/spike/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/skills/spike/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Question: state the concrete feasibility question.
  2. Research: read enough docs/source to choose credible approach.
  3. Build: create the smallest runnable artifact that validates or invalidates the idea.
  4. Stress: try one edge case or failure mode.
  5. Verdict: VALIDATED, PARTIAL, or INVALIDATED.

Output shape

  • Default workspace: .tmp/openclaw-spikes/<slug> unless user asks for a tracked repo-local path.
  • Repo-local option: spikes/<NNN-slug>/ with README.md and 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能