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.svg" alt="Measured on agentmods" 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.01121 |
| Opus 5 | $0.00019 | $0.00561 |
| Sonnet 5 | $0.00008 | $0.00224 |
| Haiku 4.5 | $0.00004 | $0.00112 |
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 8d 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 — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
this skill
Judge every comment and docstring in the target files against
references/comment-policy.md, then delete or rewrite the ones
that fail. Edits in place and prints a diff. Never commits, never
pushes, never requires a clean tree.
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 is the way to skip the edit,
not the confirmation.
$ARGUMENTS
paths/globs— files to audit, resolved throughgit ls-files -- <glob>when tracked, else as literal paths.--staged— audit what is staged rather than the branch diff.--all— audit every tracked file. Expect a large diff; say so before confirming.--diff-only— classify and show what would change, edit nothing.
With no paths, the target set is the files this branch changed.
Steps
-
Resolve targets. With paths, expand them. With
--all, takegit ls-files. With--staged, take the staged names:$ git diff --name-only --cached --diff-filter=dOtherwise find the trunk ref (
git rev-parse --abbrev-ref origin/HEAD, falling back to the repo's default branch) and take its merge base:$ git merge-base HEAD origin/HEADThen take the names changed since it:
$ git diff --name-only --diff-filter=d <merge-base>Keep source files; drop lockfiles, generated output, and vendored trees. Reject an empty target set with a clear message rather than widening the scope on your own.
-
Load the policy and voice. Read
references/comment-policy.md, then./AGENTS.mdand./CLAUDE.md. Where the host project sets its own comment rules, those govern. -
Classify. Every comment and docstring in range gets one verdict — keep, rewrite, or delete — and a failing gate by name for anything not kept. A verdict you cannot attach to a gate is a keep.
What ships with it
1 file 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.
- 8d 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 (2 stars, last pushed 2d ago), licensed MIT. It adds 38 tokens to every session and 1,121 once invoked, about $0.0002 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.
Other skills, from other repositories
postgres-database-migration
Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases. Trigger when user asks to: Test a schema migration before applying it to production Add, remove, or rename columns safely on a live table Change a column's data…
setup-timescaledb-hypertables
Use this skill when creating database schemas or tables for Timescale, TimescaleDB, TigerData, or Tiger Cloud, especially for time-series, IoT, metrics, events, or log data. Use this to improve the performance of any insert-heavy table. Trigger when user asks to: Create or design SQL schemas/tables AND…
design-postgis-tables
Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and performance patterns for location-based applications.
migrate-postgres-tables-to-hypertables
Use this skill to migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables with optimal configuration and validation. Trigger when user asks to: Migrate or convert PostgreSQL tables to hypertables Execute hypertable migration with minimal downtime Plan blue-green migration for large tables Validate…
pgvector-semantic-search
Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…
find-hypertable-candidates
Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. Trigger when user asks to: Analyze database tables for hypertable conversion potential Identify time-series or event tables in an existing schema Evaluate if a table would…