spike-prototype

spike-prototype is a cursor rule for Cursor from danielvm-git/bigpowers. It costs 64 tokens per session (753 once invoked), scanned A, original, MIT.

A time-limited experiment for answering an uncertain technical question before committing to a design. Its code is disposable, while the findings are recorded for later use.

In plain words
What is it for?
Use it to test whether a library, API, infrastructure choice, or proposed approach can meet a specific requirement.
Why use it?
It reduces the risk of building production code around an untested assumption, unfamiliar technology, or uncertain approach.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to test whether a library, API, infrastructure choice, or proposed approach can meet a specific requirement.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/danielvm-git/bigpowers/spike-prototype
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.

Clone the repo
git clone --depth 1 https://github.com/danielvm-git/bigpowers

Made for: Cursor.

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-prototype

README.md
[![agentmods](https://agentmods.dev/badge/rules/danielvm-git/bigpowers/spike-prototype/github.svg)](https://agentmods.dev/rules/danielvm-git/bigpowers/spike-prototype)
Your own site
<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/spike-prototype"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/spike-prototype/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-prototype

Your own site · 80×15
<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/spike-prototype"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/spike-prototype.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 753 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.00064 $0.00753
Opus 5.5 $0.00026 $0.00301
Sonnet 5.5 $0.00013 $0.00151
Haiku 4.5 $0.00006 $0.00075

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

Security

Grade A, and why

spike-prototype 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.

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.

.cursor/rules/spike-prototype.mdc · 95 lines

How it starts

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

Spike Prototype

HARD GATE — HARD GATE — Spikes are time-boxed experiments, not shipping code. Results must be throwaway or clearly isolated. Do NOT merge a spike without a plan to integrate it or replace it with a proper implementation.

A spike is a time-boxed experiment to answer a specific question. The code is thrown away. The learning is kept in specs/archive/spikes/SPIKE-<name>.md.

The spike produces learning, not code to ship. If you find yourself cleaning up spike code for production, stop — run plan-work and develop-tdd instead with the insights you gained.

When to spike

  • The technology is unfamiliar (new library, API, infrastructure)
  • The approach is uncertain (multiple solutions exist; none has been tried)
  • Estimates are impossible without seeing how the thing actually behaves
  • A key assumption needs to be validated before committing to a design

Process

1. Define the question

Before writing a single line, state the question the spike must answer:

"Can we [specific thing] using [specific approach] within [constraint]?"

Examples:

  • "Can we stream large files from S3 to the client without buffering in memory?"
  • "Does the Stripe webhook SDK handle signature verification correctly in our edge runtime?"
  • "Can we achieve < 100ms p99 response time for the search endpoint with a naive Postgres full-text search?"

A spike with no question is just unplanned coding. Refuse to start if the question isn't clear.

2. Set a timebox

Agree on a timebox with the user: 30 minutes, 1 hour, 2 hours. When time is up, stop — even if the question isn't fully answered. Partial learning is still learning.

3. Experiment

Write the simplest code that could answer the question. Ignore:

  • Error handling
  • Test coverage
  • Code quality
  • Production concerns

Focus entirely on answering the question.

4. Write specs/archive/spikes/SPIKE-.md

Save the learning to specs/archive/spikes/SPIKE-<name>.md. Create the specs/ directory if it doesn't exist.

Read the full file on GitHub · 95 lines

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 First seen · 95 lines · 64 tokens per session scan A f41274b5bcb3

Subscribe to this mod's changes

spike-prototype is a cursor rule published in the GitHub repository danielvm-git/bigpowers (267 stars, last pushed 27d ago), licensed MIT. It adds 64 tokens to every session and 753 once invoked, about $0.0003 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.