Bug cataloger

From diegopacheco/ai-playground · View interactive version

Bug cataloger is an AI agent skill from the GitHub repository diegopacheco/ai-playground. Find bugs that were encountered and solved in prior Claude Code or Codex sessions for the current project, then generate a self-contained searchable light-theme HTML bug report. Use when the user asks for a bug catalog, solved-problem history, prior-session bug report, recurring failure inventory, o

How to use this skill

Skill file

Bug Cataloger

Build a report from recorded evidence in prior sessions for the current project.

Workflow

  1. Detect the active agent before reading sessions:
  1. Treat the current folder as the project boundary. Record its containing Git repository for context without including sessions from sibling projects.
  2. Review the collection summary. Stop with a clear message when no matching prior sessions exist.
  3. Read the entire normalized transcript in chunks. Search for failure terms, tool failures, corrections, changed files, successful tests, and user confirmations. Inspect surrounding entries for every candidate.
  4. Include a bug only when the sessions contain both the failure and credible evidence that the user resolved it, including changes applied through the agent. Do not infer a solution from an unverified suggestion.
  5. Merge repeated occurrences of the same root cause. Exclude unfinished work, feature requests, environment setup without a defect, and failures unrelated to the current project.
  6. Write /tmp/bug-cataloger-findings.json with this shape:
{
  "agent": "Codex",
  "project": "project-name",
  "bugs": [
    {
      "bug": ["Failure symptom", "Affected behavior", "Root cause"],
      "solution": ["Change applied", "Why it fixed the issue", "Verification observed"]
    }
  ]
}
  1. Keep every bug and solution array between 3 and 7 short lines. Remove secrets, credentials, personal data, raw prompts, hidden reasoning, and unrelated file paths.
  2. Run python3 scripts/render_report.py --input /tmp/bug-cataloger-findings.json --output-dir "$PWD" from this skill directory.
  3. Return the absolute report path and the number of cataloged bugs.

Evidence Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.