Spike

From infinition/LaRuche · View interactive version

Spike is an AI agent skill from the GitHub repository infinition/LaRuche. Throwaway experiments to validate feasibility before building.

How to use this skill

Skill file

Spike

A spike answers one question: **can this actually be done here, with these tools, on this

machine?** It answers it by building the smallest thing that would fail if the answer were

no. Then it gets thrown away.

The output of a spike is not code. It is a verdict, with evidence. Code that survives a

spike is a bonus, and usually a mistake.

Reach for this when the user is circling an idea rather than asking for it: "would this

even work", "I want to see if", "before I commit to", "is it possible to", "A or B?".

When not to spike

spike that reproduces a documented limitation cost an hour to learn a sentence. Use

web-research first, always.

A spike here is procrastination with a directory structure.

Write a plan, with the plan skill.

"no", you do not have a question yet. Sharpen it before writing anything.

The shape of a good question

One spike, one falsifiable question, with the failing condition stated up front.

Weak: "try websockets".

Strong: "with 200 concurrent connections, does the server deliver a token within 100ms?

If the median exceeds 250ms, the approach is dead."

Write the threshold BEFORE you build. Deciding what counts as success after seeing the

number is how every approach passes.

Procedure

  1. Split the idea into two to five independent questions, ordered by what would kill

the idea fastest. The riskiest one runs first: if it fails, the rest never need to be

built. Present them as a table and let the user reorder or drop.

| # | Question | Fails if | Risk |

|---|---|---|---|

| 001 | Can we stream tokens over a websocket? | median chunk latency over 250ms | high |

| 002a | Can pdfjs pull tables out of this PDF? | tables arrive as loose text | medium |

| 002b | Can camelot do it? | same | medium |

Two spikes answering the SAME question with different tools share a number and take a

letter. That is what makes them comparable later.

  1. Look before you build. Two or three searches, ten minutes: which libraries exist,

which are maintained, which have already hit this wall. Skip this only for pure logic

with no dependency. State which approach you picked, and why, in one line.

```

web_search(query="python websocket streaming backpressure 2026")

web_fetch(url="https://websockets.readthedocs.io/en/stable/faq/index.html")

shell_exec(command="pip show websockets")

```

web_fetch takes ONE url, as a string.

  1. Build the smallest observable thing. One directory per spike, standalone, under

spikes/NNN-short-name/ at the repository root.

```

shell_exec(command="mkdir -p spikes/001-websocket-streaming")

file_write(path="C:/dev/project/spikes/001-websocket-streaming/main.py", content="...")

shell_exec(command="cd spikes/001-websocket-streaming && python main.py")

```

Pass ABSOLUTE paths to file_write: a relative one resolves against the server's

working directory, not the project.

Prefer, in order: a CLI that prints an observable result, a single HTML page, a

one-endpoint server, a test with a recognisable assertion. The user should be able to

run it and see the answer themselves.

Hardcode everything. No config system, no container, no environment files, no build

pipeline. Every minute spent on scaffolding is a minute not spent on the question.

  1. Push past the happy path. One successful run is not evidence. Feed it the empty

input, the huge input, the malformed one, the concurrent one. A spike that only proves

the demo works has proved nothing about the idea.

  1. Write the verdict into the spike's README.md, and stop.

The verdict

## Verdict: VALIDATED | PARTIAL | INVALIDATED

**Question:** <the one question, as asked>
**Threshold:** <what would have made this a no>
**Measured:** <the number or behaviour actually observed>

### What worked
### What did not
### What surprised us
### What this means for the real build

platform. A PARTIAL with unnamed constraints is a VALIDATED that will hurt later.

cost an afternoon instead of a sprint. Report it as a win, not an apology.

Comparing two approaches

When 002a and 002b answer the same question, build both, then set them side by side on

the dimensions that will actually drive the decision. Not features: consequences.

| | pdfjs (002a) | camelot (002b) |
|---|---|---|
| Tables extracted correctly | 9 of 10 | 6 of 10 |
| Setup | one npm install | pip plus ghostscript |
| 100-page document | 3s | 18s |
| Rotated text | no | yes |

**Pick pdfjs**, unless rotated text turns out to be common, which we have not measured.

Name the winner, and name what would change the answer. A comparison with no

recommendation hands the decision back to the user with more information and no help.

What to spike next

When spikes already exist and the user asks what is missing, walk spikes/ and look for

what nobody has tested:

never run together.

Propose two to four, as falsifiable questions with thresholds, and let the user pick.

Traps

two days to clean up was not a spike, it was a rushed first draft. Say so plainly.

is INVALIDATED, not "close enough with tuning". Tuning is another spike.

what kills the idea, not by what you already know how to build.

repositories want it ignored.

Failure modes

The spike will not run at all, for reasons unrelated to the question. That is

environment, not evidence. Fix it, or record it as blocked, but do not write INVALIDATED:

nothing was tested.

The result is ambiguous. The question was compound. Split it and spike the halves.

Every approach fails the same way. That is a finding about the problem, not about the

tools. Report it: the constraint is probably somewhere you have not looked yet.

The user keeps asking for one more spike. Three spikes on one subject with no decision

means the decision is not technical. Name the choice that is actually open, and hand it

back.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.