bug-cataloger
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, or a BUG to Solution report for the current repository.
- License 许可
- Unlicense
- 最近更新
- 2026-11-07
- Stars
- ★ 21
- Forks
- 9
01 前言 Front Matter
- name
- bug-cataloger
- description
- 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, or a BUG to Solution report for the current repository.
02 资源文件 9
- 参考文档agents/openai.yaml198 B
- 参考文档references/errors.md320 B
- 参考文档references/examples.md216 B
- 参考文档references/how-it-works.md4.2 KB
- 参考文档references/workflow-examples.md2.5 KB
- 脚本scripts/collect_sessions.py5.1 KB
- 脚本scripts/deploy-agent.sh4.6 KB
- 脚本scripts/render_report.py5.5 KB
- 脚本scripts/test-a2a-protocol.py7.5 KB
03 SKILL.md 正文
Bug Cataloger
Build a report from recorded evidence in prior sessions for the current project.
Workflow
- Detect the active agent before reading sessions:
- Use
claudewhen running in Claude Code. - Use
codexwhen running in Codex. - Run
python3 scripts/collect_sessions.py --project "$PWD" --output /tmp/bug-cataloger-sessions.jsonlfrom this skill directory. Add--agent claudeor--agent codexonly if automatic detection fails.
- Use
- Treat the current folder as the project boundary. Record its containing Git repository for context without including sessions from sibling projects.
- Review the collection summary. Stop with a clear message when no matching prior sessions exist.
- 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.
- 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.
- 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.
- Write
/tmp/bug-cataloger-findings.jsonwith 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"]
}
]
}
- Keep every
bugandsolutionarray between 3 and 7 short lines. Remove secrets, credentials, personal data, raw prompts, hidden reasoning, and unrelated file paths. - Run
python3 scripts/render_report.py --input /tmp/bug-cataloger-findings.json --output-dir "$PWD"from this skill directory. - Return the absolute report path and the number of cataloged bugs.
Evidence Rules
- Prefer explicit error output, a concrete code or configuration change, and passing verification.
- Accept user confirmation as verification when no automated check exists.
- Preserve technical specificity without copying long transcript passages.
- Produce an empty report when no solved bugs meet the evidence threshold.
- Never modify the project while cataloging its history.
04 同仓库更多 Skills
word-count
Counts the words, lines and characters of a text or a file.
slugify
Turns a title or a sentence into a URL slug, lowercase words joined by hyphens with accents removed.
json-format
Validates a JSON file and pretty prints it with two space indentation, or reports where the JSON is invalid.
commit-message
Writes a conventional commit message for the staged git changes.
skills-gateway
Gateway and router to a catalog of skills that are not registered directly. Use it before any task a specialized skill could handle, such as text, JSON or git chores. It finds the right skill and loads its instructions.
decision-log
Record, list, show and supersede architecture decisions that persist across sessions in the shared agent infra state store. Use when the user says "record this decision", "log an ADR", "what did we decide about", "list decisions", or "supersede decision".