resolve-fixme
它能做什么
这项技能在代码中找到 FIXME 备注,阅读每个完整的注释块,将相关的注释归为一组,并完成它们所描述的工作。适合留下了大量 FIXME 备注需要清理的开发者。
适用场景
- ✓当代码库中有大量你想清理的 FIXME 注释的时候。
- ✓当一条 FIXME 注释描述的工作涉及多个文件的时候。
- ✓当你希望在做任何修改之前,先列出每条 FIXME 的要求的时候。
技能链接
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/resolve-fixme/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能找出我项目中所有的 FIXME 注释,并完成它们描述的工作吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行一个搜索脚本查找 FIXME 备注,阅读每条备注周围的完整注释块,将相关事项归组,然后进行修改,并删除已完成的备注。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Resolve FIXME Comments
Workflow
1. Run the discovery script
Execute the script from the repository root to collect all FIXMEs with context:
bash .forge/skills/resolve-fixme/scripts/find-fixme.sh [PATH]
PATHis optional; omit it to search the entire working directory.- The script prints each FIXME with 2 lines of context before and 5 lines after, along with the exact file path and line number.
- Skips
.git/,target/,node_modules/, andvendor/. - Requires either
rg(ripgrep) orgrep+python3.
2. Expand each FIXME into its full instruction
Do not rely on the discovery output alone.
For every hit:
- Open the file and read around the reported line.
- Expand the FIXME to include the entire comment block.
- Treat all consecutive related comment lines as part of the same instruction.
Important:
- A FIXME may be multiline. The line containing
FIXMEis often only the beginning. - The real instruction may continue on following comment lines and may contain the actual implementation details.
- Do not interpret or edit a FIXME until you have read the full block.
For each expanded FIXME, capture:
- file path
- start line and end line of the full comment block
- a short summary of what that FIXME is asking for
3. Consolidate related FIXMEs across files
Before editing code, review all expanded FIXMEs together.
Many FIXMEs describe different facets of the same underlying task across multiple files. For example:
- one file may describe a domain type that needs to be introduced
- another may describe a parameter that should disappear once that type exists
- another may describe a service, repo, or UI update needed to complete the same refactor
Group such FIXMEs into a single implementation task.
When grouping, look for:
- shared vocabulary
- references to the same type, service, repo, parameter, or feature
- comments that clearly describe prerequisite and follow-up changes in different files
- comments that only make sense when read together
For each group, produce one consolidated understanding of the task:
- all files and line ranges involved
- the complete implementation required across the group
- the order in which the changes should be made
Do not resolve grouped FIXMEs one file at a time in isolation. Resolve the whole task consistently.
4. Implement every FIXME completely
Every FIXME must be resolved. There is no skip path.
Work through each grouped task until the underlying implementation is complete:
- Read any additional files needed to understand the design.
- Create or modify the required code, types, services, repos, tests, configs, or templates.
- Propagate the change through every affected file in the group.
- Remove each FIXME comment only after the work it describes has actually been implemented.
Critical rule: Never delete or rewrite a FIXME comment unless the underlying implementation is finished. The comment is a record of required work. Removing it before completing that work is a failure.
If the FIXME implies a larger refactor, do the refactor. If it requires creating new supporting code, create it. Do not stop at the first local change if the comment clearly implies additional follow-through elsewhere.
5. Verify
After resolving all FIXMEs:
- Run the project's standard verification step:
cargo insta test --accept
- Re-run the discovery script:
bash .forge/skills/resolve-fixme/scripts/find-fixme.sh [PATH]
- Confirm that no FIXME comments remain in the targeted scope.
Notes
- Prefer targeted fixes, but do not under-scope the work when multiple FIXMEs describe one larger task.
- Read broadly before editing when the intent is ambiguous.
- Consistency matters more than locality: grouped FIXMEs should lead to one coherent implementation.
- The job is not to clean up comments. The job is to complete the implementation those comments are pointing at.
常见问题
它会跳过某些文件夹吗?
会。它会跳过 .git、构建输出、node_modules 和 vendor 等文件夹。
如果一条 FIXME 跨越多行怎么办?
智能体会阅读整个注释块,因为指令可能延续到后面的行。
我可以把搜索限制在一个文件夹中吗?
可以。你可以传入一个路径,使搜索只覆盖该文件夹。
详情
作者的原始描述
Find all FIXME comments across the codebase and fully implement the work they describe. Use when the user asks to fix, resolve, or address FIXME comments, or when running the "fixme" command. Runs a discovery script to find every FIXME, expands multiline comment blocks, groups related FIXMEs across files into a single implementation task, completes the full underlying code changes, removes the FIXME comments only after the work is done, and verifies that no FIXMEs remain.
repo: tailcallhq/forgecode
热度
- GitHub 星标
- 7.6k
- 排名
- #13115
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
create-agent
7.6k教你的智能体为 Forge 编程应用创建或修改自定义智能体,这些智能体以 markdown 文件保存,顶部为设置。
create-command
7.6k教你的智能体为 Forge 编程应用创建可复用的命令,以按顺序执行的 markdown 步骤编写。
create-github-issue
7.6k帮你的智能体提交一个遵循代码仓库自身议题模板的 GitHub 议题,并填写正确的字段和标签。
create-plan
7.6k帮你的智能体在修改任何代码之前,为一项复杂任务编写详细的实施计划,包括步骤、风险和备选方案。