clear-rewrite

clear-rewrite is a command for Claude Code from eugeniughelbur/clearmode. It costs 40 tokens per session (470 once invoked), scanned A, original, MIT.

A rewrite command that turns text into plain, human-sounding writing and checks it against the CLEAR-100 writing standard. It repeats the edits until the text passes the required score or reports what is blocking it.

In plain words
What is it for?
Rewriting documentation, posts, and other prose; checking the original score; and producing a ready-to-paste version with before-and-after results.
Why use it?
It helps remove filler, vague wording, long sentences, and hard-to-scan structure without hiding the checker’s result.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Rewriting documentation, posts, and other prose; checking the original score; and producing…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eugeniughelbur/clearmode/clear-rewrite
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.

Clone the repo
git clone --depth 1 https://github.com/eugeniughelbur/clearmode

Made for: Claude Code.

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 clear-rewrite

README.md
[![agentmods](https://agentmods.dev/badge/commands/eugeniughelbur/clearmode/clear-rewrite.svg)](https://agentmods.dev/commands/eugeniughelbur/clearmode/clear-rewrite)
Your own site
<a href="https://agentmods.dev/commands/eugeniughelbur/clearmode/clear-rewrite"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/clearmode/clear-rewrite.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00040 $0.00470
Opus 5 $0.00020 $0.00235
Sonnet 5 $0.00008 $0.00094
Haiku 4.5 $0.00004 $0.00047

Measured 6d ago against content hash 4d41c7499f7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

clear-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 6d 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.

commands/clear-rewrite.md · 35 lines

What it actually says

/clear-rewrite

Rewrite until it passes. Show the work.

Steps

  1. Run /clear-check first. You need the baseline score before you touch a word.

  2. Fix in this order. The order matters, because each pass makes the next one cheaper.

    1. Cut. Delete every sentence that fails the delete test (D1, D3, D4). Do this before rewriting anything. Half the findings disappear here.
    2. Unslop. Replace every H-axis hit with the specific thing it stood in for. If nothing specific is behind it, the sentence was already deleted in step 1.
    3. Plain. Split long sentences. Swap long words for short ones. Gloss each term of art once. Put the actor before the verb.
    4. Structure. Turn parallel items into lists, sequences into numbered steps, comparisons into tables. Break walls.
    5. Rhythm. Read it out loud. Put a short sentence next to a long one. This is the last pass, never the first.
  3. Re-run the checker. Repeat from the highest remaining severity. Stop at the gate, or after four passes.

  4. If four passes do not clear the gate, say so and name what is blocking. Do not fake the score.

Output

  • The rewritten text in full, in a fenced block, ready to paste.
  • One line: before X/100 -> after Y/100, with the axis that moved most.
  • A short list of what you cut and why. Cuts are the part a user will want to argue with.

Hard limits

  • Never change a claim, a number, a name, or a link. Clarity work only. If a claim is wrong, say so separately.
  • Never touch code, code blocks, quoted material, or another person's words.
  • Never remove a technical term that is the subject. Gloss it once instead.
  • Never add a claim the source did not make to satisfy the density axis.
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. 6d ago First seen · 35 lines · 40 tokens per session scan A 4d41c7499f7a

Subscribe to this mod's changes

clear-rewrite is a command published in the GitHub repository eugeniughelbur/clearmode (1 stars, last pushed 8d ago), licensed MIT. It adds 40 tokens to every session and 470 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.