agentleFS
gufrancogufranco/claude-engineering-rules/skills/spike/SKILL.md

spike

Skill3 starsChanged 31 days agoMITView on GitHub

Build a small throwaway artifact that answers exactly one open design question, then move it off the working branch onto an unmerged spike branch. Two routes inside the skill, a runnable terminal program for state, logic, or data-shape questions, and a side-by-side view comparison for presentation questions. Use when the user says "spike this", "build a quick throwaway", "let me play with the model", "try a few visual directions", or wants to de-risk a design choice before committing to it. For production features, use `/plan`; for refactoring an existing module, use `/refactor`; for a single polished design pass, use `/design`.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use competitor-news-monitor, blocked-page-recovery and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • aivrarSkill

    competitor-news-monitor

    Watch named companies for material news; cited digests.

    Also in 6 projects that use this

  • aivrarSkill

    blocked-page-recovery

    Recover blocked/paywalled/WAF'd pages via fallbacks.

    Also in 6 projects that use this

  • john-data-chenSkill

    teams-meeting-pipeline

    Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.

    Also in 8 projects that use this

  • john-data-chenSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 5 projects that use this

  • Tommy-ywSkill

    songwriting-and-ai-music

    Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

    Also in 8 projects that use this

  • mae616Skill

    p5js

    p5.js(クリエイティブコーディング)のProcessing由来「コードでスケッチ」思想を軸に、setup/drawループ・座標系・インタラクション・パフォーマンス最適化を整理する。p5.js、Processing、クリエイティブコーディング、ジェネラティブアート、インタラクティブ表現、ビジュアルプログラミング、Canvas描画、パーティクル、フラクタル、ノイズ表現に関する相談で必ず使うこと。ユーザーが「コードでアート」「動くビジュアル」「インタラクティブな描画」と言った場合にも適用する。

    Also in 8 projects that use this

  • +4 more from aivrar

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the user prompt and the surrounding code, then pick.

    line 24
  2. Very specific:

    View route: Use when the open question is about presentation, layout, or visual style.

    line 27
  3. Distinctive:

    If the route is genuinely ambiguous and the user is not reachable, pick the route that matches the surrounding code, backend code chooses …

    line 29
  4. Distinctive:

    One-command run: Use the project package manager.

    line 34
  5. Distinctive:

    No polish: No tests, no abstractions, no error handling beyond what the spike needs to remain runnable.

    line 36
  6. Distinctive:

    Surface state on every step: After each user action on the state route, or each variant switch on the view route, print or render the full …

    line 37
  7. Distinctive:

    Stop and split the spike when its banner names more than one question.

    line 59
  8. Distinctive:

    Stop and ask the user when the spike starts to need persistence, authentication, or error handling the question does not call for.

    line 60
  9. Distinctive:

    Stop and pick more divergent directions when the user cannot tell the variants apart at a glance.

    line 61
  10. Distinctive:

    Stop and stage file by file when git status shows unrelated uncommitted work next to the spike files.

    line 62
  11. Distinctive:

    Stop and finish rule 6 when a verdict is recorded and git status on the working branch still lists spike files.

    line 63
  12. Very specific:

    If the verdict is hard to reverse, call the Skill tool with plan and the arguments adr new <title>, and link the ADR from the verdict …

    line 72

“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “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

Overview

A spike is throwaway code whose only purpose is to answer one question. The question chooses the shape.

When to Use

  • The user says "spike this", "build a quick throwaway", "let me play with the model", or "try a few visual directions".
  • A design choice is cheaper to settle by running something than by arguing it on paper: a state model with awkward cases, or a screen whose layout is undecided.
  • /interview-me reaches a question that talk cannot settle and routes it here.

For production features, use /plan; for restructuring an existing module, use /refactor; for a single polished design pass, use /design.

Process

Pick a route

Read the user prompt and the surrounding code, then pick.

  • State route. Use when the open question is about a state machine, a data shape, a workflow, or business rules that are hard to reason about on paper. Load STATE-BRANCH.md. Build a tiny interactive terminal program that drives the state through hard cases and prints the full state after each step. The logic lives in a pure module the terminal shell calls, so the validated version lifts into production.
  • View route. Use when the open question is about presentation, layout, or visual style. Load VIEW-BRANCH.md. Generate several radically different variations inside an existing page, against its real data, switchable via a query string and a small dev-only selector.

If the route is genuinely ambiguous and the user is not reachable, pick the route that matches the surrounding code, backend code chooses state, page code chooses view, and write the assumption into the startup banner.

Rules for every spike

  1. Throwaway from minute one, marked as such. Place the spike next to the module or page it informs so context is obvious. Prefix the directory or filename with spike- per project convention. Make the entry point print a banner as its first output, or render it at the top of the view, from a string constant rather than a source comment, since comments are banned per rules/code-style.md: SPIKE: <question being answered>. Kept on spike/<slug> after the verdict.
  2. One-command run. Use the project package manager. The user must launch it without thinking.
  3. State lives in memory. Skip persistence unless persistence is the question. When persistence is the question, hit a scratch database or local file whose name announces it is disposable.
  4. No polish. No tests, no abstractions, no error handling beyond what the spike needs to remain runnable. Speed of learning over elegance.
  5. Surface state on every step. After each user action on the state route, or each variant switch on the view route, print or render the full relevant state.
  6. Capture the verdict, keep the evidence, clear the working branch. Once the question is answered, record the verdict and the question it settled where the work continues: a commit message, an ADR, or the implementation issue. Then move the spike off the working branch onto its own branch, which is never merged:

    git switch -c spike/<slug>
    git add <spike files and hunks only>
    git commit -m "chore(spike): <question>"
    git switch -

    Stage only what the spike added or changed, never unrelated uncommitted work. Switching back removes the spike from the working tree; confirm with git status. Point at spike/<slug> from the verdict so the next reader can re-run the evidence. A spike that stays on the working branch past its verdict has stopped being a spike.

Common Rationalizations

  • "Adding tests now makes the spike reusable": the spike is the test. Tests land when the validated model.<ext> or the winning variant is rebuilt in the real code.
  • "One spike can settle two questions at once": each question needs its own banner and its own verdict. A spike answering two questions produces a verdict nobody can attribute.
  • "Three variants that differ in color are enough": VIEW-BRANCH.md requires variants that differ in hierarchy, interaction, or layout. Pick more divergent directions.
  • "Mock data is quicker than wiring the page": the real data carries the density and edge cases the question is about. Read the page's data.
  • "Leaving the spike on the working branch keeps it handy": spike/<slug> keeps it just as handy and keeps it out of the next commit.

Red Flags

  • Stop and split the spike when its banner names more than one question.
  • Stop and ask the user when the spike starts to need persistence, authentication, or error handling the question does not call for.
  • Stop and pick more divergent directions when the user cannot tell the variants apart at a glance.
  • Stop and stage file by file when git status shows unrelated uncommitted work next to the spike files.
  • Stop and finish rule 6 when a verdict is recorded and git status on the working branch still lists spike files.

Verification

  • Spike launches with one command.
  • Banner names the open question.
  • State or chosen variant is visible after every step.
  • A verdict is captured before the spike leaves the working branch.
  • The spike/<slug> branch holds the spike, and git status on the working branch shows none of its files.
  • If the verdict is hard to reverse, call the Skill tool with plan and the arguments adr new <title>, and link the ADR from the verdict capture.

Related skills

  • /plan plan the real implementation once the answer is known.
  • /plan adr new record a hard-to-reverse decision.
  • /design for a single curated design pass that is not throwaway.

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.