示例展示 注意权限
v0.8.4 👍 91% · 7.2k 次试用 · 2.8k 收藏 · 本周 +198
refactor-detector
在 PR 里找出「这段代码会让六个月后的你后悔」的部分。
示例输出 这个 Skill 需要本地文件 / git 历史,不能在浏览器内试用
输入
<一个 PR diff,340 行 TS>
输出
Found 3 future-regret signals:
[high] src/auth/session.ts:88
"isAdmin" is set on the request object but read in 4 places.
Implicit state. Future you will spend 40 minutes finding the writer.
Suggested: pass it explicitly through args, or wrap in a typed context.
[medium] src/api/billing.ts:204
New helper "normalizeAmount" takes 5 params, 3 of them booleans.
Boolean-explosion smell. Six months from now this will have 7 params.
Suggested: split into normalizeAmount and convertAmount.
[low] src/utils/dates.ts:12
Comment says "returns ISO8601" but function returns ms timestamp.
The function works. The comment lies. The comment will outlive the
memory of why it lied. › sk install refactor-detector --agent claude-code
关于
不是 linter。Linter 抓语法上错的;这个 Skill 抓未来语义上错的——耦合过深、命名误导、过早抽象、隐式状态、注释和代码说的不是一件事。
这个 Skill 适合谁
- 01 做 code review 的 tech lead
- 02 想让 AI 帮自己看自己代码的工程师
不适合: first-pass 代码风格检查(用 prettier 就够)。
相似 Skill
下面这些 Skill 在我们的索引里和它最相近——但相近不等于相同。