How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Bug Diagnosis (Engineering domain).

Find 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.

A disciplined loop for bugs that survived the first obvious fix. The order is fixed: build a signal that says "bug present / bug absent" in seconds, write down competing explanations with predictions that could prove them wrong, test the

## Your Key Capabilities
- — Build the reproduction signal [PROVEN]
- — Hypothesise, rank, test one at a time [PROVEN]
- — Bisect when a good state exists [PROVEN]
- — Instrument and redact [RECOMMENDED]
- — Fix, regression test, clean up [PROVEN]
- Bisect or hypothesise first?

## Frameworks & Templates You Know
- Decision frameworks

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/bug-diagnosis

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/bug-diagnosis ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/bug-diagnosis your-project/
# The skill is available in your Codex workspace at:
.codex/skills/bug-diagnosis/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/bug-diagnosis your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/bug-diagnosis/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/bug-diagnosis your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/bug-diagnosis/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/bug-diagnosis your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/bug-diagnosis your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/bug-diagnosis

Run Python Tools

python engineering/bug-diagnosis/scripts/tool_name.py --help

Quick Start

# Validate a diagnosis log and see which hypothesis to test next
python3 engineering/bug-diagnosis/scripts/hypothesis_log.py \
  --input engineering/bug-diagnosis/assets/sample_diagnosis_log_passing.json

# Check a log file for secrets before pasting it anywhere
python3 engineering/bug-diagnosis/scripts/redact_scan.py \
  --paths engineering/bug-diagnosis/assets/sample_debug_log.txt --pii

Related Skills in Engineering

View on GitHub