Skip to content
cccskills
FreePublished on GitHubEnglish overview

diagnosing-bugs

Investigate difficult bugs and performance slowdowns by building a repeatable test or script that detects the exact symptom. Reduce the failing case, compare possible causes, and verify the fix with checks that catch the bug if it returns.

OriginalShow the original description

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

mattpocock/skills340,004 stars(GitHub 340,004 + cccskills 0)

Run score Not tested

See how to install

Good for

  • Investigating an error that is hard to reproduce
  • Finding the cause of a performance slowdown
  • Testing an intermittent failure repeatedly
  • Checking that a fix prevents the same bug from returning

Overview

What it does

diagnosing-bugs investigates difficult bugs and performance slowdowns through repeated reproduction and testing. It first builds a test or script that detects the reported symptom, then makes that check quick to repeat. It narrows the failing case, lists three to five possible causes with predictions, and tests them by changing one condition at a time. After a fix, it checks the original reproduction procedure and regression tests, then removes investigation logs and similar temporary material.

When it helps

Use it when an error has no clear cause, a process becomes slower after an update, or an operation produces incorrect results only sometimes. For performance problems, it measures a baseline first and narrows down the change responsible for the slowdown.

Example requests

  • “Create a test that reproduces this error and investigate its cause.”
  • “Measure the process that slowed down after the update and narrow down the cause.”
  • “Repeat the operation that sometimes fails and verify the fix.”

Notes

It needs an environment or input that reproduces the symptom. If it cannot build a reproduction procedure, it stops and requests environment access or material such as redacted logs. Secrets in command output and captured records are redacted.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Document check

AI checked the SKILL.md for operations that need care and for setup requirements. The score comes only from actually running the skill (hands-on test).

SafetyAre sending data, deleting files, and running commands disclosed?
BPartly lackingIt requires secret redaction and permission for production instrumentation but does not specify checking command impacts before execution.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingIt needs a reproduction environment and relevant execution tools but provides no tool installation instructions.

Not counted in the score. Rated by AI (OpenAI Codex) as of Oct 19, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (3)

  • SKILL.md8.5 KB
  • agents/openai.yaml103 B
  • scripts/hitl-loop.template.sh1.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

ask-matt

FreeSummary

Choose which related skill to use and in what order for planning, building, debugging, or maintaining software. It explains routes through the available workflows and helps select the next step based on your situation and project size.

  • Choosing a workflow from idea to implementation
  • Finding the right starting point for bug investigation
  • Planning a build that spans multiple sessions
mattpocock/skills339.5KUpdated Dec 5, 2026

chief-of-staff

FreeSummary

Coordinate subagents, separate agents assigned tasks, to pursue a long-running goal in one session. Maintain dialogue with the user while improving working conditions, shared rules, and access to information needed for future tasks.

  • Coordinating agents around a long-term goal
  • Continuing user dialogue during background work
  • Improving shared rules and working conditions
mattpocock/skills339.8KUpdated Nov 24, 2026

claude-handoff

FreeSummary

Summarize an ongoing conversation and launch a fresh background agent to continue the work. The handoff includes the next focus, references to existing documents, and suggested skills, with sensitive information removed.

  • Continue ongoing work with a fresh agent
  • Hand off work with a specific next focus
  • Organize document references for the next session
mattpocock/skills340KUpdated Oct 30, 2026

code-review

FreeSummary

Review code changes from a chosen Git reference against two separate criteria: documented coding standards and the original requirements. Independent reviewers check each criterion, then present findings separately so convention problems and requirement gaps remain visible.

  • Reviewing changes on a branch or pull request
  • Checking changes since a chosen commit or tag
  • Checking compliance with documented coding standards
mattpocock/skills338.6KUpdated Dec 4, 2026

codebase-design

FreeSummary

Design modules that offer substantial behavior through a small interface, the rules callers must understand. Use shared design terms to simplify usage, contain complexity, choose where implementations can vary, and make behavior easier to test.

  • Simplifying a module's interface
  • Bringing scattered complexity into one module
  • Choosing where implementations can be swapped
mattpocock/skills340KUpdated Oct 30, 2026

domain-modeling

FreeSummary

Clarify a project's business concepts and terminology through concrete scenarios and comparisons with code. Record agreed definitions in a glossary and document significant design trade-offs in ADRs, records explaining why a decision was made.

  • Resolving ambiguous business terms
  • Creating or updating GLOSSARY.md
  • Checking whether code matches business definitions
mattpocock/skills339.5KUpdated Dec 5, 2026

See all skills by mattpocock

Report a problem with this skill