From claude-resources
Surfaces prior fix attempts for recurring bugs from git log and GitHub issues, then gates new fixes behind explicit user confirmation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:retry-fix <problem-slug><problem-slug>The summary Claude sees in its skill listing — used to decide when to auto-load this skill
A recurring bug has been patched before and regressed. This skill excavates all prior attempts, diagnoses the structural pattern that lets it regress, and gates any new code change behind explicit user confirmation.
A recurring bug has been patched before and regressed. This skill excavates all prior attempts, diagnoses the structural pattern that lets it regress, and gates any new code change behind explicit user confirmation.
Argument: $ARGUMENTS — a problem slug (e.g. active-frame-border, zoom-transform, modal-focus).
Run these searches in parallel. Use the slug and obvious keyword variants (kebab → spaces, camelCase, partial words):
# Git commits
git log --all --oneline -i --grep="<slug-keyword-1>"
git log --all --oneline -i --grep="<slug-keyword-2>" # variant if needed
# Closed GitHub issues
gh issue list --state closed --search "<slug keywords>" --limit 30
For each result: record SHA (or issue number), date, and title. Deduplicate overlapping hits.
For each unique commit SHA found:
git show <sha> --stat # what files changed
git show <sha> # full diff (skim for the structural change)
For each closed issue number: read the issue body (use /gh-fetch-issue if it has attached images). Capture:
Look for a project-scoped lessons skill matching the slug:
ls .claude/skills/ | grep "l-lessons"
If .claude/skills/l-lessons-<slug>/SKILL.md exists:
last-updated: frontmatter fieldProduce the following sections in this exact order. Do not skip sections. Do not merge sections.
| # | Date | Commit SHA | Issue | What it changed | What it missed |
|---|---|---|---|---|---|
| 1 | YYYY-MM-DD | abc1234 | #N | One-line description | What was left untouched |
| 2 | … | … | … | … | … |
One row per distinct fix attempt. If a commit and an issue describe the same attempt, merge into one row.
One paragraph per attempt (numbered to match the table). Name the specific assumption that was wrong — not the symptom. Example: "Attempt 1 changed the JS default but not the CSS fallback, assuming CSS consumed the JS value at runtime. In fact the CSS fallback fires before JS runs, so the old palette index was visible until settings loaded."
Answer this question: What is the architectural pattern that lets this bug regress?
Concrete examples of structural diagnoses:
One or two paragraphs. Specific over general.
Bulleted requirements the next attempt MUST include to prevent regression:
Add or remove bullets as appropriate. Tailor to the actual structural diagnosis.
Run
/retro-notes <slug>Capture in
l-lessons-<slug>: [one-sentence summary of what to record — the structural diagnosis above, the guard test requirement, and any traps from the checklist].
After emitting the report, do not propose or write any code. Instead, ask:
"I've surfaced all prior attempts above. Before I propose the next fix, please confirm: 'Yes, I've seen this and want a structurally different next attempt.'"
Wait for explicit confirmation before proceeding. If the user confirms, default to invoking /big-plan (or describe the next attempt as a structured plan) — do not write code directly unless the user explicitly says so.
When the user is ready to close out this session, or after the fix lands:
/retro-notes <slug> to append a dated section to .claude/skills/l-lessons-<slug>/SKILL.md.last-updated: YYYY-MM-DD frontmatter field in the lessons file (using today's date)./retro-notes will scaffold one — confirm the last-updated field is present after it runs./big-plan or a follow-up task.active-frame-border, active frame border, activeFrameBorder, frame border) to avoid missing commits that used a different naming style.Reopened events or a follow-up issue referencing it, include both in the table as separate rows.$HOME not ~ in file paths — ~ is not expanded by non-login shells or Node.js.npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesRecords fixed bugs as structured 'grudges' per repo and queries them before code changes to prevent regression. Works cross-session with file-scoped lookup and anti-pattern signatures.
Fixes GitHub issues using parallel analysis, hypothesis-based root cause analysis, similar issue detection, and prevention recommendations. Use for debugging errors, regressions, bugs, or triaging.