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.
npx skills add tony/skills --skill lean-trim-commentsgit clone --depth 1 https://github.com/tony/skillsWrote 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.
[](https://agentmods.dev/skills/tony/skills/lean-trim-comments)<a href="https://agentmods.dev/skills/tony/skills/lean-trim-comments"><img src="https://agentmods.dev/badge/skills/tony/skills/lean-trim-comments/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.
<a href="https://agentmods.dev/skills/tony/skills/lean-trim-comments"><img src="https://agentmods.dev/badge/skills/tony/skills/lean-trim-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.02502 |
| Opus 5.5 | $0.00015 | $0.01001 |
| Sonnet 5.5 | $0.00008 | $0.00500 |
| Haiku 4.5 | $0.00004 | $0.00250 |
Grade A, and why
lean-trim-comments 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.
this skill
Judge comments and docstrings against
references/comment-policy.md, then delete or rewrite the ones
that fail. By default only comments on lines the branch added or
changed are judged; comments it never touched are left alone. Edits in
place and prints a diff. Never commits or pushes.
The commands below run from the user's directory. Resolve references/scope.py and references/tally.py against the directory of this SKILL.md (the path it was read from) and write that absolute path literally in each command; shell variables do not persist between Bash calls. Never show that path in the reply.
When python3 is missing or older than 3.14, follow references/python.md.
Confirm before the first edit
This skill deletes code the user did not ask you to touch, and it can
be routed to from a passing remark about comments. Present the
classification and get an explicit yes through ask-user-choice
before any Edit.
No exceptions: not for a single comment, not for a file the user just
named, not under --all. --diff-only and --stdin edit nothing, so
they need no confirmation.
Without a question tool, act as
--diff-only unless the request itself says "go ahead and trim": that
authorizes the edits it names, never a commit.
$ARGUMENTS
paths/globs: files to audit in full, resolved byscope.py --paths.--stdin: code pasted in the message or read from stdin; print the trimmed code and edit nothing. Pasted code with no paths implies it.--staged: judge comments on staged lines rather than the branch diff.--all: audit every tracked file in full. Expect a large diff; say so before confirming.--diff-only: classify and show what would change, edit nothing.
With no paths, the scope is the lines this branch added or changed.
Steps
- Resolve targets. With
--stdinor pasted code, the pasted text is the target set; skip to step 2. With paths, resolve them; a path that matches no file exits 2: report it and stop:
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2d ago Changed · +2 lines 7827d434f9d1
- 1mo ago Changed · +25 lines de775fe293bc
- 1mo ago Changed · +98 lines 0628d671e5c6
- 3mo ago First seen · 112 lines · 38 tokens per session scan A 7dac533ba2e5
lean-trim-comments is a skill published in the GitHub repository tony/skills (0 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 2,502 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-08-31.
lean-trim-comments compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lean-trim-commentstony/skills | Skill | 0 | today | MIT | A | 38 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |