
Investigation Notes
- 41 installs
- 8.5k repo stars
- Updated August 5, 2026
- cloudflare/workerd
investigation-notes maintains structured scratch docs during bug hunts.
About
The investigation-notes skill requires a lightweight scratch document as external memory during bug investigations in workerd. Create ~/tmp/investigate-short-name.md during orientation with sections for Error, Current Focus, Hypotheses, Code Read, Tests, Ruled Out, and Next. Rules cap active hypotheses at three with only one TESTING at a time, mandate updating after each test run before other work, and forbid large code dumps by referencing file:line instead. The document never takes priority over writing or running a test. Use when investigations span multiple files, hypotheses, or test iterations.
- Scratch doc prevents re-reading code and losing hypotheses.
- Max three active hypotheses with one TESTING.
- Update notes after every test run before other work.
- Reference file:line instead of pasting code.
- Notify user with investigate file path on creation.
Investigation Notes by the numbers
- 41 all-time installs (skills.sh)
- Ranked #332 of 596 Debugging skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
investigation-notes capabilities & compatibility
- Capabilities
- investigation note template and rules
- Use cases
- debugging
What investigation-notes says it does
maintain a lightweight scratch document as external memory
npx skills add https://github.com/cloudflare/workerd --skill investigation-notesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 41 |
|---|---|
| repo stars | ★ 8.5k |
| Last updated | August 5, 2026 |
| Repository | cloudflare/workerd ↗ |
How do I track a complex bug investigation without losing context?
Maintain structured investigation scratch notes during bug hunts to prevent context loss.
Who is it for?
Engineers on multi-step workerd or systems bug hunts.
Skip if: Skip for one-line fixes or trivial single-file bugs.
When should I use this skill?
Investigation spans multiple hypotheses, files, or test runs.
What you get
Updated investigate markdown with hypotheses, reads, and test results.
Files
Investigation Notes
Overview
During bug investigations, maintain a lightweight scratch document as external memory. This prevents re-reading code you've already analyzed, losing track of which hypothesis you're testing, and silently drifting into rabbit holes.
Core principle: Write it down once, refer to it later. Re-reading your one-line note is faster than re-reading 200 lines of source.
Always keep the document up to date with your current focus, hypotheses, and learnings from code reads and tests.
Always refer to the document before re-reading code or forming a new hypothesis. If the information is there, use it. If it's not sufficient, read the code, then write a better note.
The document never takes priority over writing or running a test. If you're choosing between updating notes and writing a test, write the test. Update the notes after.
The Document
Create ~/tmp/investigate-<short-name>.md during orientation (step 2 of /investigate).
The short name should be descriptive enough to identify the investigation (e.g., investigate-concurrent-write.md, investigate-pipe-zombie-state.md).
Once created, notify the user and provide the file path so they can open it in their editor.
Format
# Investigation: <one-line bug description>
## Error
<assertion/crash message, file:line — written once, never changes>
## Current Focus
<single sentence: what you are doing RIGHT NOW>
## Hypotheses
1. [TESTING] <one sentence> — test: <test name or "not yet written">
2. [REJECTED] <one sentence> — disproved by: <one sentence>
3. [CONFIRMED] <one sentence> — evidence: <test name + result>
## Code Read
- `file:line-range` — <what you learned, short paragraph or bullet>
## Tests
- `file:line` "test name" — <result + what it means, one sentence>
## Ruled Out
- <thing you investigated and eliminated, one sentence why>
## Next
1. <concrete next action>
2. <fallback>Creation
Create the document when:
- You have more than one hypothesis to track
- You've read more than 3 files/functions
- You're about to re-read code you already read
- The investigation is going to span multiple iterations of test-write-run
When created, populate Error, Current Focus, your current hypotheses, and anything you've already learned (backfill "Code Read" and "Tests" from what you've done so far).
Rules
- Always update "Current Focus" before starting any new thread of work
- Always Add a hypothesis for what you're doing
- Always update the document after each significant action:
- After reading a function or file section → add to "Code Read"
- After forming or rejecting a hypothesis → update "Hypotheses"
- After running a test → update BEFORE doing anything else. Record: what test ran, what the
result was, what it means for the active hypothesis. This is non-negotiable — it takes 30 seconds and prevents the pattern of running multiple tests, losing track of what they proved, and falling back to code reading.
- After starting a new thread of work → update "Current Focus"
- Do not dump large amounts of code into the document. Instead, reference it by
file:line. - Do not reorganize or reformat the document - this is a scratchpad, not a report.
- You may include brief, simple diagrams if they help you understand and retain information.
Hypothesis Limits
- Maximum 3 active hypotheses at a time. If you want to add a fourth, reject or merge one first.
- Maximum 1 `[TESTING]` at a time. Commit to one, test it, resolve it, then move on.
- Every hypothesis must have a test or a concrete plan to write one. "Need to investigate
further" is not a valid state — that's analysis paralysis wearing a label.
Valid statuses:
[UNTESTED]— formed but not yet tested. Must become[TESTING]or[REJECTED]soon.[TESTING]— actively being tested. Only one at a time.[CONFIRMED]— test reproduced the bug as predicted.[REJECTED]— test disproved it, or evidence rules it out. Include why.[SUPERSEDED]— replaced by a more specific hypothesis. Reference the replacement.
Related skills
FAQ
What does investigation-notes do?
investigation-notes maintains structured scratch docs during bug hunts.
When should I use investigation-notes?
Investigation spans multiple hypotheses, files, or test runs.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.