baton-lean-review

baton-lean-review is a skill for Claude Code, Codex from kakadeka/Baton. It costs 58 tokens per session (730 once invoked), scanned A, original, Apache-2.0.

A read-only code review focused on finding unnecessary complexity and simpler ways to achieve the same result.

In plain words
What is it for?
Use it to review a diff or part of a repository, classify simplification opportunities, and receive replacement suggestions with risks.
Why use it?
It helps identify code that is speculative, duplicated, or more complicated than the project needs without changing the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a diff or part of a repository, classify simplification opportunities, and receive replacement suggestions with risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kakadeka/baton/baton-lean-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kakadeka/Baton --skill baton-lean-review
Clone the repo
git clone --depth 1 https://github.com/kakadeka/Baton

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for baton-lean-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/kakadeka/baton/baton-lean-review/github.svg)](https://agentmods.dev/skills/kakadeka/baton/baton-lean-review)
Your own site
<a href="https://agentmods.dev/skills/kakadeka/baton/baton-lean-review"><img src="https://agentmods.dev/badge/skills/kakadeka/baton/baton-lean-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for baton-lean-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/kakadeka/baton/baton-lean-review"><img src="https://agentmods.dev/badge/skills/kakadeka/baton/baton-lean-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 730 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00730
Opus 5 $0.00029 $0.00365
Sonnet 5 $0.00012 $0.00146
Haiku 4.5 $0.00006 $0.00073

Measured 10d ago against content hash c1fc9c8fa5d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

baton-lean-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/baton-lean-review/SKILL.md · 59 lines

What it actually says

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 安全/正确性/兼容性强制保留

输出格式

文件:行号 | 标签 | 建议 | 替代物 | 风险门禁 | 预计净变化
  • keep 标签必须说明保留原因(安全/正确性/兼容性)。
  • 涉及安全校验、防数据丢失、凭据处理、FROZEN/Fidelity 的代码默认 keep,除非有更强证据。
  • 每条建议给出可验证的替代方案;没有替代方案的不建议。

边界

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

从主 SKILL 迁入的 Lean Gate 精华

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

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

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

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 59 lines · 58 tokens per session scan A c1fc9c8fa5d2

Subscribe to this mod's changes

baton-lean-review is a skill published in the GitHub repository kakadeka/Baton (4 stars, last pushed 10d ago), licensed Apache-2.0. It adds 58 tokens to every session and 730 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories