spike-ratchet

spike-ratchet is a skill for Claude Code, Codex from tony/skills. It costs 40 tokens per session (3,457 once invoked), scanned A, original, MIT.

A repeat-and-refine workflow for testing several software design ideas in real code until the design settles. It keeps a record of lessons and decisions while replacing the trial implementation each round.

In plain words
What is it for?
Use it to explore ports to another language, unfamiliar APIs, or subsystems where multiple prototypes are expected before choosing a design.
Why use it?
It helps when the right design is unclear and a first attempt may be misleading. Each round shows which parts of an approach cause problems and which decisions hold up.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Good fit Use it to explore ports to another language, unfamiliar APIs, or subsystems where multiple prototypes are expected before choosing a design.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tony/skills/spike-ratchet
View source ↗ tony/skills
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tony/skills --skill spike-ratchet
Clone the repo
git clone --depth 1 https://github.com/tony/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spike-ratchet

README.md
[![agentmods](https://agentmods.dev/badge/skills/tony/skills/spike-ratchet/github.svg)](https://agentmods.dev/skills/tony/skills/spike-ratchet)
Your own site
<a href="https://agentmods.dev/skills/tony/skills/spike-ratchet"><img src="https://agentmods.dev/badge/skills/tony/skills/spike-ratchet/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spike-ratchet

Your own site · 80×15
<a href="https://agentmods.dev/skills/tony/skills/spike-ratchet"><img src="https://agentmods.dev/badge/skills/tony/skills/spike-ratchet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,457 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.03457
Opus 5.5 $0.00016 $0.01383
Sonnet 5.5 $0.00008 $0.00691
Haiku 4.5 $0.00004 $0.00346

Measured 1mo ago against content hash aa619b8ce86f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spike-ratchet scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/spike.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/spike-ratchet/SKILL.md · 298 lines

How it starts

The opening of the file, as written. The whole thing — 298 lines — stays where its author put it; the contents beside it link to each section on GitHub.

this skill

Convergence harness. the spike-probe skill answers "does this path work?", the spike-bakeoff skill "which path is best?". Neither answers "what is the right design?", which emerges from hitting real code several times and watching what keeps fighting back. The ratchet runs both in rounds until the design stops resisting.

Core thesis

Across rounds the code is disposable and the ledger is the product: each round keeps what it learned (approaches rejected, decisions settled, questions open) and discards its implementation.

Run a ratchet when the shape of the answer is unknown, such as a port to another language. One clear approach is the spike-probe skill; two or three named approaches competing once is the spike-bakeoff skill.

The Iron Rule

EVERY ROUND PRODUCES ZERO COMMITS

The rule and its rationalization table are in references/spike-core.md (Zero commits), regardless of round count. Rounds end in stashes; commits happen only in --replay, after the final plan is approved.

Red flag unique to this skill: "round 3 is basically final, commit it as a checkpoint so round 4 has a base." Round 4 starts from the stash, and the ledger is the base.

The ledger

One markdown file, written outside the working tree. spike.sh creates and prints the directory it lives in; use the printed path literally afterwards. In every command, <scripts> stands for the absolute path of ../../scripts resolved from this skill's directory (the shell runs in the project, not here); write that path literally:

$ <scripts>/spike.sh ledger-dir

The ledger lives at <that path>/<goal-slug>.md. When the git directory refuses the write, the script prints a fresh spike-ledger.XXXXXX directory under ${TMPDIR:-/tmp} instead, and a write into the printed directory that still fails goes to mktemp -d "${TMPDIR:-/tmp}/spike-ledger.XXXXXX". The report's ## Stashes section ends with a ledger bullet: spike/<goal-slug>.md in the git directory, or the full temp path when the fallback was used, since the user must act on that path to keep the ledger. A ledger in the working tree gets swallowed by the round's stash or erased by git clean -xdf; the common dir resolves to one path from every bakeoff worktree.

Read the full file on GitHub · 298 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +79 lines aa619b8ce86f
  2. 2mo ago Changed · -4 lines 52897e078022
  3. 2mo ago First seen · 223 lines · 40 tokens per session scan A 8cdc8997f656

Subscribe to this mod's changes

spike-ratchet is a skill published in the GitHub repository tony/skills (0 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 3,457 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

spike-ratchet compared with skills from other repositories

spike-ratchet next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spike-ratchettony/skillsSkill0todayMITA40Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code