/writing:ai-pattern-detectionfrom writing
Reviews editorial phrase patterns and suggests contextual alternatives. Use when editing content or when the user mentions authenticity or natural voice.
Ships in writing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Review phrase patterns and suggest edits that fit the author’s intent and audience. This skill does not detect authorship or certify naturalness.
These are editorial preferences, not evidence of human or AI authorship. Apply only the requirements chosen by the author or project; other phrase and structure suggestions are advisory. Preserve quotations, code, literal terms, inventories, checklists, questionnaires, intentional punctuation, necessary uncertainty and domain terminology. A flagged phrase can be retained with a reason. Zero highlights and numeric scores are not publication gates. Never invent metrics, experiences, opinions or failures to satisfy a style marker.
These phrases can be uninformative in some contexts; none identifies content as AI-generated:
The scanners detect local contrasts (not … but, X, not Y, rather than),
negated evidence/proof/substitute assertions, listed antonym pairs, significance
labels and asides, empty openers, and generic engagement prompts. Findings are
editing guidance with rule IDs, tiers and suggested changes. Numeric comparisons
are suppressed when both operands have numbers within six tokens of the divider.
Reasons (because, while) and correction cues suppress a match only inside it
or within four tokens, without crossing a semicolon/colon. An unrelated date does
not suppress “It is not just the score in 2026.” Proximity remains a heuristic.
The dated references/current-patterns.json list requires two lexical markers in
one paragraph or four in a file; lone leverage/enhance are ignored. Spectral-only
clusters use watch tier. All three surfaces recognize a narrow rhetorical
adjective triad with or without the Oxford comma: three_item_list in Python,
struct_three_items in validation and diagnostics (watch tier). Inventories remain valid.
Front matter, headings, image alt text, code, quotations, comments, tables and inventory lines are protected. Passive voice and standalone punctuation are not findings.
Paragraph-final explicit moral/lesson openers (3–10 words) are cut tier; generic subjects alone never trigger a closer finding. Numbers, identifiers and code suppress moral findings; quoted scenario names within authored prose are allowed. Adjacent sentences sharing the first two tokens must have parallel predicates with an aligned polarity flip or one listed antonym (cut). Different predicates sharing a negated opener are insufficient. Four consecutive statements of 1–4 words in one paragraph form a check-tier fragment run. Questions and identical-sentence-only runs are excluded. Headings, blank lines and protected whole lines break sequences; wrapped prose lines do not.
Colon reveals are watch tier for a short setup that withholds a complement and a short sentence-final punchline, or an explicit defect revealed through a conditional consequence. Mere colon frequency and neighboring findings never suffice. Lists, definitions, digits/citations, code and quotation introductions are excluded. Ambiguous technical introductions remain unflagged.
Use one campaign set for cross-document comparison:
aiwg writing --cross --json linkedin.md telegram.md x-thread.md
python3 -I scripts/pattern_scanner.py --cross campaign/
python3 -I scripts/pattern_scanner.py --cross --report campaign/
The existing aiwg writing entry point emits a readable report by default and
JSON with --json; Python emits JSON by default and readable output with
--report. Each finding includes a tier, source location and suggested fix.
Campaign rules detect six-word repeated sentences (cut), eight-word runs shared
by at least three documents (check), and three-word opening/closing skeletons
shared by at least three documents (check). Numbers and versions normalize only
for skeletons; phrase runs exclude sentences already reported as repeated.
Every affected occurrence is reported, with related document locations.
The APIs are diagnoseWritingBatch(documents, { cross: true }) and
engine.validateBatch(files, context, { cross: true }). IDs must be unique;
missing campaign files fail the scan. Sets over 200 documents fail with an
explicit size error; split larger sets. Related-location output can still grow
with repetition inside an allowed set. A single-document campaign may report
repeated sentences; phrases and skeletons require distinct documents.
The #4138 reproduction also detects a withheld defect followed by an if
condition and a short consequence (one bug: if …, nothing stopped). The
conditional and consequence together may contain up to sixteen words; ordinary
lists, definitions, code and numeric references stay excluded.
A short consequence, a one-word repair (fixed, patched, repaired or
resolved) and a final explicit moral also form a fragment run. The consequence
may be the final comma clause of a longer sentence. This covers nothing stopped. fixed. always test … while preserving the four-statement threshold for generic
staccato. Moral endings allow a quoted scenario name within authored prose
(always test the "switch is gone" case); entirely quoted text and inline code
remain protected. The negate/assert category includes the short corrective
frame it doesn't anymore (also it does not anymore).
These checks are heuristic. Short generic statements and factual technical
negations remain residuals for review; explicit moral openers and short
corrections can be useful instructions. Findings call for contextual review.
The reproduction produces all six requested categories across Python,
validation and contextual diagnostics, with the comma pair reported as
antithesis-pair and the aside as labelled-significance.
Review frequency in the document and language; there is no universal acceptable ratio for these words:
| Instead of | Use |
|---|---|
| "plays a crucial role" | "handles" / "manages" / "does" |
| "seamlessly integrates" | "works with" / "connects to" |
| "cutting-edge" | "new" / "recent" / specific tech name |
| "Moreover," | [just start the next sentence] |
| "comprehensive solution" | [specific description of what it does] |
| "dramatically improves" | [specific metric: "reduces latency by 40%"] |
| "robust" | "handles X requests/second" / "99.9% uptime" |
Use these only when relevant and supported by the supplied material:
When generating or reviewing content:
The platform seamlessly integrates cutting-edge technology to dramatically improve workflow efficiency. Moreover, it plays a crucial role in enabling next-generation solutions. In conclusion, this comprehensive approach transforms how teams collaborate.
The platform connects to existing tools through standard APIs. Initial tests show 40% faster task completion. Teams report fewer context switches between applications.
The Python scripts/pattern_scanner.py is a legacy regex scanner, not the contextual diagnostic implementation. It:
authenticity_score (0–100) and grade for compatibility, with prose-rate penalties and a deprecation notice; neither measures authorship or publication readinessFor contextual programmatic review, use WritingValidationEngine.diagnose(content, options) or the exported diagnoseWriting API. Results include UTF-16 spans, context, explanations and reasoned exceptions. They carry publicationGate: false. The Python scanner does not implement these context or exception fields.
Python position counts Unicode code points from zero; its column counts code
points from one. Validation location.start/end and diagnostic start/end count
UTF-16 code units from zero, with exclusive ends; validation column counts
UTF-16 units from one. Lines start at one on every surface. These units also apply to structural and
campaign findings and their related source lines. ASCII offsets agree.
For 🧵 Thoughts?, Python gives position 2 and column 3; TypeScript gives start 3
and validation column 4, because the astral character occupies two UTF-16 units.
This skill works with:
/writing-validator command for explicit validationwriting-validator agent for deep analysisreferences/current-patterns.json (opens in a new tab)references/quick-patterns.md (opens in a new tab)references/structural-judgment.json (opens in a new tab)scripts/pattern_scanner.py (opens in a new tab)scripts/structural_judgment.py (opens in a new tab)scripts/structural_patterns.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jmagly/aiwg --plugin writingOther plugins' skills for the same job