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 LeahyCC/claude-skills --skill code-readabilitygit clone --depth 1 https://github.com/LeahyCC/claude-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/leahycc/claude-skills/code-readability)<a href="https://agentmods.dev/skills/leahycc/claude-skills/code-readability"><img src="https://agentmods.dev/badge/skills/leahycc/claude-skills/code-readability/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/leahycc/claude-skills/code-readability"><img src="https://agentmods.dev/badge/skills/leahycc/claude-skills/code-readability.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.00146 | $0.01584 |
| Opus 5.5 | $0.00058 | $0.00634 |
| Sonnet 5.5 | $0.00029 | $0.00317 |
| Haiku 4.5 | $0.00015 | $0.00158 |
Grade A, and why
code-readability 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 today.
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 — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code readability
Code is read at the point of use, by someone who does not have the author's head. A value, name, or shape that needs the author's memory to decode is a readability bug, even when it runs correctly.
Name it, or document it where it is used. Prefer naming. A named constant explains itself on every use and can only change in one place. A comment is the fallback for code that cannot hold a name (a config table, a protocol layout), and it must give the unit and the reason, not restate the literal.
Balanced, not strict. This skill flags meaning a reader cannot recover from context. It does not flag 0, 1, -1, a literal already labelled by the property or argument it sits in ({ timeoutMs: 5000 }), test data, or math whose meaning the formula itself carries (width / 2 for a centre). Chasing those teaches people to ignore the rule.
Source checks and dates: SOURCES.md.
Procedure
- Read the change for a reader who arrives cold. Mark every place you had to scroll, guess, or already know something to understand it.
- Read the resource for that smell in the table below.
- Fix by preference, in order: rename, extract a named constant or helper, restructure (guard clause, lookup table), then — only if none of those fit — a unit-and-why comment at the use site.
- Do not rename or restructure unrelated code in the same change. Readability fixes ride along only where the change already touches.
- If the project has linting, run it. Report findings as Must fix / Should fix / Leave, with the rule name. Never report a smell you did not actually see in the code.
a literal a reader can't decode ──> magic-numbers.md, magic-strings.md
a name that hides unit or meaning ──> naming.md
a function you must hold in your head ──> functions.md, nesting-and-conditionals.md
a comment that lies, repeats, or apologises ──> comments-and-dead-code.md
want a machine to catch it ──> linting.md
Where to read
| Task | Resource |
|---|---|
Floating / magic numbers: timeouts, retries, thresholds, sizes, rates, the performance.now() deadline |
magic-numbers.md |
| Magic strings, status literals, boolean flag arguments, stringly-typed values | magic-strings.md |
| Names: units in names, abbreviations, boolean names, names that lie, scope and length | naming.md |
| Function size, doing one thing, abstraction levels, arguments, early returns as structure | functions.md |
| Nesting depth, guard clauses, complex conditions, negations, nested ternaries | nesting-and-conditionals.md |
| Comments that earn their place, comments that lie or repeat code, commented-out and dead code, TODOs | comments-and-dead-code.md |
ESLint no-magic-numbers and friends, tuned balanced, as warnings, adopted by directory |
linting.md |
What ships with it
9 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.
- today First seen · 80 lines · 146 tokens per session scan A 239ce65cff7d
code-readability is a skill published in the GitHub repository LeahyCC/claude-skills (3 stars, last pushed today), licensed MIT. It adds 146 tokens to every session and 1,584 once invoked, about $0.0006 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-25.
Other skills, from other repositories
Accessibility Audit Helper
Reviews UI code and components for WCAG 2.1 accessibility violations and provides specific fixes.
drupal-a11y-patch-eval
Evaluate a Drupal accessibility patch end-to-end: baseline evidence, patch hygiene, after-patch verification, manual/AT checks, critic gate, and upstream handoff. Evidence-gated — never VERIFIED without before/after proof under the same conditions.
a11y-ally
Use when running comprehensive WCAG accessibility audits with axe-core + pa11y + Lighthouse, generating context-aware remediation, or testing video accessibility. Supports 3-tier browser cascade with graceful degradation.
accessibility-testing
WCAG 2.2 compliance testing, screen reader validation, and inclusive design verification. Use when ensuring legal compliance (ADA, Section 508), testing for disabilities, or building accessible applications for 1 billion disabled users globally.
best-practices
Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".
accessibility
Use when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast, tap-target size. NOT palette or visual intent (that is design), NOT test-runner setup (that is testing-web), NOT LCP/page-speed (that is…