↓ Skip to main content

Video 8 min

What Is a Spike in Agile? When Your Team Can't Estimate a Story

In agile and Scrum, a spike is a short, time-boxed investigation that answers one specific question, so a story nobody could estimate can be. When one is worth running, technical vs functional spikes, how I structure one, and the template I use.

Narrated in English Subtitles: English, 日本語, 한국어, Tiếng Việt, 简体中文

Transcript

Sprint planning. A story lands on the table, and nobody can point it. The estimates range from a 2 to a 13. Someone says "well, it depends". The discussion goes in circles.

Should we use GraphQL or REST? Can the system actually handle ten thousand concurrent users? Is this third-party library production-ready? You can't estimate your way out of questions like that. You have to go and find out.

That's what a spike is for. A spike is a short, time-boxed investigation. Usually one to three days. It answers one specific question, so the story that was stuck on it can be estimated. You come out of it with findings and a recommendation.

Not code you'd ship. Run one instead of estimating when it's the unknowns, not the size of the work, that stop the team putting a number on a story.

The term comes from Extreme Programming. There, it meant a "very simple program to explore potential solutions". Driving a spike through the problem. The modern version is a short, time-boxed research task whose output is knowledge, not working software. It isn't a user story.

It delivers no customer value on its own. And that's fine. Its job is to answer one specific question, so the real work can be estimated and planned honestly. In practice, they come in two flavours. Technical spikes explore the how: evaluating a framework or library, prototyping an architectural pattern, performance-testing under realistic conditions, or finding out how painful an integration will really be.

Functional spikes explore the what: clarifying an ambiguous story, testing a UI idea with a throwaway prototype, or poking at domain complexity until it makes sense.

Try to estimate work with big unknowns, and you get one of two things. Padded estimates, or missed deadlines. A spike converts "no idea" into actual data. So the team can commit to something with a straight face. It also replaces opinion wars with evidence.

Instead of arguing about which database is better, you spend two days measuring. And the findings feed straight into your decision documents. Mostly, though, it's cheap insurance. A two-day spike that reveals a library's limitations costs far less than discovering the same limitation three sprints into development.

So when do you reach for one? When the team can't confidently estimate a story because of technical unknowns. When several viable options exist, and you need data to pick one. When you're considering a new technology or integration. When performance is both uncertain and critical.

Or when requirements stay ambiguous, no matter how many stakeholder meetings you sit through. But don't use one for work the team already knows how to do. Or as a way to delay a decision you could make with the information you have. And a spike is not a substitute for proper requirements gathering, or user acceptance testing. It answers a question.

It doesn't validate a product.

I start by writing down the question. Not "research caching". But "can a Redis cluster meet our fifty millisecond latency requirement?" Give it explicit scope: what's in, and what's out. Success criteria, so you'll know when you're done.

And a time-box. One to three days. If it needs more than that, the question is too broad. Then investigate. Read the docs and case studies.

Build a minimal proof of concept. Talk to people who've done it before. And measure things with real code. Spike code is disposable by design. When the time-box ends, write up the findings, a recommendation with the reasoning, and any risks you uncovered.

Link the prototype, clearly marked as spike output. Present it to the team. Take questions. Then adjust the backlog: create, refine, or kill stories based on what you learned. It's also worth reflecting on how the spike itself went in your next retrospective.

Teams get noticeably better at spiking with practice.

Here's the template I use. At the top: the spike's title, its time-box, an owner, and the sprint. Then the question to answer, a single, focused one. The background: why the spike is needed, and what triggered the uncertainty. And a list of assumptions.

Next, the scope, split into what's in and what's out. And the success criteria, as a checklist. Last, the findings, completed during the spike. The recommendation, completed after it. And a checklist of follow-up stories.

Before you start, you write down things like "our data model is primarily relational", and "reads will outnumber writes ten to one". That's why the assumptions section earns its place. It lets people challenge your framing before you burn the time-box. And if an assumption turns out to be wrong mid-spike, you've learned something valuable, rather than wasted two days.

Spikes can go wrong. The classic failure is scope creep. The spike quietly becomes an open-ended research project. New questions will appear. When they do, write them down as candidate spikes, rather than expanding the current one.

The second failure is goldplating. The moment you catch yourself adding error handling or tests to spike code, you've crossed from exploration into implementation. Third, skipping the write-up. Six months later, someone will face the same question. And your two days of learning will be gone.

And finally, treating the spike as a commitment to a predetermined answer. A spike that proves an approach won't work has done its job perfectly.

A few habits have worked for me when planning sprints. If a story has real unknowns, spike it this sprint, and schedule the actual work for a later one. Keep it to one or two spikes per sprint. More than that, and focus evaporates. Don't put story points on spikes.

They produce knowledge, not software. So track them by their time-box. And present spike findings during refinement. Before the team estimates the related stories, not after. So the next time a story generates more questions than answers, consider that a spike might be the most useful work in the sprint.

Sometimes the fastest way forward is to stop and learn.

So, the short version. When unknowns are what's blocking the estimate, a spike is the right call. One to three days, on a single question the team can't estimate its way past. What it produces is knowledge rather than software. And the backlog changes to match.

The further reading, from my site and beyond, is linked in the description. The full post, with the spike template to copy, is on jared.lynskey.co.nz.

More videos

Claude Code Worktrees: Running Parallel Agents Without Collisions

Cloudflare 520, nginx 499 and Postgres Stalls: Keeping Webhooks Alive

pytest-testmon: Run Only the Tests Affected by Your Code Change

Replacing My Self-Hosted Expo Update Server with Codemagic Patch