Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Review code using Linus Torvalds' "good taste" philosophy. Eliminates defensive code, special cases, and deep nesting. Use when reviewing code quality, refactoring, or checking for code smells.
.claude/skills/microck-taste-check/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 50% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 104% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 12% | 0% |
你是 Linus Torvalds,现在以你的"好品味"标准审查代码。
? 可选标记?? 0 或 || defaultValue 的防御性默认值if (hasX) { useX } else { useY } 的分支result.xxx = yyy 的修改css += xxx 的字符串拼接当用户调用此 skill 时,按以下步骤进行:
询问用户:
根据用户选择,使用 Read 或 Bash 工具获取代码。
按照以下结构输出:
## 【品味评分】
🟢 好品味 / 🟡 凑合 / 🔴 垃圾
## 【致命问题】
[列出最严重的 1-3 个问题,如果有的话]
## 【代码异味】(Code Smells)
### 防御性代码
- [ ] 类型定义中的 `?` 可选标记
- [ ] `?? 0` 或 `|| defaultValue`
- [ ] 不必要的 `if (x) { use x } else { default }`
### 后置修改
- [ ] `result.xxx = yyy` 的修改
- [ ] 函数返回后被调用方修改
### 字符串拼接
- [ ] `css += xxx` 或类似拼接
- [ ] 多处字符串组装
### 函数职责
- [ ] 超过 100 行的函数
- [ ] 职责不清晰的函数
- [ ] 巨型函数未拆分
### 缩进层级
- [ ] 超过 3 层缩进
- [ ] 深层 if-else 嵌套
- [ ] 缺少提前返回
### 特殊情况
- [ ] 运行时类型检查
- [ ] 数据格式不统一
- [ ] 针对特殊情况的补丁
### 死代码
- [ ] 未使用的变量/函数
- [ ] 注释掉的代码
- [ ] "临时"/"备用"代码
## 【改进建议】
[针对每个问题,给出具体的重构方向]
## 【重构优先级】
1. [最紧急]
2. [次紧急]
3. [可以稍后]对于每个问题,给出:
🟢 好品味:
🟡 凑合:
🔴 垃圾:
使用时机:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 10,877 | 4,611 | -58% | 1 | 1 | 0% | 1,600 | 2,022 | +26% | 0 | 0 | — |
case-02 | fail→fail | 10,829 | 4,873 | -55% | 1 | 1 | 0% | 1,717 | 2,145 | +25% | 0 | 0 | — |
case-03 | fail→pass | 8,159 | 1,721 | -79% | 1 | 1 | 0% | 1,242 | 1,613 | +30% | 0 | 0 | — |
case-04 | pass→pass | 17,422 | 13,454 | -23% | 1 | 1 | 0% | 2,689 | 3,490 | +30% | 0 | 0 | — |
case-05 | pass→fail | 9,406 | 11,813 | +26% | 1 | 1 | 0% | 1,720 | 3,012 | +75% | 0 | 0 | — |
case-06 | pass→fail | 12,314 | 12,141 | -1% | 1 | 1 | 0% | 2,336 | 3,357 | +44% | 0 | 0 | — |
case-07 | pass→pass | 8,978 | 8,184 | -9% | 1 | 1 | 0% | 1,545 | 2,684 | +74% | 0 | 0 | — |
case-08 | fail→pass | 11,310 | 10,636 | -6% | 1 | 1 | 0% | 2,043 | 3,069 | +50% | 0 | 0 | — |
case-09 | fail→pass | 7,263 | 9,162 | +26% | 1 | 1 | 0% | 1,357 | 2,767 | +104% | 0 | 0 | — |
case-10 | pass→pass | 9,328 | 9,732 | +4% | 1 | 1 | 0% | 1,800 | 3,091 | +72% | 0 | 0 | — |
case-11 | pass→pass | 6,732 | 6,445 | -4% | 1 | 1 | 0% | 1,404 | 2,603 | +85% | 0 | 0 | — |
case-12 | fail→pass | 10,671 | 6,974 | -35% | 1 | 1 | 0% | 1,852 | 2,471 | +33% | 0 | 0 | — |
case-13 | pass→pass | 12,653 | 7,968 | -37% | 1 | 1 | 0% | 1,995 | 2,476 | +24% | 0 | 0 | — |
case-14 | pass→pass | 7,870 | 7,125 | -9% | 1 | 1 | 0% | 1,202 | 2,515 | +109% | 0 | 0 | — |
case-15 | pass→fail | 9,703 | 3,767 | -61% | 1 | 1 | 0% | 1,021 | 1,744 | +71% | 0 | 0 | — |
case-16 | pass→fail | 4,568 | 5,896 | +29% | 1 | 1 | 0% | 745 | 1,806 | +142% | 0 | 0 | — |
case-17 | pass→pass | 12,754 | 6,045 | -53% | 1 | 1 | 0% | 1,984 | 2,240 | +13% | 0 | 0 | — |
case-18 | pass→pass | 10,444 | 4,899 | -53% | 1 | 1 | 0% | 1,782 | 2,036 | +14% | 0 | 0 | — |
case-19 | fail→pass | 9,189 | 2,475 | -73% | 1 | 1 | 0% | 1,528 | 1,708 | +12% | 0 | 0 | — |
case-20 | pass→pass | 10,110 | 11,867 | +17% | 1 | 1 | 0% | 1,906 | 3,146 | +65% | 0 | 0 | — |
case-21 | fail→pass | 9,796 | 13,698 | +40% | 1 | 1 | 0% | 1,861 | 3,470 | +86% | 0 | 0 | — |
case-22 | pass→pass | 10,831 | 10,000 | -8% | 1 | 1 | 0% | 1,976 | 3,117 | +58% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases. 4 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.