mcpbeat Sign in

Nw Spike Methodology Agent Skill

Teaches agents how to run a timeboxed spike - throwaway code that validates one assumption before DESIGN

936 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
588
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/nWave-ai/nWave --skill nw-spike-methodology

The instruction itself

10 sections, as written by the author

Spike Methodology

What a Spike IS

Throwaway code that validates exactly one assumption. Max 1 hour. Binary outcome: works or doesn't work. Code is deleted after validation; only findings persist.

What a Spike IS NOT

| Not This | Why |

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

| Prototype | Prototypes evolve into production code. Spikes are deleted. |

| MVP | MVPs ship to users. Spikes never leave the developer's machine. |

| Walking Skeleton | Skeletons wire end-to-end architecture. Spikes test one mechanism. |

| POC | POCs demonstrate feasibility to stakeholders. Spikes answer a developer question. |

The 4 Questions

Every spike answers exactly these:

  • Does the core mechanism work? Can we parse the output? Call the API? Does the algorithm produce correct results?
  • Does it meet the performance requirement? Is it under the time/memory/throughput budget?
  • What edge cases exist? Empty input, malformed data, missing dependencies, concurrent access.
  • What did we assume wrong? The design said X, but reality is Y. Document the delta.

When to Spike

  • New mechanism never tried before in this codebase
  • Performance requirement that cannot be validated by reasoning alone
  • External integration (API, library, OS feature) with unknown behavior
  • Algorithm where correctness is non-obvious

When to Skip

  • Pure refactoring (mechanism already proven)
  • Bug fix (behavior already understood)
  • Feature estimated at less than 1 day (spike overhead not justified)
  • Mechanism already validated by a prior spike or existing code

Rules

  • Max 1 hour wall clock. If it takes longer, the problem is bigger than expected. Stop and escalate.
  • No tests. No types. No error handling. No ports. No abstractions.
  • Code lives in /tmp/spike_{feature_id}/ or a scratch directory. Never in src/.
  • One file preferred. Two files maximum.
  • Use time.perf_counter() for timing, not time.time().
  • Print results to stdout. No logging frameworks.
  • After validation: delete the code, keep the findings.

Spike Code Structure

#!/usr/bin/env python3
"""SPIKE: {feature} -- {one-line question being validated}

Throwaway code. Not production. Will be deleted after validation.
"""
import time

# 1. Setup (minimal, no frameworks)
# ...

# 2. Core mechanism attempt
start = time.perf_counter()
# ... the thing you're testing ...
elapsed = time.perf_counter() - start

# 3. Print findings
print(f"Mechanism: {'WORKS' if success else 'FAILS'}")
print(f"Timing: {elapsed*1000:.1f}ms (budget: {budget}ms)")
print(f"Edge cases: {edge_cases}")

Findings Output Format

Output goes to docs/feature/{feature-id}/spike/findings.md:

# Spike Findings -- {feature-id}

## Verdict: WORKS / DOESN'T WORK

## Question tested
{the one assumption being validated}

## Core mechanism
- Tested: {what was tested}
- Result: {what happened}

## Timing
- {operation}: {time}ms
- Total: {time}ms (budget: {budget}ms) -- PASS / FAIL

## Edge cases discovered
1. {edge case}: {what happened}
2. {edge case}: {what happened}

## Design implications
- {assumption that was wrong}: {correct reality}
- {approach the spike validated or invalidated}

## Spike code
Deleted. Was at /tmp/spike_{feature_id}/

Escalation

If the spike reveals the problem is fundamentally different from what was assumed:

  • Stop the spike
  • Write findings with verdict "DOESN'T WORK" or "BIGGER THAN EXPECTED"
  • Return to DISCUSS to re-scope the feature
  • The spike findings become input to the revised DISCUSS wave

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Native Skills
by vercel-labs
vendor ×6

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

39k tokens
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Next Best Practices
by vercel-labs
vendor ×4

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

20k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens

How to use it

Copy the folder

Take nwave-ai/nw-spike-methodology from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.