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 Jartan-LLC/grimoire --skill readable-codegit clone --depth 1 https://github.com/Jartan-LLC/grimoireWrote 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/jartan-llc/grimoire/readable-code)<a href="https://agentmods.dev/skills/jartan-llc/grimoire/readable-code"><img src="https://agentmods.dev/badge/skills/jartan-llc/grimoire/readable-code/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/jartan-llc/grimoire/readable-code"><img src="https://agentmods.dev/badge/skills/jartan-llc/grimoire/readable-code.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.00057 | $0.03188 |
| Opus 5.5 | $0.00023 | $0.01275 |
| Sonnet 5.5 | $0.00011 | $0.00638 |
| Haiku 4.5 | $0.00006 | $0.00319 |
Grade A, and why
readable-code 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 1mo 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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Readable Code
The local-clarity sibling of code-structure. code-structure carves the units and their contracts; this skill shapes how a single body reads to a human once those units exist. Four owners, one test:
- hygiene = DELETE what git or a library already owns -- a restating comment, dead code, a name that lies or says nothing. A rule that says delete X is hygiene's.
- readable-code = READ -- shape control flow, the naming of a set of identifiers, and the order and locality of a body so a reader follows it straight down holding as little in mind as possible.
- code-structure = SHAPE THE UNITS -- decomposition and depth, cohesion, coupling, interfaces, contracts, data invariants. Anything about where a seam falls or how big a unit should be is
code-structure's (it owns the size-vs-depth resolution); this skill assumes the units are already carved and asks only whether each reads clearly. - pythonica = Python mechanics -- a rule naming a Python construct (a comprehension,
match, a context manager) is pythonica's; keep this skill language-agnostic.
Every rule below is a recognizable smell (something a reader or author can actually spot) -> the principle it violates -> a fix direction. No line or nesting-depth count gates any rule; that false precision is what these qualitative smells replace.
Control-flow shape
The physical shape should mirror the logical shape.
- Buried happy path -- SMELL: you cannot find the main story; it sits at the deepest indent behind a stack of preconditions, tangled at the same level as the error handling, its matching
elsefar below. PRINCIPLE: the main path should run straight down the trunk at one indentation level while edge and error cases are detected, handled, and dismissed in the margin. FIX: invert each precondition into an early return orcontinueat the top so the primary path falls through unindented. Judge success by whether the main path became unconditional and reads straight down, not by how many levels you removed. - Predicate you must invert in your head -- SMELL:
if (!isNotReady), or a two-armed branch whoseifhandles the rare case while theelsequietly holds the norm -- you unwind a double negative or reverse the arms just to learn which case is normal. PRINCIPLE: a positively-named predicate reads as a plain assertion, and leading with the common case tells the normal story first. This is shape, not honesty: a truthful negative flag neither lies nor is empty, so hygiene's tests pass it -- reshaping it for readable phrasing is this skill's job. FIX: name the boolean for its affirmative state (is_ready) and phrase the test positively; where a genuine two-way branch remains, order it so the common case leads. - Cleverness the next reader must decode -- SMELL: the next reader has to hand-execute the line to know what it yields -- a nested ternary, several operations folded into one dense one-liner, arithmetic on booleans; the author-side tell is a flicker of pride in the compactness, unreliable precisely for the author who prizes it. The cleverness is the point, not a constraint the plain form was measured to fail. PRINCIPLE: code is read far more often than written, so the author's one-time cleverness is repaid as a recurring decoding cost by every later reader. FIX: write the obvious form by default; reach for the dense one only when the plain form is measured to fail a real constraint (a hot path, a memory ceiling) -- and that necessity is exactly the unrecoverable WHY that earns a comment (see hygiene, Comments/KEEP).
- A loop that hides a named operation -- SMELL: a manual accumulation loop reimplements one well-known operation -- a sum, an any/all, a max-by, a group-by -- so a reader must execute the loop mentally to recover an operation that already has a plain name. PRINCIPLE: name the operation, so the code reads as what it computes ("these are the eligible ones") instead of how it accumulates. FIX: replace the loop with the named operation (a map/filter/reduce, a library call) or an intention-named helper. Discriminator (this is the positive complement to the cleverness rule, not its contradiction): this applies only when the loop is one nameable operation; several operations folded into one dense expression stay in the plain form.
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.
- 1mo ago First seen · 60 lines · 57 tokens per session scan A 0035f2a1cb43
readable-code is a skill published in the GitHub repository Jartan-LLC/grimoire (2 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 3,188 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.
Other skills, from other repositories
review-arch
Conduct a principal-level architecture review of a system, specification, diagram, or set of design decisions. Use when asked to review an architecture, evaluate a design, assess coupling/cohesion, check for anti-patterns, audit system boundaries, or produce an Architecture Review Board (ARB) style verdict. Also use…
review-impl
Review implementation changes for a given task against architectural standards. Use when reviewing a PR, evaluating recently committed code, assessing whether implementation changes are correct and architecturally sound, or when asked to 'review my changes', 'check this implementation', 'review what I built', 'is this…
design-parity-review
Prove a Compose UI pull request matches its intended design by diffing the rendered code (candidate) against a Figma / Stitch / Claude Design reference and posting a parity verdict. Use when asked to check a PR against a design, wire up a design-parity bot, set up the committed reference cache so runs make zero Figma…
babysit-pr
Resolve reviewer comments on a pull request or pasted feedback using a six-step evidence-grounded protocol. Use when asked to resolve review feedback, address reviewer comments, process PR comments, triage review feedback, apply review suggestions, handle code review feedback, decide which review comments to accept or…
compose-preview-review
Review Compose UI previews and pull requests by rendering base and head, diffing them, and checking catalog design guidelines. Use for a UI design review, a UI PR locally or from a CI agent session (@claude mention), authoring an agent-opened PR that touches UI, or triaging flaky or unstable previews…
verify-impl
Forensic audit of an implementation against its authoritative specification. Use whenever a specification document and an implementation are both in scope and the user asks any conformance question - even when not phrased explicitly: 'does this code match the spec', 'verify this implementation', 'check spec…