writing:rewrite · git:20261029.c1d931d · 2026-10-29 · sha256 39ff95b0786a0158

writing:rewrite git:20261029.c1d931dA

Immutable. This exact content never changes and is served at /api/v1/blob/39ff95b0786a0158.

---
name: writing:rewrite
description: >-
  Rewrite a draft message, explanation, or note to strip AI voice, slop, and
  filler while preserving meaning. Use to polish functional prose before
  sending.
argument-hint: "[file path or text; omit to read input from the clipboard]"
user-invocable: true
context: fork
background: false
allowed-tools:
  - Bash
  - Read
  - Skill
---

# Rewrite

Load the `writing:writing` skill for the style rules, then rewrite the input to match them. Preserve all functional information. Change only voice, word choice, and sentence structure, conveying the same information in fewer, clearer words.

When the input is the user's own writing rather than model output, name its core point and a few voice signals before editing: vocabulary, cadence, bluntness, humor, admitted uncertainty, digressions. Keep that note to yourself and make the smallest edit that clears the tells. Stripping the voice is the goal only when the voice is a model's.

These rules apply on top of that skill:

- Specific verbs over vague ones. "Generates a report" not "handles report generation."
- No marketing language.
- No excessive enthusiasm.

## Input

$ARGUMENTS

If `$ARGUMENTS` is a path to an existing file, read the file. Otherwise treat it as the text itself. If empty, ask for the text to rewrite (you may offer to read it from the clipboard).

## Lint

Before and after rewriting, lint the draft with Vale to find its alerts. It prints one per line (`path:line:col:check:message`):

```bash
vale --config="${CLAUDE_SKILL_DIR}/../../.vale.ini" --output=line path/to/file.md
```

When the rewrite target is a message body (PR, issue, comment), pipe it on stdin with `--ext=.prbody`, or `--ext=.commitmsg` for a commit message.

Fix every hard tell (em dash, copula avoidance, hedging, filler, vocabulary, and the other fixed-phrase checks), then re-run until those are clean.

Treat `marketing verb` findings as advisory. The script flags each one, but the live hook only objects when their weighted sum is high enough, so a lone marketing verb may be fine. Consider each in context and replace the ones that read as promotional rather than driving the count to zero.

## Check

Once the tells are clean, answer the questions in [`references/check.md`](references/check.md) against the rewrite beside the original. They cover the failures a detector cannot see: invented or dropped claims, cutting out of proportion to the slop, and a distinctive sentence flattened for consistency. Fix what fails and re-check.

## Output

Display the rewritten text directly. Do not wrap it in a code block unless the input was code.