Docs voice

From liquidz00/Patcher · View interactive version

Docs voice is an AI agent skill from the GitHub repository liquidz00/Patcher. Review a Patcher documentation file (or glob) against the project's voice rules and propose rewrites that drop robotic patterns: "Patcher is designed to..." preambles, heading-restating lead paragraphs, hedged passive voice, jargon, diminishing language, and em-dashes. Defaults to report-only with s

How to use this skill

Skill file

docs-voice

Patcher's docs sit in docs/ as MyST markdown. They tend toward robotic patterns

that the user has explicitly flagged: lead paragraphs that restate the heading,

hedged passive voice, jargon that hides the user benefit, "Patcher is designed

to..." preambles, and em-dashes (a common AI tell). This skill reviews a target

file (or glob) against those rules and proposes rewrites.

Required argument

A file path or glob, relative to the repo root or absolute. Examples:

Resolve the path before reading. If it doesn't exist, say so and stop.

Modes

Two modes; default is review.

edit anything. Output is a per-file report (see Output below).

"rewrite", "fix", "do it", "go ahead". If unsure, stay in review mode and ask.

In apply mode, still surface the diff (before → after) for each change so the user

can spot bad rewrites. Edit one file at a time.

Voice rules

Apply these in order. Each has an example before/after to anchor the rewrite.

1. Drop "Patcher is designed to..." / "Patcher provides..." preambles

These hedge the verb and bury the action.

2. Drop heading-restating lead paragraphs

If the lead paragraph says what the H1/H2 already said, cut it or replace it with

the why the user is on this page.

data from Jamf and writes reports to disk..."

3. Drop hedged passive voice

Phrases like "is designed to", "allows you to", "provides the ability to", and

"when something goes wrong" soften statements that should be direct.

state when something goes wrong."

4. Lead with user outcome, not implementation

The reader cares what they get, not what's underneath.

a single credential model."

5. Strip in-house jargon unless defined

Words like "cross-references", "surfaces", and "semantics" hide the user benefit.

Replace with plain verbs.

catalog to surface automation-ready apps."

6. Drop diminishing language

Words like "small set", "tweaks", "just", "simply", and "basic" undersell the

feature and add no content.

7. Drop "This page describes..." / "This section covers..." openers

8. No em-dashes

Em-dashes (—, U+2014) read as an AI tell. Drop them from prose entirely. Use

parentheses, a semicolon, a period split, or a comma, depending on the rhythm.

The only acceptable dash-like character in prose is the hyphen (-, U+002D)

used inside a bullet definition pattern. That's a hyphen, not an em-dash.

If a file uses -- (double-hyphen, which some markdown renderers turn into an

em-dash), flag it the same way and recommend the same replacements.

Detection patterns (start here, then read for context)

grep -nE against the file is a useful pre-pass but not authoritative. False

positives are common, and the worst offenders aren't pattern-matchable. Use these

to seed the review, then read the surrounding paragraph:

^Patcher (is|provides|supports|allows|enables|offers)
^This (page|section|guide|document) (describes|covers|explains|outlines)
\b(is designed to|allows you to|provides the ability to|makes it (easy|easier|possible))\b
\b(simply|just|basic|small set of|tweaks)\b
\b(cross-?references?|surfaces?|semantics)\b
—

The last line is a literal em-dash (U+2014). Em-dash hits are usually real

offenders, not false positives.

Read every flagged line in context before proposing a rewrite. Don't blindly

substitute. A paragraph using "surface" as the verb is robotic; a code comment

using "surface" as a noun isn't.

Output format

For each file reviewed, emit a block like this:

docs/guides/export.md
─────────────────────────────────────────────────────────────

L9  rule 2 (heading-restating) + rule 5 (jargon)
    before: The `export` command (and `PatcherClient.export`) pulls patch management
            data from Jamf and writes reports to disk...
    after:  Fetch the latest patch data and write it in your chosen format.

L24 rule 1 (preamble) + rule 3 (hedged passive)
    before: Patcher is designed to handle long-running exports gracefully...
    after:  Long-running exports run unattended. Cancel with Ctrl+C.

L40 rule 8 (em-dash)
    before: The export pipeline runs in batches — typically 5 at a time.
    after:  The export pipeline runs in batches (typically 5 at a time).

(3 offenders across 78 lines)

For glob targets, emit one block per file plus a summary line at the end:

Reviewed 7 files · 14 offenders · 5 files clean

If a file is clean, print:

docs/concepts/architecture.md - clean

What this skill does NOT do

or ::: fenced blocks. Voice rules apply to prose only.

voice conventions (changelog terseness, contributor-facing tone). Scope is docs/.

to the IA audit, not the voice pass.

flag it but keep the original. Note the conflict in the output.

Edge cases

page-opener paragraphs styled larger. Apply the rules; the styling is orthogonal

to the content.

shells with no prose to review. If the glob includes them, output:

docs/reference/foo.rst - skipped (autodoc-only).

in any rewrite.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.