Skip to content
Back to skills

Prototyping

ASecurity

Build a throwaway spike to answer one question (does this approach work, which design feels right, how fast is it) and keep it contained so it never leaks into production. How to scope, label, isolate and report a spike. Use when asked to try, spike, explore or prototype an idea.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsgoapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add k6w/baton --skill prototyping --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prototyping?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prototyping
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/k6w-prototyping/badge)](https://www.skillsdirectory.com/skills/k6w-prototyping)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prototyping
description: "Build a throwaway spike to answer one question (does this approach work, which design feels right, how fast is it) and keep it contained so it never leaks into production. How to scope, label, isolate and report a spike. Use when asked to try, spike, explore or prototype an idea."
keywords: [prototype, prototyping, spike, poc, proof of concept, experiment, explore, try, throwaway, sketch, mockup, feasibility]
---
# Prototyping

A prototype is code written to **answer a question**, then thrown away. Its deliverable is the answer,
not the code. Everything about it should make it fast to build and impossible to mistake for the real
thing.

## 1. Write the question first

One sentence, with what would count as an answer:

- "Can the parser stream a 2 GB file in under 1 GB of memory?" (yes/no plus a measurement)
- "Which of these three layouts makes the settings page easiest to scan?" (variants to compare)
- "Does the vendor API return partial results on timeout?" (observed behaviour)

If the lead gave you no question, ask for one or state your reading of it at the top of the spike.
A spike without a question never ends.

## 2. Contain it

- **Location**: a clearly named folder or file, e.g. `spikes/<topic>/` or `<module>.spike.ts`, inside
  your worktree. For UI, a route or page that follows the app's routing convention and is named
  `...-prototype`. Never edit production modules to make a spike work; copy what you need.
- **Label**: the first line of every spike file says so:
  `// PROTOTYPE: <question>. Not production code; delete after <date or task>.`
- **Isolation**: in-memory state by default. If storage is the thing being tested, use a scratch
  database or file named so it's obvious it can be wiped. Servers on `$PORT`, stopped when you're done.
- **One command to run it**: a script or a single file anyone can start without reading the code.

## 3. Build it cheaply

- No tests, abstractions or error handling beyond what makes it run. Hard-code freely.
- Show the state: print or render what changed after each step so the answer is visible.
- For design questions build 2-3 genuinely different variants side by side, switchable with one
  parameter, rather than polishing one.
- Time-box it. If it isn't answering the question by then, report what you learned and stop.

## 4. Report and dispose

Report to the lead:

```
Question: <the question>
Answer: <yes/no/which, with the measurement or observation>
Evidence: <command to rerun it, numbers, screenshots>
Implications: <what the real implementation should do; what surprised you>
Spike: <path / branch>; keep or delete?
```

Then, unless the lead says otherwise:

- The spike does **not** get merged into the main line. Keep it on its own throwaway branch or delete
  it; tell the lead which.
- The decision it settled goes into the real task (the lead plans it with `planning`; the
  implementation follows `lean-code` and `test-driven`, not the spike's shortcuts).
- If any spike code is worth keeping, it is rewritten properly in the real task, not copied over with
  its hard-coded values.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.