Skip to content
Back to skills

Baton Lean Review

ASecurity

审查当前改动/全仓的过度工程与可精简点,输出报告。只读,不修改代码。触发:用户要求精简审查、代码评审、减少复杂度、过度工程检查时使用。

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agents

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add kakadeka/Baton --skill baton-lean-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Baton Lean Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Baton Lean Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kakadeka-baton-lean-review/badge)](https://www.skillsdirectory.com/skills/kakadeka-baton-lean-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: baton-lean-review
description: 审查当前改动/全仓的过度工程与可精简点,输出报告。只读,不修改代码。触发:用户要求精简审查、代码评审、减少复杂度、过度工程检查时使用。
---

# baton-lean-review(只读精简审查)

审查当前 diff 或指定范围,按净收益排序输出报告。**本 skill 绝不修改代码**;不替代正确性/安全/Fidelity Reviewer。

## 优先级(不可违反)

用户明确要求/FROZEN > 安全与数据完整性 > Contract/DoD/Fidelity > 正确性 > 记忆闭环 > 精简目标 > 输出风格。

## 决策阶梯(按顺序停止在第一个可行层级)

1. 这项需求是否真实需要?推测性未来需求先不做。
2. 仓库是否已有 helper/类型/模式/组件?优先复用。
3. 标准库是否覆盖?
4. OS/浏览器/数据库/框架原生能力是否覆盖?
5. 已安装依赖是否覆盖?
6. 能否通过删除、配置或组合现有能力完成?
7. 前六项都不成立,才新增最小实现。

## 标签

| 标签 | 含义 |
|---|---|
| `delete` | 死代码、投机功能 |
| `reuse` | 仓库已有能力可复用 |
| `stdlib` | 手写标准库已有等价物 |
| `native` | 平台原生能力可替代 |
| `yagni` | 单实现接口、单产品工厂、无人使用配置 |
| `shrink` | 逻辑等价但可更小 |
| `keep` | 安全/正确性/兼容性强制保留 |

## 输出格式

```text
文件:行号 | 标签 | 建议 | 替代物 | 风险门禁 | 预计净变化
```

- `keep` 标签必须说明保留原因(安全/正确性/兼容性)。
- 涉及安全校验、防数据丢失、凭据处理、FROZEN/Fidelity 的代码**默认 keep**,除非有更强证据。
- 每条建议给出可验证的替代方案;没有替代方案的不建议。

## 边界

- 只读:不修改任何文件、不提交、不 push。
- 不替代正确性/安全/Fidelity Reviewer。
- 报告末尾标注:审查范围、审查身份(无法确认写 unknown)、未覆盖部分。

## 从主 SKILL 迁入的 Lean Gate 精华

主 SKILL 不再携带 Lean Gate。需要精简审查时显式使用本 skill(默认安装不含本文件)。

优先级永远:**用户明确要求/FROZEN > 安全与数据完整性 > Contract/DoD/Fidelity > 正确性 > 记忆闭环 > 精简目标 > 输出风格**。

不可精简项:信任边界输入校验;防数据丢失的错误处理;鉴权/授权/凭据/注入防护;无障碍基础;用户明确要求与 FROZEN/Fidelity;DoD 与非平凡逻辑的最小可运行检查。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.