rewrite

rewrite is a command for coding agents from geo-mena/distill. It costs 23 tokens per session (936 once invoked), scanned A, original, MIT.

A command that rewrites supplied text in the Distill editorial voice: clear, sentence-case writing using first-person plural and no superlatives or emoji.

In plain words
What is it for?
Use it to revise technical or editorial text for articles, documentation, interfaces, and other project content. It can also note when technical meaning had to change.
Why use it?
It removes the need to apply the style rules manually while preserving the text's intended type, such as a heading, caption, paragraph, or button label.

Command

Part of the distill-design plugin — 1 skill, 7 commands shipped together

Install

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.

agentmods
npx agentmods add commands/geo-mena/distill/rewrite
Clone the repo
git clone --depth 1 https://github.com/geo-mena/distill

Or install distill-design, the plugin that ships this one along with the rest of its 1 skill, 7 commands.

Wrote 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.

agentmods badge for rewrite

README.md
[![agentmods](https://agentmods.dev/badge/commands/geo-mena/distill/rewrite.svg)](https://agentmods.dev/commands/geo-mena/distill/rewrite)
Your own site
<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>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash f0243d963426, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

plugins/distill-design/commands/rewrite.md · 50 lines

What it actually says

Load the distill-design skill, then rewrite the text in $@ in the Distill editorial voice.

Workflow:

  1. Read plugins/distill-design/DESIGN-SYSTEM.md § "Content fundamentals" before rewriting. The canonical voice paragraph is in that section — match its register exactly.
  2. 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).
  3. Rewrite once. Then read your output against the rules below and revise. Then output.
  4. 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 PointerGlyph for 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".
Changes

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.

  1. 4d ago First seen · 50 lines · 23 tokens per session scan A f0243d963426

Subscribe to this mod's changes

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.