spike
它能做什么
这项技能引导你的 AI 进行小型的、可丢弃的实验,检验某个想法是否可行,或比较两种方案。适合希望在完整开发之前获得答案的人。
适用场景
- ✓你想在正式投入之前检验某个想法是否可行的时候。
- ✓你想通过快速实验比较两种方案的时候。
- ✓你想用快速原型暴露研究无法回答的未知问题的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/spike/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们决定设计方案之前,请先试验一下我们的应用能否在浏览器中进行实时视频通话。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能把想法拆分为若干部分,分别进行研究,制作一个小型实验,并给出结论。实验的目的是回答问题,一旦问题得到解答,实验即可丢弃。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Spike
Use this skill when the user wants to feel out an idea before committing to a real build — validating feasibility, comparing approaches, or surfacing unknowns that no amount of research will answer. Spikes are disposable by design. Throw them away once they've paid their debt.
Load this when the user says things like "let me try this", "I want to see if X works", "spike this out", "before I commit to Y", "quick prototype of Z", "is this even possible?", or "compare A vs B".
When NOT to use this
- The answer is knowable from docs or reading code — just do research, don't build
- The work is production path — use the
planskill instead - The idea is already validated — jump straight to implementation
If the user has the full GSD system installed
If gsd-spike shows up as a sibling skill (installed via npx get-shit-done-cc --hermes), prefer gsd-spike when the user wants the full GSD workflow: persistent .planning/spikes/ state, MANIFEST tracking across sessions, Given/When/Then verdict format, and commit patterns that integrate with the rest of GSD. This skill is the lightweight standalone version for users who don't have (or don't want) the full system.
Core method
Regardless of scale, every spike follows this loop:
decompose → research → build → verdict
↑__________________________________________↓
iterate on findings
1. Decompose
Break the user's idea into 2-5 independent feasibility questions. Each question is one spike. Present them as a table with Given/When/Then framing:
| # | Spike | Validates (Given/When/Then) | Risk |
|---|---|---|---|
| 001 | websocket-streaming | Given a WS connection, when LLM streams tokens, then client receives chunks < 100ms | High |
| 002a | pdf-parse-pdfjs | Given a multi-page PDF, when parsed with pdfjs, then structured text is extractable | Medium |
| 002b | pdf-parse-camelot | Given a multi-page PDF, when parsed with camelot, then structured text is extractable | Medium |
Spike types:
- standard — one approach answering one question
- comparison — same question, different approaches (shared number, letter suffix
a/b/c)
Good spike questions: specific feasibility with observable output. Bad spike questions: too broad, no observable output, or just "read the docs about X".
Order by risk. The spike most likely to kill the idea runs first. No point prototyping the easy parts if the hard part doesn't work.
Skip decomposition only if the user already knows exactly what they want to spike and says so. Then take their idea as a single spike.
2. Align (for multi-spike ideas)
Present the spike table. Ask: "Build all in this order, or adjust?" Let the user drop, reorder, or re-frame before you write any code.
3. Research (per spike, before building)
Spikes are not research-free — you research enough to pick the right approach, then you build. Per spike:
Brief it. 2-3 sentences: what this spike is, why it matters, key risk.
Surface competing approaches if there's real choice:
Approach Tool/Library Pros Cons Status ... ... ... ... maintained / abandoned / beta Pick one. State why. If 2+ are credible, build quick variants within the spike.
Skip research for pure logic with no external dependencies.
Use Hermes tools for the research step:
web_search("python websocket streaming libraries 2025")— find candidatesweb_extract(urls=["https://websockets.readthedocs.io/..."])— read the actual docs (returns markdown)terminal("pip show websockets | grep Version")— check what's installed in the project's venv
For libraries without docs pages, clone and read their README.md / examples/ via read_file. Context7 MCP (if the user has it configured) is also a good source — mcp_*_resolve-library-id then mcp_*_query-docs.
4. Build
One directory per spike. Keep it standalone.
spikes/
├── 001-websocket-streaming/
│ ├── README.md
│ └── main.py
├── 002a-pdf-parse-pdfjs/
│ ├── README.md
│ └── parse.js
└── 002b-pdf-parse-camelot/
├── README.md
└── parse.py
Bias toward something the user can interact with. Spikes fail when the only output is a log line that says "it works." The user wants to feel the spike working. Default choices, in order of preference:
- A runnable CLI that
常见问题
什么时候不应使用它?
技能说明,如果阅读文档或代码就能回答问题,或者用于正式生产工作,则不应使用。
有更完整的版本吗?
有。技能说明如果已安装,gsd-spike 是完整版。
实验的代码会保留吗?
不会。技能说明实验按设计就是可丢弃的,回答问题之后应当丢弃。
详情
热度
- GitHub 星标
- 260k
- 排名
- #624
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。