pasteurize
FreeRuns bundled scriptsNot checkedDiagnose and fix a hard bug. Build a reliable reproduction, name the cause, add a regression test, and apply the minimum fix. Use when the user reports a bug…
by paulnsorensen★ 20 GitHub starsAbout this skill
/pasteurize
Use this process for hard bugs.
Discipline
Rule: Build a reliable feedback loop before you form one hypothesis.
Stop at each red flag:
- You name a cause before the loop reproduces the failure.
- You accept an unrelated failure as the reproduction.
- You add a test at a mocked seam because the real seam is difficult.
- You make a fourth fix attempt on the same hypothesis list.
- You report a clean worktree without the session-tag sweep.
| Rationalization | Answer |
|---|---|
| "The cause is obvious." | Build the loop. An obvious cause takes one run to confirm. |
| "The user said to skip the loop or the test." | A user request does not waive them. Say so in one line, then run both. |
| "An existing test already covers it." | It did not catch the bug. Add a new test that fails on the old code. |
| "The loop is too slow to write." | A slow loop still beats a wrong fix. |
| "Any failure proves the bug." | Match the expected exit code or output. |
| "The mocked seam is close enough." | Record the missing seam and route to Mold. |
| "One more attempt will work." | Write a new hypothesis list first. |
Follow code-intelligence-routing.md when you explore code.
Resolve the specification store with artifact-path specs.
Read the notes about the failed seam from the resolved directory.
Read harness-portability.md for portable tool use.
Use bundled or repository helpers before ${CLAUDE_SKILL_DIR}.
Treat ${CLAUDE_SKILL_DIR} as an optional host fallback.
Use the handoff blocks as the portable contract.
Remember that slash commands are host renderings, not the control model.
Inputs
<input> is the reported symptom.
Accept a bug report, a stack trace, failing test output, or an artifact path.
Accept an investigation request from Affinage, Cheese, or Cook.
An investigation request uses these fields:
| Field | Type | Required | Meaning |
|---|---|---|---|
source |
string | yes | The requesting skill, such as affinage. |
source_ref |
string | no | The pull request comment or finding identifier. |
symptom |
string | yes | The reported failure in one sentence. |
expect_exit |
integer | no | The exit code that shows the failure. |
expect_output |
string | no | A regular expression for the failure output. |
mode |
string | no | investigate or fix. The default is fix. |
Accept these flags:
--autoruns the phases without the two questions.--open-prreaches Plate through Cook.--hardreaches the final Hard-cheese gate through Cook.
Forward --open-pr and --hard to every /cook and /mold command.
Do not drop a flag that the caller supplied.
Cheese can supply handoff_context.wiki_hits.
Each hit has a page, a line, and a why field.
Read each hit before Phase 1.
Name any hit that changes the hypothesis ranking.
A request with mode: investigate stops after Phase 2.
Return reproduced, not-reproduced, or inconclusive to the source skill.
Do not start Phase 4 for an investigation request.
Phase 1: Build the feedback loop
Build a fast and reliable pass-or-fail feedback loop before you diagnose the bug. This feedback loop controls every later phase.
Read references/feedback-loops.md for the ordered loop options.
Select the first option that reaches the failed seam.
Improve the loop before you continue.
- Reduce setup and unrelated initialization.
- Check the exact symptom.
- Control time, random values, files, and network access.
Non-deterministic bugs
Increase the reproduction rate above 50 percent. Repeat the trigger. Add stress. Narrow the timing window. Add a controlled delay.
No usable loop
Stop when you cannot build a usable loop.
List each method that you tried.
Request access to the reproduction environment.
Alternatively, request a captured artifact or permission for temporary production instrumentation.
Write a status: needs-context: <the access you need> handoff slug.
The orchestrator retries this run after it supplies the access.
Do not form hypotheses without a loop.
Confirm these conditions before Phase 2:
- The loop gives the same result each time.
- A flaky loop reproduces the bug more than 50 percent of the time.
- One command runs the loop without human action.
- The loop checks the exact reported symptom.
- The loop completes in less than 30 seconds.
Aim for a loop that completes in less than five seconds.
Phase 2: Reproduce the bug
Run the loop five times.
python3 skills/pasteurize/scripts/pasteurize.pyz repro-rerun \
--cmd "<repro-command>" --runs 5 \
--expect-output "<expected failure text>" --threshold 0.5 --timeout 30
Always name the expected failure mode.
Use --expect-output for a failure with known output.
Use --expect-exit for a failure with a known exit code.
Confirm that the result co
Install pasteurize in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the pasteurize skill do?
Diagnose and fix a hard bug. Build a reliable reproduction, name the cause, add a regression test, and apply the minimum fix. Use when the user reports a bug, a failure, a flaky test, a performance regression, an error, or a wrong result whose cause is unknown. Use when the user pastes a symptom, a stack trace, or failing test output. Use for "why is X broken", "it stopped working", "it got slower", or "this looks wrong". Do not use for a review-only diff, for feature design, or for a fix whose cause is known.
How do I install the pasteurize skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the pasteurize skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic