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 agentmods add commands/geo-mena/distill/rewritegit clone --depth 1 https://github.com/geo-mena/distillWrote 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/commands/geo-mena/distill/rewrite)<a href="https://agentmods.dev/commands/geo-mena/distill/rewrite"><img src="https://agentmods.dev/badge/commands/geo-mena/distill/rewrite.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 | $0.00023 | $0.00936 |
| Opus 5 | $0.00012 | $0.00468 |
| Sonnet 5 | $0.00005 | $0.00187 |
| Haiku 4.5 | $0.00002 | $0.00094 |
Grade A, and why
rewrite 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 4d 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.
What it actually says
Load the distill-design skill, then rewrite the text in $@ in the Distill editorial voice.
Workflow:
- Read
plugins/distill-design/DESIGN-SYSTEM.md§ "Content fundamentals" before rewriting. The canonical voice paragraph is in that section — match its register exactly. - Identify what kind of text the input is: heading, caption, body paragraph, abstract, docstring, button label, error message. The voice rules apply differently to each (captions describe what to look at, headings are sentence-case, button labels stay short and verb-led).
- Rewrite once. Then read your output against the rules below and revise. Then output.
- Return only the rewritten text — no preamble, no explanation, unless the user explicitly asks for a diff or rationale. If you had to drop or change technical content (not just style), surface that in one line after the rewrite, prefixed
Note:.
Voice rules (apply all):
- First-person plural ("we") for narration. The "we" includes the reader, not the royal we. Second person ("you") only when addressing reader actions.
- Active voice, present tense for explanations. Math verbs get verbed: "dot producted", "softmaxed", "embedded".
- Sentence case for headings. Title case only for proper nouns and named methods (FiLM, Neural Turing Machine, GRU, Transformer).
- Bold inline only for term-introduction (first appearance of a key term). Not for emphasis.
- Captions describe what to look at, not what to conclude. "Blue shows high similarity, pink high dissimilarity" — not "The model clearly prefers blue regions".
- Variables italicized inline (
*x*,*z*,*W*); code identifiers stay upright in mono.
Things to drop on sight:
- Emoji. Every emoji codepoint, including pointers, sparkles, checkmarks, arrows. The only sanctioned glyph in the visual system is the orange-circle-with-pointing-hand
PointerGlyphfor interactive affordances — and it is never an emoji codepoint. - Marketing superlatives: "revolutionary", "powerful", "robust", "comprehensive", "elegant", "seamless", "cutting-edge", "state-of-the-art", "game-changing", "blazing-fast", "next-generation", "world-class".
- Empty value adjectives that describe nothing measurable: drop them or replace with a measured fact ("3× faster than the baseline" beats "much faster").
- Hedging adverbs: "very", "really", "quite", "incredibly", "extremely". If something is large, say how large.
- Exclamation points in body prose. Never. Acceptable only inside a quoted string from another source.
- Contractions in formal sections (body prose). Acceptable in figure annotations and conversational asides.
- "Let's" as a paragraph opener. Replace with "We" + active verb.
- Year literals if the text is not specifically dating a paper (e.g. drop "in 2024" if the surrounding context doesn't depend on the year). Substitute "now-archived", "modern", "earlier" where appropriate. Year literals stay in
CHANGELOG.md-style date provenance. - Em-dash overuse (
—) clustered into lists; the original Distill voice uses em-dashes for asides, not for bullet substitutes.
Things to preserve:
- Technical content. Do not simplify math for "accessibility" — density is part of the identity.
- Greek letters and operator glyphs (γ, β, ⊙, →, Σ, ←). Typeset, do not describe.
- Cited references and equation numbers. Renumber only if the user asked for a structural change.
- The user's domain terminology. If they wrote "key-value cache", do not rewrite to "memory store".
Hard constraints (non-negotiable):
- English only. If the input is in another language, ask before translating; default to keeping the input language unless the user said "translate to English".
- No emoji in the output.
Verification:
- Read your rewrite back against the canonical paragraph in DESIGN-SYSTEM.md § "Content fundamentals". If your rewrite reads more like marketing copy than that paragraph, redo it.
- For diagram captions specifically, verify it answers "what to look at", not "what to conclude".
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.
- 4d ago First seen · 50 lines · 23 tokens per session scan A f0243d963426
rewrite is a command published in the GitHub repository geo-mena/distill (2 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 936 once invoked, about $0.0001 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 commands, from other repositories
brand
Generate a full editorial brand-guidelines book for any URL. 14 chapters covering brand essence/archetype, colour, typography, spacing, shape, iconography, motion, components, voice, accessibility, tokens, and how-to-use guidance. Print-ready, dark-mode toggle, hand-off-ready single HTML.
verify
Fidelity check — rebuild a page from the extracted tokens, pixel-diff it against the live site, and score how faithfully the tokens capture the design.
battle
Head-to-head graded battle card between two sites — eight dimensions, bar-by-bar, verdict line.
design-tutorial
Interactive guided tour of Naksha — learn commands through real exercises, discover workflows, and get oriented in under 10 minutes.
figma-component-library
Generate a complete component library in Figma from a design system config — atoms, molecules, and organisms with all variants, auto layout, and component properties.
design-chatbot
Design a complete chatbot or conversational assistant UI — dialog flows, message bubbles, quick replies, typing indicators, error states, and accessibility.