Diagnose a difficult reproducible bug or performance regression through a feedback loop, competing hypotheses, and regression proof.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
Read [local host integration](../.shared/host-integration.md) before applying this imported workflow.
# Diagnosing Bugs
A discipline for hard bugs. Skip phases only when explicitly justified.
When exploring the codebase, read `GLOSSARY.md` (if it exists) to get a clear mental model of the relevant modules, and check ADRs in the area you're touching.
## Redact
This skill has you show commands, outputs and captured artifacts. **Redact every secret first**: write `<REDACTED>` in its place. Build loops against env vars, so the credential stays in the environment rather than in what you show. Captured artifacts carry auth headers: quote only the lines that carry the signal.
If the redacted output is not enough to diagnose the bug, say so and ask the user.
## Phase 1: Build a feedback loop
**This is the skill.** Everything else is mechanical. If you have a **tight** pass/fail signal for the bug (one that goes red on _this_ bug), you will find the cause; bisection, hypothesis-testing, and instrumentation all just consume it. If you don't have one, no amount of staring at code will save you.
Spend disproportionate effort here. **Be aggressive. Be creative. Refuse to give up.**
…
The line at the top of this page pins the label git:20261029.276ae81, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_osyqaftam2b352x2
GET https://markdownregistry.com/api/v1/resolve?ref=dayfinggg/openai-codex-agent-skills/diagnosing-bugs
GET https://markdownregistry.com/api/v1/blob/ca68236e717eef25c229c0e4ce7aed3643f5692153b3e4b33e08a86748371547
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
dayfinggg/openai-codex-agent-skills · codex/skills/api-contract-change/SKILL.md · Implement or modify HTTP API contracts with validation, errors, authorization, and client-compatibility checks. Use for…
dayfinggg/openai-codex-agent-skills · codex/skills/backend-security-change/SKILL.md · Secure changed backend boundaries while preserving access policy and accepted events. Use for authentication…
dayfinggg/openai-codex-agent-skills · codex/skills/ci-failure-diagnosis/SKILL.md · Diagnose failed CI jobs from the exact commit, primary error, environment, and reproduction. Use for failed pipelines…
dayfinggg/openai-codex-agent-skills · codex/skills/code-review/SKILL.md · Review code changes, branches, or PRs against requirements and repository standards. Select general review or…
dayfinggg/openai-codex-agent-skills · codex/skills/codebase-design/SKILL.md · Design or improve a module interface, dependency seam, or test boundary for the requested change without speculative…
dayfinggg/openai-codex-agent-skills · codex/skills/database-migration-rollout/SKILL.md · Plan and validate schema migrations with lock, data, application-compatibility, rollout, and restoration checks. Use…
dayfinggg/openai-codex-agent-skills · codex/skills/database-query-diagnosis/SKILL.md · Diagnose slow SQL, lock waits, or connection exhaustion using actual queries, plans, and workload evidence. Use for…
dayfinggg/openai-codex-agent-skills · codex/skills/deployment-verification/SKILL.md · Prepare or verify an application release with artifact identity, configuration, migrations, readiness, and restoration…
dayfinggg/openai-codex-agent-skills · codex/skills/docker/SKILL.md · Containerize an application, write or optimize Dockerfiles and image builds, or configure and diagnose Docker Compose…
dayfinggg/openai-codex-agent-skills · codex/skills/documentation-writing/SKILL.md · Write and maintain project documentation. Use when creating or updating README files, guides, API references, runbooks…
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
mxyhi/ok-skills · diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
asymmetric-al/core · .agents/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
oyadotai/oya-browser · .agents/skills/diagnosing-bugs/SKILL.md · This skill should be used when diagnosing a reported bug, intermittent failure, stuck operation, or performance…
oyadotai/oya-browser · .claude/skills/diagnosing-bugs/SKILL.md · This skill should be used when diagnosing a reported bug, intermittent failure, stuck operation, or performance…
jellydn/my-ai-tools · skills/diagnosing-bugs/SKILL.md · Build a tight, red-capable feedback loop before diagnosing failures, then minimize, test ranked hypotheses, and lock…
jellydn/my-ai-tools · configs/amp/plugins/my-ai-tools-skills/skills/diagnosing-bugs/SKILL.md · Build a tight, red-capable feedback loop before diagnosing failures, then minimize, test ranked hypotheses, and lock…