.claude/skills/fix-last-task/SKILL.md
Analyze and fix issues in the last completed task. Use when user reports errors after task was marked as done, when completion report had high confidence but result has issues, when AI missed obvious problems, or when post-task issues appear.
npx skillsauth add dmitryprg-ai/cursor-develop-autorules fix-last-taskInstall 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.
Analyze failure before fixing. Patching without understanding why you missed the problem guarantees you'll miss it again.
Apply 5 Whys — dig at least 5 levels deep to find why issues were missed. Surface-level answers like "I forgot" are not root causes — keep asking until you reach a systemic reason.
Create TODO list — one item per missed issue, critical ones first.
For each TODO:
[before]% -> [after]% — [reason]Open and read EVERY changed file. Run the Challenge (4 questions) again.
Record improvement to .cursor/data/improvements-backlog.md because patterns repeat without reflection — the same class of mistake will resurface unless codified.
Full DONE block: issues found, fixes applied, root cause, improvement recorded, final confidence.
For detailed analysis and review templates, see templates.md.
development
Scan codebase for technical debt and fix safely with TDD. Use to find oversized files, duplicated code, code smells, and refactor safely. Workflow - SCAN, TEST CASES, REFACTOR, VERIFY. Keywords - techdebt, tech debt, duplicates, code quality audit.
development
Test-Driven Development workflow with strict Red-Green-Refactor cycle. Use when developing features with TDD, writing tests before code, or when test-driven approach is needed. MANDATORY order - test cases table BEFORE code, failing tests BEFORE implementation.
testing
Review work session quality and capture improvements. Use at end of session, after large tasks, after series of errors, or when user asks for session review, retrospective, lessons learned. Records improvements to backlog.
data-ai
Analyze data, investigate datasets, work with CSV/parquet/pandas/dataframes. Use when analyzing data, exploring datasets, running experiments, or when user mentions data, analysis, parquet, csv, pandas, dataframe, statistics, investigation.