refine-prose

refine-prose is a skill for Claude Code, Codex from petekp/claude-code-setup. It costs 132 tokens per session (2,683 once invoked), scanned A, original, MIT.

A prose-editing guide for making writing clearer to a particular reader. It focuses on putting the main point first, using literal language, removing unnecessary text, and matching the intended voice.

In plain words
What is it for?
Use it to draft, revise, tighten, edit, proofread, or review essays, posts, messages, interface text, and other prose.
Why use it?
It helps fix writing that is vague, overlong, poorly ordered, or written in a style that distracts from the meaning. It also separates drafting, rewriting, and reviewing so the work matches the request.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to draft, revise, tighten, edit, proofread, or review essays, posts, messages, interface text, and other prose.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/petekp/claude-code-setup/refine-prose
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.

Any agent
npx skills add petekp/claude-code-setup --skill refine-prose
Clone the repo
git clone --depth 1 https://github.com/petekp/claude-code-setup

Made for: Claude Code, Codex.

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 refine-prose

README.md
[![agentmods](https://agentmods.dev/badge/skills/petekp/claude-code-setup/refine-prose/github.svg)](https://agentmods.dev/skills/petekp/claude-code-setup/refine-prose)
Your own site
<a href="https://agentmods.dev/skills/petekp/claude-code-setup/refine-prose"><img src="https://agentmods.dev/badge/skills/petekp/claude-code-setup/refine-prose/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.

agentmods 80×15 button for refine-prose

Your own site · 80×15
<a href="https://agentmods.dev/skills/petekp/claude-code-setup/refine-prose"><img src="https://agentmods.dev/badge/skills/petekp/claude-code-setup/refine-prose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,683 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.00132 $0.02683
Opus 5.5 $0.00053 $0.01073
Sonnet 5.5 $0.00026 $0.00537
Haiku 4.5 $0.00013 $0.00268

Measured 1mo ago against content hash 1740ad448a38, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refine-prose 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.

skills/refine-prose/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Refine prose

Work from the reader's side. Ask what this reader needs in order to understand or decide, then remove everything that does not serve that.

Most weak prose fails above the word level. It says things the reader did not need, in an order that hides the point, in phrasing chosen to sound like writing rather than to say something. Fix those in that order. Word-level tells come last and matter least.

One move covers most fixes: describe what is present, in literal words, with the person who did it named.

Before editing

Settle three things from the request or the text itself:

  • The reader and what they will do with the text. A busy engineer deciding whether to merge reads differently from a friend receiving a reply.
  • Whose voice it is in. Pete's own message or post: read ~/.claude/skills/write-as-pete/VOICE.md and apply it after the passes below. Interface strings: read ~/.claude/skills/clean-copy/SKILL.md for what survives on a screen and how to report a batch. Anything else: the default register under Voice.
  • The mode. Rewrite returns revised text. Review reports findings and changes nothing. Draft writes new text, then applies the passes to it.

Ask only when the answer would change the edit materially. Otherwise choose the reading a careful editor would choose and say so in one line.

Pass 1: Cut what should not exist

Walk each section, paragraph, and sentence down these questions. Delete at the first one that fires. Do not polish text that should be gone.

  1. Would the reader have wondered this? Text that answers a question nobody had plants the question. A caption saying the preview is rendered at the exact profile size makes the reader wonder whether it might not be.
  2. Does something nearby already say it? A caption under a clear label. A summary after a short argument. A recap paragraph. A topic sentence that restates the heading. A closing line that repeats the opening.
  3. Does it rule out a failure instead of describing a behavior? "This may look slow but it is not." "Unlike the old cancel, this keeps your files." A list of what the change will not do. That is the writer's memory of a bug or a debate. The reader was not there and now has a worry they arrived without.
  4. Does it announce the text instead of being it? "In this section we will", "Here's the thing", "Let me walk through", "The rest of this post", "It's worth noting that", "In short". Delete the announcement and let the content stand.
  5. Does it exist to sound like writing? A quotable line. A punchline closing a paragraph. A question answered in the next sentence. A metaphor where a literal phrase was available. Replace it with the literal statement, or delete it if the statement is already there.

Read the full file on GitHub · 216 lines

Files

What ships with it

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

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. 1mo ago First seen · 216 lines · 132 tokens per session scan A 1740ad448a38

Subscribe to this mod's changes

refine-prose is a skill published in the GitHub repository petekp/claude-code-setup (50 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 2,683 once invoked, about $0.0005 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-22.

Related

refine-prose compared with skills from other repositories

refine-prose next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refine-prosepetekp/claude-code-setupSkill50yesterdayMITA132Claude Code, Codex
html-artifactslangchain-ai/open-sweSkill11ktodayMITA52Claude Code, Codex
sandbox-imageslangchain-ai/open-sweSkill11ktodayMITA55Claude Code, Codex
web-appslangchain-ai/open-sweSkill11ktodayMITA43Claude Code, Codex
baby-sitlangchain-ai/open-sweSkill11ktodayMITA30Claude Code, Codex
merge-queue-recoverylangchain-ai/open-sweSkill11ktodayMITA31Claude Code, Codex
migratelangchain-ai/open-sweSkill11ktodayMITA72Claude Code, Codex