minimal-reproduction

minimal-reproduction is a skill for Claude Code from yeaight7/agent-powerups. It costs 26 tokens per session (640 once invoked), scanned A, original, Apache-2.0.

A method for reducing a complicated bug to a small, standalone script or single test that reliably reproduces it.

In plain words
What is it for?
It helps isolate failures by removing user interfaces and network calls, mocking unnecessary dependencies, and retaining only the code and data that trigger the error.
Why use it?
A smaller reproduction removes unrelated application layers and makes the failure easier to understand and share.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the debugging-diagnostics plugin — 8 skills, 4 commands, 2 agents shipped together

Good fit It helps isolate failures by removing user interfaces and network calls, mocking unnecessary dependencies, and retaining only the code and data that trigger the error.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/minimal-reproduction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yeaight7/agent-powerups --skill minimal-reproduction
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install debugging-diagnostics, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minimal-reproduction

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/minimal-reproduction/github.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/minimal-reproduction)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/minimal-reproduction"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/minimal-reproduction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minimal-reproduction

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/minimal-reproduction"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/minimal-reproduction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00640
Opus 5.5 $0.00010 $0.00256
Sonnet 5.5 $0.00005 $0.00128
Haiku 4.5 $0.00003 $0.00064

Measured 1mo ago against content hash d7bd32e87c12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

minimal-reproduction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/debugging-diagnostics/skills/minimal-reproduction/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

You cannot reliably fix what you cannot reliably reproduce in isolation. Apply the subtraction method until a single file deterministically triggers the exact reported error.

When to Use

  • A bug is tangled in app/UI/network layers and hard to debug in place
  • A failure must be handed to another engineer, team, or upstream project
  • Before bisecting or stress-testing, to get a fast deterministic signal

Inputs

  • The failing code path and the error it produces
  • Sample data that triggers the failure, if any

Workflow — the Subtraction Method

  1. Start with the failure. Take the code path that fails.

  2. Remove the UI/Network. If the bug is reported via a web request, write a script that calls the internal controller directly.

  3. Mock dependencies. If the bug doesn't require the database, mock it. If it doesn't require the third-party API, mock it. Template:

    // repro.js — minimal harness, no framework
    const { failingFunction } = require("./src/module");
    
    const fakeDb = { query: async () => [{ id: 1, value: null }] }; // smallest stub that triggers it
    
    failingFunction(fakeDb, { payloadKey: "trigger-value" })
      .then(() => { console.log("NO REPRO"); process.exit(0); })
      .catch((err) => { console.error("REPRO:", err.message); process.exit(1); });
    

    (Exit 0 on no-repro / non-zero on repro also makes the script directly usable by git bisect run.)

  4. Prune data. If the bug fails on a 10MB JSON payload, binary search the payload down to the exact 2 keys that trigger the failure.

  5. Final output. The result must be a single file — a standalone script or one test case — that relies on ZERO external state, can be run with a single command, and deterministically outputs the exact error reported.

Output

  • One standalone file plus the single command that runs it (e.g., node repro.js)
  • The exact error output, proving the reproduction matches the report

Verification

  • Repro runs with one command and no external state (no DB, network, or special env)
  • Error produced matches the reported error exactly
  • Repro is deterministic across at least 3 consecutive runs
  • Every remaining line is necessary — removing any piece makes the bug disappear

Read the full file on GitHub · 63 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 63 lines · 26 tokens per session scan A d7bd32e87c12

Subscribe to this mod's changes

minimal-reproduction is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 19d ago), licensed Apache-2.0. It adds 26 tokens to every session and 640 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.