Spike

From drn/dots · View interactive version

Spike is an AI agent skill from the GitHub repository drn/dots. Time-boxed technical investigation with structured findings document, tech spike, research spike, proof of concept. Use for time-boxed research, technical spikes, or proof of concept work.

How to use this skill

Skill file

Technical Spike

Structured, time-boxed technical investigation that produces a findings document with clear recommendations.

Arguments

Context

Instructions

Step 1: Define the investigation

Parse $ARGUMENTS to extract:

IF $ARGUMENTS is empty or unclear, ask the user to clarify before proceeding.

Present the investigation scope and ask for confirmation:

**Question:** <parsed question>
**Hypothesis:** <if any>
**Scope:** <files, directories, or external resources to examine>
**Boundaries:** Max 50 files, 4 directory levels deep

Step 2: Investigate

Explore the codebase and relevant resources systematically:

  1. Read existing code — Search for relevant files, functions, and patterns. Use Glob and Grep to find related code.
  2. Trace dependencies — Follow imports, function calls, and data flow.
  3. Check prior art — Look at recent commits and prior spikes for related work.
  4. Prototype if needed — Write small test scripts or code samples to validate assumptions. Keep prototypes minimal.

Track findings as you go. After each round of investigation, assess:

IF 3 consecutive investigation rounds produce no new findings, move to Step 3 with what you have.

Step 3: Write findings document

Create the findings document at .context/spikes/<date>-<slug>.md where <date> is today in YYYY-MM-DD format and <slug> is a short kebab-case summary.

Ensure .context/spikes/ directory exists first (create if needed).

Use this format:

# Spike: <title>

**Date:** <YYYY-MM-DD>
**Question:** <what we investigated>
**Status:** Complete

## Summary

<2-3 sentence executive summary of findings and recommendation>

## Background

<current state, why this investigation was needed, any prior art>

## Findings

### <Finding 1 heading>
<detailed findings with code references, file paths, and evidence>

### <Finding 2 heading>
<more findings>

## Recommendation

<clear recommendation based on findings: proceed, do not proceed, or needs more investigation>

**Confidence:** High / Medium / Low
**Effort estimate:** S / M / L / XL

## Open Questions

- <unresolved question 1>
- <unresolved question 2>

## Next Steps

- [ ] <concrete action item>
- [ ] <concrete action item>

Step 4: Report

Print the findings summary and the file path where the full document was saved. Offer to:

  1. Print the full document
  2. Copy to clipboard
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.