/spike-workflow:spikefrom spike-workflow
Run a structured Agile/XP spike investigation from start to finish. Use this skill whenever the user provides a spike question or asks Claude to "do a spike on X", "investigate X", "explore whether X is feasible", or "run a spike". Also trigger when the user mentions spike types (technical spike, functional spike, risk spike) or says things like "we need to validate before committing", "time-boxed research", or "proof of concept for X". The skill produces all required spike deliverables: findings document, recommendation, refined estimates, and a functional archived prototype where applicable. Sub-commands: spike run, spike resume, spike rewrite, spike wikigen, spike add-context, spike publish.
Ships in spike-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Executes a full spike investigation and produces all required deliverables in compliance
with the accepted Agile/XP definition of a spike. Each phase writes a checkpoint to
.spike-state.json before advancing so interrupted sessions can resume without loss.
If the invocation begins with one of these keywords, jump directly to that section:
| Invocation | Section |
|---|---|
spike resume <path> | § Resume |
spike run <path> | § Run |
spike rewrite <path> | § Rewrite |
spike wikigen <path> | § Wikigen |
spike add-context <path> <input> | § Add Context |
spike publish <path> | § Publish |
If no sub-command is given, run the full spike workflow starting at Phase 0.
Collect before starting. If any required input is missing, ask before proceeding.
| Input | Required | Description |
|---|---|---|
question | ✅ | The single question the spike must answer |
type | ✅ | technical | functional | risk |
timebox | ✅ | Duration agreed by the team (e.g. "2 days", "1 sprint") |
context | ✅ | Project, stack, and constraints relevant to the investigation |
code_context | Optional | Relevant code snippets: existing implementations, interfaces, state shapes, or patterns the spike must be compatible with |
If type is not given, infer it from the question and confirm with the user.
If timebox is not given, default to 1 day and state this assumption explicitly.
When code_context is provided:
| Deliverable | Destination |
|---|---|
| Findings document | FINDINGS.md in the spike folder (local); published to Azure DevOps Wiki via spike publish |
| Recommendation | Inline in FINDINGS.md — stakeholder paragraph FIRST, technical table second |
| Refined estimate | Inline in FINDINGS.md |
| Prototype | spike-<slug>/ folder — archived, never merged |
| State log | spike-<slug>/.spike-state.json — written at each phase boundary |
The research subagent's model, thinking, and effort level are configurable per spike.
Set them in the Spike Brief (Phase 0) or override them at any time via spike run.
| Setting | Default | Options |
|---|---|---|
model | claude-opus-4-7 | claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5 |
thinking | enabled | enabled, disabled |
thinking_budget_tokens | 8000 | Any integer; raise to 16000 for high-ambiguity questions |
effort | thorough | thorough (≥5 searches, full docs), standard (3–4 searches), quick (1–2 searches) |
These values are stored in .spike-state.json under research_config and applied when the
researcher subagent is spawned. They can be changed between runs without restarting the spike.
See references/researcher-prompt.md for full effort-level definitions.
UNVALIDATED — follow-on required. A bare conditional without this label is a gate failure.Output a Spike Brief and ask the user to confirm before proceeding:
## Spike Brief
- **Question:** <exact question being answered>
- **Type:** technical | functional | risk
- **Timebox:** <agreed duration>
- **Success criteria:** <concrete, testable conditions — how we will know the question is answered>
- **Out of scope:** <explicit exclusions>
- **Research config:** model=<default claude-opus-4-7> · effort=<default thorough> · thinking=<default enabled>
The Research config line is optional — if omitted, the defaults from the Research Configuration
section apply. Write the resolved values to .spike-state.json under research_config on confirmation.
Success criteria must be specific and testable. "Question answered" is not sufficient. Examples of good success criteria:
Write Phase 0 checkpoint to .spike-state.json after confirmation.
Phase 1 is owned by the researcher subagent. Read references/researcher-prompt.md to
understand the researcher's full protocol, output format, and effort levels.
Spawn the researcher subagent with this brief:
You are a technical researcher. Read references/researcher-prompt.md for your full instructions.
Your inputs:
- spike_brief: [paste confirmed Spike Brief from Phase 0]
- reference_file: [paste full content of references/technical.md OR functional.md OR risk.md]
- code_context: [paste code_context if provided, or "None"]
- research_config: [paste spike_state.research_config]
- existing_findings: [paste spike_state.phases["1"].findings if resuming, or "None"]
Return the JSON object specified in references/researcher-prompt.md. Nothing else.
On receiving the researcher's JSON output:
tool_surface.gaps is empty or that each gap is explicitly listed in unresolved.ci_checkpoint_fired: true and ci_findings is null — this is an error. Re-spawn with a note to complete the CI investigation..spike-state.json:
phases["1"].findings ← researcher's findings array (labels only, for state log brevity)phases["1"].dead_ends ← researcher's dead_ends arrayphases["1"].tool_surface ← researcher's tool_surfacephases["1"].ci_checkpoint_fired ← researcher's ci_checkpoint_firedphases["1"].recommendation_draft ← researcher's recommendation_draftphases["1"].unresolved ← researcher's unresolvedphases["1"].status ← "complete".spike-research-raw.json alongside the state log.
This is the source of truth for Phase 3 input assembly.Required when:
Read references/technical.md § Implementation Notes before building.
If building a prototype:
.gitignore).code_context patterns if provided.README.md: what it demonstrates, prerequisites, run instructions, expected output, scope exclusions.// SPIKE PROTOTYPE — ARCHIVED — NOT FOR PRODUCTIONspike-<slug>/./ci folder with a pipeline stub if the CI/CD checkpoint (Phase 1) fired.Phase 2 gate — two checks, both required:
Gate A — Execution:
Gate B — Substantiation:
Validate Recommendation (mandatory if recommendation is conditional):
Identify the condition. Attempt to exercise it empirically within the remaining timebox.
- If exercised and passes: label the recommendation
VALIDATED.- If exercised and fails: update the recommendation accordingly.
- If cannot be exercised (time/environment constraint): label it
UNVALIDATED — follow-on requiredand state the reason. Do NOT issue a bare Conditional GO.
Write Phase 2 checkpoint to .spike-state.json after gates pass.
GitHub publish (pause — wait for user approval): Do not push to GitHub automatically. Write a summary of what will be pushed and ask for approval. Once approved:
git init inside the prototype foldergit branch -M maingit add . && git commit -m "chore: spike prototype — archived, not for production"gh repo create spike-<slug> --private --source=. --remote=origin --push.spike-state.json.This phase uses two specialised subagents in sequence: a writer that drafts FINDINGS.md
from the investigation inputs, and a proofreader that audits the draft against the rules.
The writer self-corrects on all fixable issues. Only unresolved blockers are escalated to the user.
Collect the following from the state log and Phase 1–2 outputs:
| Input | Source |
|---|---|
spike_state | .spike-state.json (full JSON) |
findings_list | phases["1"].findings from state log |
prototype_summary | What passed, what was written-not-executed, prototype path, GitHub URL |
estimate_table | Markdown table of work items, estimates, confidence, assumptions |
parking_lot | parking_lot array from state log |
evidence_list | Each file in evidence/ with a one-sentence description |
Spawn a subagent with the following brief (fill in the bracketed values):
You are a technical writer. Read references/writer-prompt.md for your full instructions,
then read references/example-findings.md as your quality standard.
Your inputs:
- spike_state: [paste full .spike-state.json content]
- findings_list: [paste phases["1"].findings]
- prototype_summary: [paste summary]
- estimate_table: [paste table]
- parking_lot: [paste list]
- evidence_list: [paste list]
Produce a complete FINDINGS.md. Return it as a fenced markdown block followed by
a one-line summary of any [MISSING] placeholders you inserted.
Pass the writer's draft to the proofreader:
You are a technical editor. Read references/proofreader-prompt.md for your full instructions,
then read references/example-findings.md as your quality standard.
Your inputs:
- draft: [paste writer's FINDINGS.md output]
- spike_state: [paste full .spike-state.json content]
- missing_list: [paste writer's missing-placeholder summary]
Run every checklist item. Return a JSON object in the exact format specified in
references/proofreader-prompt.md.
requires_user_input: false: apply the fix directly to the draft.requires_user_input: false issues remain.If unresolved is empty after correction: proceed to Step 3.5.
If unresolved contains only warning items: proceed to Step 3.5; note warnings to the user as non-blocking.
If unresolved contains any blocker item with requires_user_input: true: stop. Present the unresolved blockers to the user with the quoted evidence and ask for clarification before continuing.
Write the corrected FINDINGS.md to the spike folder.
Write Phase 3 checkpoint to .spike-state.json with findings_doc_path.
spike_state.phases["2"].recommendation_validation exactly:
GO ✅ / NO-GO ❌ / CONDITIONAL GO VALIDATED ✅ / CONDITIONAL GO UNVALIDATED ⚠️ — follow-on requiredVerify the success criteria registered in Phase 0 are met. Echo each criterion and its status.
## Spike Closed
- **Question answered:** Yes / Partially / No
- **Success criteria met:** <list each criterion and Yes/Partially/No>
- **Recommendation validation:** VALIDATED | UNVALIDATED — follow-on required | N/A
- **If partially/no:** reason and recommended follow-up spike
- **Prototype archived:** Yes / N/A
- **Next action:** <specific next step for the team>
Write final checkpoint to .spike-state.json with status closed.
Log important unknowns and tangential questions here. These become candidates for future spikes or tickets.
Each phase boundary writes .spike-state.json in the spike folder:
{
"spike_id": "string",
"question": "string",
"type": "technical | functional | risk",
"timebox": "string",
"success_criteria": ["string"],
"status": "phase-0 | phase-1 | phase-2 | phase-3 | phase-4 | closed",
"research_config": {
"model": "claude-opus-4-7 | claude-sonnet-4-6 | claude-haiku-4-5",
"thinking": "enabled | disabled",
"thinking_budget_tokens": 8000,
"effort": "thorough | standard | quick"
},
"phases": {
"0": { "status": "complete | skipped", "brief_confirmed": true, "timestamp": "ISO8601" },
"1": {
"status": "complete | in-progress",
"findings": ["F1 title", "F2 title"],
"dead_ends": [],
"tool_surface": {},
"ci_checkpoint_fired": false,
"recommendation_draft": {},
"unresolved": [],
"timestamp": "ISO8601"
},
"2": { "status": "complete | in-progress | skipped", "flows_run": [], "flows_blocked": [], "recommendation_validation": "VALIDATED | UNVALIDATED | N/A", "timestamp": "ISO8601" },
"3": { "status": "complete | in-progress", "recommendation": "GO | NO-GO | CONDITIONAL-GO-VALIDATED | CONDITIONAL-GO-UNVALIDATED", "timestamp": "ISO8601" }
},
"prototype_path": "string | null",
"ci_stub_path": "string | null",
"findings_doc_path": "string | null",
"github_repo_url": "string | null",
"wiki_page_url": "string | null",
"parking_lot": ["string"]
}
Raw researcher output is stored separately in .spike-research-raw.json (same folder).
This file is the authoritative source for Phase 3 input assembly and for resuming research.
spike resume <path-to-spike-folder>
<path>/.spike-state.json. If it does not exist, offer to initialize a new state log.spike run <path-to-spike-folder> [--model <model>] [--effort <level>] [--thinking <enabled|disabled>] [--thinking-budget <tokens>]
Triggers research and findings generation in one command. If the spike folder already exists, it composes — it does not overwrite. Use this as the primary driver after the Spike Brief is confirmed. Also use it to refresh an existing spike after new information becomes available.
Optional flags (all override research_config in .spike-state.json for this run only):
| Flag | Values | Default |
|---|---|---|
--model | claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5 | from research_config |
--effort | thorough, standard, quick | from research_config |
--thinking | enabled, disabled | from research_config |
--thinking-budget | integer (tokens) | from research_config |
Steps:
1. Resolve state
.spike-state.json does not exist: this is a first run. Require that Phase 0 (Spike Brief) has been confirmed before proceeding. If not confirmed, jump to Phase 0..spike-state.json exists: this is a compose run. Read the existing state. Report what is already known (existing findings, current recommendation, FINDINGS.md status). Ask the user: "Run fresh research and compose with existing findings?" before proceeding.2. Apply flag overrides
Merge any --flag values into a run_config object. This does not permanently modify research_config in the state log — it applies only to this invocation.
3. Spawn researcher subagent
Spawn the researcher per Phase 1 instructions, passing:
existing_findings: the current phases["1"].findings from state log (or "None" on first run).research_config: run_config (flag overrides merged over stored config).The researcher returns its JSON report. On a compose run, it continues the findings sequence
from the last existing label and marks any revised findings with a -revised suffix.
4. Diff and confirm
Before writing anything, present the user with a structured summary:
## Research complete — proposed changes
New findings: F4, F5, F6
Revised findings: F2-revised (updated rationale)
Dead ends added: 2
Parking lot: 3 new items
Recommendation: [old] → [new] (if changed)
Proceed? [y/n]
Do not modify any files until the user confirms.
5. Merge and write state
On confirmation:
.spike-research-raw.json (append, do not replace existing entries)..spike-state.json Phase 1 checkpoint.6. Run writer→proofreader pipeline
Assemble Phase 3 inputs using the merged research (Phase 3 Step 3.1).
If FINDINGS.md already exists:
existing_document (same as spike rewrite).If FINDINGS.md does not exist:
Run the proofreader. Self-correct. Escalate unresolved blockers to user if any.
7. Write output
FINDINGS.md as FINDINGS.md.bak.FINDINGS.md..spike-state.json Phase 3 checkpoint.spike rewrite <path-to-spike-folder>
Rewrites the existing FINDINGS.md as a publication-ready document by running it through
the writer→proofreader pipeline as an editorial pass. Use this when:
spike add-context made structural changes.Difference from wikigen: wikigen regenerates from scratch using the raw state log inputs.
rewrite takes the existing FINDINGS.md as its primary source of truth and improves it — it
does not discard content, it restructures and edits it.
Steps:
.spike-state.json. If it does not exist, create a minimal one from the FINDINGS.md content (extract spike ID, question, and status).FINDINGS.md in full.You are a technical writer. Read references/writer-prompt.md for your full instructions,
then read references/example-findings.md as your quality standard.
You are rewriting an existing FINDINGS.md, not producing one from scratch.
Preserve all factual content. Your job is to restructure, deduplicate, and
rewrite prose to comply with the rules — not to invent or remove facts.
Your inputs:
- existing_document: [paste full current FINDINGS.md content]
- spike_state: [paste .spike-state.json content]
Apply every rule from references/writer-prompt.md to the existing document.
Return the rewritten document as a fenced markdown block followed by a one-line
summary of any [MISSING] placeholders you inserted.
FINDINGS.md.bak, write the new version to FINDINGS.md, report the path and a one-line summary of what changed.findings_doc_path in .spike-state.json.spike wikigen <path-to-spike-folder>
Requires: Phases 1 and 2 complete in .spike-state.json. Fails with an error otherwise.
.spike-state.json and all files in the spike folder.spike add-context <path-to-spike-folder> <url | file-path | inline-text>
.spike-state.json and current FINDINGS.md.spike publish <path-to-spike-folder>
Two operations in sequence. Pause for confirmation between them.
Step 1 — GitHub (prototype):
github_repo_url is already set in .spike-state.json, skip and report.gh repo create spike-<slug> --private --source=. --remote=origin --push
Record URL in .spike-state.json.Step 2 — Azure DevOps Wiki (findings doc):
FINDINGS.md content in the terminal for review.azure-devops MCP server to create or update the wiki page.wiki_page_url in .spike-state.json.references/deliverables.md (opens in a new tab)references/example-findings.md (opens in a new tab)references/functional.md (opens in a new tab)references/proofreader-prompt.md (opens in a new tab)references/researcher-prompt.md (opens in a new tab)references/risk.md (opens in a new tab)references/technical.md (opens in a new tab)references/writer-prompt.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub theocarranza/spike-workflow-marketplace --plugin spike-workflow