Install any skill in seconds. Free to start, no credit card required.
Get Started Free →doccker/cc-refactor-safety
当用户要求重构代码(提取组件、合并重复逻辑、重命名变量、优化结构)时触发。提供重构安全检查清单,防止丢失原始上下文。
Passed 16 of 20 test cases with the skill, and 11 of 20 without it.
and 6 more in the full report
7 fixed11 passed either way3 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
We are refactoring 'InvoiceHistoryTab.tsx' table columns. In the TypeScript definitions, 'InvoiceHistory' has 'changedAt?: string' and 'createdAt: string'. Should we set 'dataIndex: "changedAt"' for the timestamp column because the name sounds more relevant for an audit table?
| Checked | Without skill | With skill |
|---|---|---|
| Recommends checking actual source code usage rather than relying solely on interface type definitions | Missed | Passed |
| Prefers required schema fields over optional fields that may evaluate to undefined | Passed | Passed |
The instructions your model reads when the skill loads.
不要凭记忆或推测重构,必须完整读取原始代码:
# 读取完整文件
Read: file_path="src/views/Order.vue"
# 如果是条件分支,读取所有分支的代码
Grep: pattern="if.*健康云" -A 50 -B 5
Grep: pattern="else" -A 50 -B 5
常见错误:
原始代码(健康云租户):
列1: 订单编号
列2: 订单日期
test cases passed, vs 11 / 20 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.