.claude/skills/fix/SKILL.md
Systematically fix issues found by /review or reported by the user
npx skillsauth add alamenai/terrae 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.
Systematically fix code issues found by /review or reported by the user.
If coming from a /review, gather the issues from the review output. Otherwise, ask the user what needs fixing.
Categorize each issue by severity:
Fix issues in severity order (critical first). Group related fixes together when they touch the same file to minimize changes.
Present the plan to the user before starting:
## Fix Plan
### Critical (fix first)
1. [Issue] — [File:line] — [What to do]
### High
2. [Issue] — [File:line] — [What to do]
### Medium
3. [Issue] — [File:line] — [What to do]
For each fix:
Follow these principles:
.claude/rules/After all fixes:
npx tsc --noEmit to check for type errors## Fix Summary
### Fixed
- [Issue] — [File] — [What was done]
### Skipped (needs discussion)
- [Issue] — [Reason]
### Remaining
- [Issue] — [Why it wasn't fixed]
Show the user the diff of all changes:
git diff --stat
Ask if they want to proceed with committing or if adjustments are needed.
Add the import at the top of the file, grouped with similar imports.
Add a return function that removes event listeners, cancels animation frames, clears timeouts, and removes map layers/sources/markers.
Store the timer ID in a ref and clear it in the cleanup function.
Store the RAF ID and cancel it with cancelAnimationFrame in the cleanup function.
any with Proper TypesIdentify what the value actually is and create a named type for it. Use unknown only as a last resort.
Extract the duplicated code into a shared utility file. Update all files that used the duplicated code to import from the shared location.
Reference .claude/rules/ for the correct pattern and apply it consistently.
testing
Run tests for Terrae components
development
Review code changes implemented in the current session before committing
development
Prepare a Terrae component for release by running all checks and builds
tools
Commit, push, and open a pull request on GitHub