skills/retry-fix/SKILL.md
Investigate recurring bugs and regression cycles before attempting another fix. Use when: (1) User says 'still broken', 'X is blue again', 'this is the second/third/fourth time', 'we tried this before', 'I'm doing this many times', 'the regression is back', 'didn't stick', (2) A bug has been 'fixed' before but came back, (3) User mentions doing the same fix again, (4) Code changed for a feature but the previous fix got overwritten. ALWAYS use this skill before writing any code when a regression is detected — surface the prior-attempts table and get explicit confirmation before proceeding.
npx skillsauth add takazudo/claude-resources retry-fixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.tools
Acceptance gate for a branch produced by an OpenAI Codex CLI run — usually Codex implementing a /big-plan epic that was handed off to it. Codex reports the work 'done' (or the user flags it WIP with corrections); this skill confirms the branch actually fulfils the original spec, fixes what falls short, and routes larger discoveries into GitHub issues. Use when: (1) User says '/finalize-codex-work', 'finalize codex work', 'confirm the codex work', 'check the codex branch', or 'codex said it's done', (2) A branch is the result of a Codex CLI session and needs verification against its spec issue/PR, (3) After assigning a /big-plan epic to Codex CLI. Pass -m/--merge to run /pr-complete -c at the end.
tools
Read a Figma design node directly from a share URL via the Figma REST API — no Dev Mode subscription, no MCP, no desktop app. Renders the node to PNG and dumps its full style/layout JSON so the design can be described, compared, or implemented. Use whenever the user gives a Figma design URL (figma.com/design/... or /file/...) and wants to see, read, inspect, reference, or implement that node — including `/fig-url-refer <url>`. This is the URL-based counterpart to `/figrefer` (which needs a Dev-plan desktop MCP); prefer this one when the input is a URL rather than a live desktop selection.
tools
Sync the user's Claude Code workflow skills into the OpenAI Codex CLI settings repo ($HOME/.codex) as Codex-native ports, fix the Codex .gitignore for new local state, then commit and push. Use when: (1) user says '/dev-codex-sync-settings-from-claude', 'sync codex settings', 'sync claude skills to codex', 'port skills to codex', or 'update codex from claude'; (2) after updating ~/.claude workflow skills (big-plan, x, x-as-pr, x-wt-teams) and Codex should catch up; (3) the $HOME/.codex repo has drifted behind $HOME/.claude. The ports are condensed Codex-native REWRITES, never file copies.
development
Analyze a video file (mov, mp4, webm, etc.) or a YouTube video by extracting still frames with ffmpeg and reading them chronologically with vision — Claude cannot ingest video files directly. Use whenever the user provides a video file path or YouTube URL and wants to know what happens in it: "read this video", "watch this video", "check this recording", "what happens in this .mov/.mp4", analyzing a screen recording of a UI bug, or verifying UI behavior captured in a video, even if they don't name this skill.