agentleFS
d-o-hubd-o-hub/do-harness/.agents/skills/spike-runner/SKILL.md

spike-runner

Skill1 starsChanged 30 days agoMITView on GitHub

Execute isolated de-risking spikes for uncertain third-party APIs, novel crate integrations, or unknown performance boundaries. Use when a task has high uncertainty, when HTN decomposition flags an ambiguity, or when a minimal prototype must pass with exit code 0 before transitioning to a vertical event slice. Triggers: "spike", "uncertainty", "prototype", "de-risk", "unknown API".

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the minimal prototype: the single uncertain thing, and nothing else.

    line 33
  2. Distinctive:

    Run computational verification against the prototype:

    line 37
  3. Distinctive:

    Remove ephemeral files and scratch code once findings are recorded.

    line 59
  4. Distinctive:

    Do not let spike code leak into production slices.

    line 60
  5. Very specific:

    Update the parent task's state in plans/tasks.json or libSQL.

    line 64
  6. Distinctive:

    If the spike fails 3 consecutive times, halt and record the error signature (fail-fast policy).

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Guides

See references/heuristics.md for distilled heuristics.

Spike Runner Skill

Purpose

Isolate and resolve uncertainty before committing to a vertical slice. A spike is a throwaway experiment that produces knowledge, not production code.

When to Spike

  • Third-party API or crate integration is uncertain.
  • Performance boundaries are unknown.
  • A novel pattern (async, serde, libSQL) needs validation.
  • HTN planning flags Requires Uncertainty Spike?.

Execution Steps

1. Create Spike

  • Generate an isolated scratchpad in tests/spikes/ (or a temporary branch).
  • Write the minimal prototype: the single uncertain thing, and nothing else.
  • Record the spike's hypothesis before writing code.

2. Execute Spike

  • Run computational verification against the prototype:
    cargo check
    cargo test
  • Success = exit code 0. The prototype must compile and run; no LLM self-assessment.

3. Record Findings

  • Record the verified fix as a trace:
    do-harness trace add --session <spike> --command "<probe command>" \
      --error-diff "<failure output>" --resolution-steps "<what worked and the error signatures>"
  • Distill the heuristic into the relevant skill, citing that trace id:
    do-harness distill --skill <skill> --from-trace <id> \
      --pattern "<one-line pattern>" --description "<when it applies>"
    Both steps need evidence: trace add must carry --resolution-steps, and distill also requires an ok sensor beat (do-harness verify --record).

4. Clean Spike

  • Remove ephemeral files and scratch code once findings are recorded.
  • Do not let spike code leak into production slices.

5. Transition to Slice

  • Invoke the Vertical Event Slice method (see .agents/skills/htn-planner) with the resolved approach.
  • Update the parent task's state in plans/tasks.json or libSQL.

Gotchas

  • A spike is not a partial implementation — never advance production code through a spike.
  • If the spike fails 3 consecutive times, halt and record the error signature (fail-fast policy).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.