用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/alamenai/terrae --skill fix命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | fix |
| description | Systematically fix issues found by /review or reported by the user |
| allowed-tools | Read, Grep, Glob, Edit, Write, Bash(git diff*), Bash(npx tsc *) |
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.