borghei/Claude-Skills / engineering/bug-diagnosis
bug-diagnosis
VerifiedFind the root cause of hard bugs with a fast pass/fail repro, ranked falsifiable hypotheses and bisection. Use when a bug resists quick fixes, a failure is intermittent, or a regression needs tracing to its cause.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.3 KB |
| assets/diagnosis-log-template.md | markdown | 1.9 KB |
| assets/repro-script-template.sh | script | 1.4 KB |
| assets/sample_debug_log.txt | markdown | 1.0 KB |
| assets/sample_diagnosis_log.json | config | 1.6 KB |
| assets/sample_diagnosis_log_passing.json | config | 1.8 KB |
| references/bisection-instrumentation-redaction.md | markdown | 8.7 KB |
| references/reproduction-signals.md | markdown | 7.8 KB |
| scripts/hypothesis_log.pyexecutable | script | 10.2 KB |
| scripts/redact_scan.pyexecutable | script | 8.3 KB |
assets/sample_diagnosis_log.json
View on GitHub{
"bug": "Checkout total off by one cent for carts with three or more discounted items",
"status": "fixed",
"repro": {
"command": "pytest tests/checkout/test_totals.py -k three_discounted",
"runs": 2,
"red_runs": 2,
"runtime_seconds": 95,
"asserts_symptom": false,
"minimised": false
},
"hypotheses": [
{
"id": "H1",
"statement": "Something weird with rounding somewhere in the discount code",
"prediction": "Rounding is probably involved",
"experiment": "",
"prior": 0.5,
"cost_minutes": 20,
"status": "confirmed",
"evidence": ""
},
{
"id": "H2",
"statement": "Per-line discounts are rounded before summing instead of after",
"prediction": "If per-line rounding is the cause, then summing unrounded line discounts makes the total match the reference calculation",
"experiment": "Swap the order of round() and sum() in apply_discounts behind a flag; rerun the loop",
"prior": 0.4,
"cost_minutes": 15,
"status": "open"
}
],
"experiments": [
{
"hypothesis": "H1",
"change": "Switched to decimal arithmetic and upgraded the currency library",
"variables_changed": ["numeric type", "currency library version"],
"result": "inconclusive"
},
{
"hypothesis": "H9",
"change": "Added logging everywhere",
"variables_changed": ["logging"],
"result": "inconclusive"
}
],
"regression_test": {
"path": "tests/checkout/test_totals.py::test_three_discounted_items_total",
"seen_failing": false
},
"instrumentation_tag": "[DBG-7c1e]",
"instrumentation_removed": false
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |