本文へ移動
cccskills
無料GitHub で公開

bug-repro-minimizer

Reduce a failing test case, script, or input file to the smallest version that still reproduces a bug. Use when the user has a large reproduction and asks to minimize, bisect, or isolate it, or says things like "it stops failing when I remove half the file". Do not use when there is no reliable reproduction yet - help build one first, then minimize it.

日本語の概要は準備中です。原文の説明を表示しています。

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Bug Repro Minimizer

Shrink the reproduction until every remaining line is load-bearing. The deliverable is a minimal case plus proof that each removed part was irrelevant.

Prerequisite: a reliable oracle

Before cutting anything, define a command that exits 0 for "bug gone" and non-zero for "bug present" — and run it 3 times on the untouched reproduction. If results vary, the bug is flaky; stop and stabilize the oracle first (fixed seed, pinned versions, retries) or minimization will chase noise.

Reduction loop

  1. Cut coarse to fine. Remove the biggest independent chunk first: a whole file, a function, a config section. Halve, don't nibble — deleting one line at a time on a 2,000-line repro wastes hundreds of runs.
  2. Run the oracle after every single cut. Bug still present → keep the cut. Bug gone → restore the chunk, split it in half, try each half.
  3. Then simplify values. Once no structure can be removed: shrink strings to "x", numbers to 0/1, arrays to one element — reverting any change the oracle rejects.
  4. Stop when stuck. When every remaining element has been tried and each one is required, the case is minimal.

Verify the result

  • Run the oracle 3 times on the final case — still failing every time.
  • Restore any one removed piece at random and confirm the case still fails (guards against accidentally minimizing into a different bug — compare the error message/stack, not just the exit code).

Example

start:  1,842-line SQL dump, importer crashes
cut 1:  drop bottom half            → still crashes (keep)
cut 2:  drop remaining top half     → passes (restore, split)
...
final:  3 lines - a CREATE TABLE and one INSERT with a NUL byte in a varchar

The final report: the 3-line case, the oracle command, and the observation that the NUL byte is the trigger — which is the actual bug report.

Rules

  • Never minimize on the user's only copy; work on a duplicate.
  • Log every cut and its oracle result; the log is the proof of minimality.
  • If two different errors appear during reduction, fork: minimize each separately rather than blending them.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Diagnose failing HTTP API calls - 4xx/5xx responses, timeouts, TLS errors, and auth failures - by isolating the fault layer and producing a minimal reproduction. Use when the user reports an API request failing, pastes an HTTP error response or status code, or asks why a request works in one client but not another. Do not use for designing new APIs or for performance tuning of requests that already succeed.

日本語の概要は準備中です。原文の説明を表示しています。

Krusty84/SKILL.md-Inspector432026年8月1日 更新

Generate or update a CHANGELOG.md from merged commits and pull requests, grouped by change type and written for end users. Use when the user asks to write release notes, update the changelog, or summarize what changed between two versions or tags. Do not use for writing individual commit messages or for API-reference documentation.

日本語の概要は準備中です。原文の説明を表示しています。

Krusty84/SKILL.md-Inspector432026年8月1日 更新

Apply the team style guide to source files - naming conventions, comment style, and file organization. Use when the user asks to align code with the style guide or clean up naming.

日本語の概要は準備中です。原文の説明を表示しています。

Krusty84/SKILL.md-Inspector432026年8月1日 更新

Run the project's configured formatter (prettier, black, gofmt, rustfmt) on changed files and fix formatting-only CI failures. Use when the user asks to format code, fix a lint/format CI step, or normalize whitespace and import order. Do not use for logic changes or refactoring.

日本語の概要は準備中です。原文の説明を表示しています。

Krusty84/SKILL.md-Inspector432026年8月1日 更新

Clean and normalize messy CSV/TSV files - fix malformed rows, inconsistent headers, mixed encodings, stray delimiters, and duplicated records - and deliver a valid, verified file. Use when the user mentions a broken, messy, or malformed CSV, a file a spreadsheet tool refuses to open, or asks to deduplicate or normalize tabular data. Do not use when the deliverable is analysis or a chart rather than a cleaned file, or for Excel-native features like formulas and pivot tables.

日本語の概要は準備中です。原文の説明を表示しています。

Krusty84/SKILL.md-Inspector432026年8月1日 更新

Does data things.

日本語の概要は準備中です。原文の説明を表示しています。

Krusty84/SKILL.md-Inspector432026年8月1日 更新

Krusty84 のスキルをすべて見る

このスキルの問題を報告する