kamehadb: Skill for Claude Code

.agents/skills/lean-audit/SKILL.md

lean-audit is a skill for Claude Code, Codex from asta-nguyen/kamehadb. It costs 38 tokens per session (742 once invoked), scanned A, original, Apache-2.0.

A read-only repository audit for finding unnecessary complexity, duplicate code, speculative abstractions, or dependencies that could be removed.

In plain words
What is it for?
Use it to inspect an entire repository and report validated ways to simplify it without editing or deleting anything.
Why use it?
It separates simplicity audits from correctness, security, performance, or style reviews. It requires checking callers and configuration before suggesting a cut.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is asta-nguyen/kamehadb's own configuration. It tells Claude Code and Codex how to work on kamehadb itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kamehadb configures →

Reuse

Borrowing it

Nothing to install: this file belongs to asta-nguyen/kamehadb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/asta-nguyen/kamehadb/main/.agents/skills/lean-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/asta-nguyen/kamehadb

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 lean-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/asta-nguyen/kamehadb/lean-audit/github.svg)](https://agentmods.dev/skills/asta-nguyen/kamehadb/lean-audit)
Your own site
<a href="https://agentmods.dev/skills/asta-nguyen/kamehadb/lean-audit"><img src="https://agentmods.dev/badge/skills/asta-nguyen/kamehadb/lean-audit/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 lean-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/asta-nguyen/kamehadb/lean-audit"><img src="https://agentmods.dev/badge/skills/asta-nguyen/kamehadb/lean-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 742 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.00038 $0.00742
Opus 5.5 $0.00015 $0.00297
Sonnet 5.5 $0.00008 $0.00148
Haiku 4.5 $0.00004 $0.00074

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

Security

Grade A, and why

lean-audit 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 19d 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.

.agents/skills/lean-audit/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lean Audit

Overview

Run a read-only whole-repo simplicity audit. Report validated cuts; do not edit, delete, commit, open a PR, or post comments.

When to use

Use for audits of over-engineering, bloat, or simplification. Do not use for diff-only review, correctness, security, performance, generic test coverage, or style; route those concerns to review or debugging.

Process

  1. Establish root. Read applicable instructions and inspect git status without changing it. Record root, exclusions (.git, generated output, vendored code, node_modules, and build caches), and every inspected first-party area. If the user explicitly includes an excluded path, state that override. If a required area or repository-wide search is unavailable, report Audit incomplete: <specific limitation> and do not make a lean verdict.
  2. Inventory source, structure, entrypoints, manifests, dependencies, configuration, commands, and tests. Use rg and direct reads. Before judging a candidate, use FFF multi-pattern grep (fallback: rg) to search callers, registrations, and dynamic-reference variants, then inspect relevant configuration, tests, and extension requirements.
  3. Report only validated cuts with one of these tags: delete, stdlib, native, yagni, or shrink. Omit ambiguous candidates. Preserve explicit requirements, repository conventions, compatibility boundaries, required validation, and behavior-protecting tests. Route out-of-scope concerns to review/debugging.
  4. Rank the largest credible cut first. Report savings only when supported; never imply that a change was applied.

Output

# Lean audit

Scope: <repository root>; exclusions: <paths>; inspected: <first-party areas>

1. delete: <path:line> <cut>. <replacement>. evidence: <paths/searches>

net: -<N> lines, -<M> dependencies possible.

Every finding needs an exact repository-relative path:line, evidence, and a replacement. For shrink, show the shorter equivalent form. After complete coverage with no validated cut, keep the header and scope, then output Lean already. Ship. and omit findings and net. If coverage is incomplete, output the limitation instead. End with the Next: block from using-devkit (Next: none after a complete report).

Read the full file on GitHub · 79 lines

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. 19d ago Changed · +1 lines 52b9c2b8471e
  2. 1mo ago First seen · 78 lines · 38 tokens per session scan A da19301265ee

Subscribe to this mod's changes

lean-audit is a skill published in the GitHub repository asta-nguyen/kamehadb (14 stars, last pushed 10d ago), licensed Apache-2.0. It adds 38 tokens to every session and 742 once invoked, about $0.0002 per session on Opus 5.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-10-05.

Related

lean-audit compared with skills from other repositories

lean-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lean-auditasta-nguyen/kamehadbSkill1410d agoApache-2.0A38Claude Code, Codex
review-prsgoogleapis/mcp-toolboxSkill17kyesterdayApache-2.0A162Claude Code, Codex
code-review-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0A38Claude Code
review-implement-phaseprisma/ormSkill48kyesterdayApache-2.0A38Claude Code
no-bare-castsprisma/ormSkill48kyesterdayApache-2.0A52Claude Code, Codex
otto-pr-review-loopomnigent-ai/omnigentSkill11kyesterdayApache-2.0A17Claude Code, Codex
meta-codereview-current-diffopensquilla/opensquillaSkill7.1k6d agoApache-2.0A73Claude Code, Codex