# avoid-ai-writing

> An agent skill with rewrite, detect and edit-in-place modes, backed by a deterministic detector that scores prose 0–100 and gates it in CI

- Category: Agents & Automation / Agent Skills & Plugins
- Language: JavaScript
- Licence: MIT
- Repository: https://github.com/conorbronsdon/avoid-ai-writing
- Canonical page: https://ai-tldr.dev/tools/avoid-ai-writing/
- Updated: 2026-09-23

## In short

avoid-ai-writing is a portable writing skill by Conor Bronsdon for Claude Code, OpenClaw, Hermes, Codex and any agentskills.io-compatible agent. It audits a draft for "AI-isms" and either reports them or removes them. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in JavaScript and licensed MIT.

## Overview

avoid-ai-writing is a portable writing skill by Conor Bronsdon for Claude Code, OpenClaw, Hermes, Codex and any agentskills.io-compatible agent. It audits a draft for "AI-isms" and either reports them or removes them. Three modes cover the jobs: rewrite (the default) flags patterns, applies up to two editing passes and returns one final version; detect flags patterns without changing anything and separates real problems from judgment calls; edit changes a prose file in place with minimal, targeted edits and refuses source code, configuration and generated data. An optional voice profile (casual, professional, technical, warm or blunt) sets how the result should sound.

What sets the project apart from a prompt-only skill is the second half of the repository: a deterministic, zero-dependency detection engine in JavaScript that runs in Node 18+ or the browser. The skill reports which patterns are present and how severe (P0/P1/P2); the engine is the single source of the numeric 0–100 score. The same engine is published on npm as avoid-ai-writing-detector with a command-line scorer, ships as a GitHub Action and a pre-commit hook that fail on findings per file, and is wrapped by a separate read-only MCP server. A preservation validator compares an original and a rewrite to check that code, frontmatter, tables, URLs, paths and headings survived.

The rules are explicit rather than vibes-based. As of v3.36.0 (released 2026-09-23) the README describes a 112-entry word replacement table across three tiers plus ten Tier 3 phrases, where Tier 1 words flag unless an exception applies, Tier 2 words flag when they cluster and Tier 3 words flag only at high density, and a catalog of 74 pattern categories with before/after examples, the count enforced against references/patterns.md in CI. The rules and detector are calibrated for English, and the project is MIT-licensed.

## What it does

- Three modes: rewrite (default, one final version after up to two passes), detect (flag only, grouped by P0/P1/P2 severity) and edit (minimal in-place changes to a named prose file)
- `--iterate 1|2` caps the number of editing passes, and the skill reports how many it used plus any intentional, protected or unresolved findings
- Optional voice profiles — casual, professional, technical, warm or blunt — set the register independently of the audience context
- Tiered word table with a specific plainer alternative for every flagged word ("leverage" → "use"), plus a pattern catalog with before/after examples
- Zero-dependency detector on npm (`avoid-ai-writing-detector`) with an `analyzeText()` API and a CLI that prints the full result as JSON
- CI gate as a GitHub Action and a pre-commit hook that fail on deterministic findings per file, with a default threshold of 6
- Installs as a Claude Code / Cowork plugin, a ClawHub skill, a Cursor rule, a Hermes or Codex skill directory, or a single self-contained Markdown file

## Getting started

The skill is a directory of Markdown files your agent reads; the detector is an optional npm package for scoring and CI. Keep `SKILL.md` together with `references/patterns.md` — the entry file loads the catalog before it audits.

1. Install the skill in Claude Code

   Clone the repository into your skills directory. The same clone pattern works for OpenClaw (`~/.openclaw/skills/`), Hermes (`~/.hermes/skills/writing/`) and Codex (`.agents/skills/`).

```bash
git clone https://github.com/conorbronsdon/avoid-ai-writing ~/.claude/skills/avoid-ai-writing
```

2. Or install it as a plugin

   Claude Cowork only loads skills from installed plugins, and the repository doubles as a single-plugin marketplace. The same commands give Claude Code a versioned, updatable install.

```text
/plugin marketplace add conorbronsdon/avoid-ai-writing
/plugin install avoid-ai-writing@conorbronsdon-skills
/reload-plugins
```

3. Trigger it on a draft

   Ask in plain language for a rewrite. Words such as "detect", "flag only", "audit only" or "scan" switch to detect mode, which reports issues and an assessment without touching the text.

```text
Remove AI-isms from this post
Audit this draft for AI tells
Scan this paragraph, flag only
```

4. Score a file with the detector CLI

   The npm package ships a zero-dependency CLI that prints the full `analyzeText()` result as JSON, including the 0–100 score. `--context` adjusts the scoring for the kind of document.

```bash
npx --package avoid-ai-writing-detector avoid-ai-writing draft.md
cat draft.md | npx --package avoid-ai-writing-detector avoid-ai-writing --context technical
```

5. Gate prose in GitHub Actions

   The Action fails a run when any scanned file exceeds the finding threshold, and exposes `pass`, `total-findings` and `failed-files` as step outputs from v3.36.0. Pin the release tag, or the full commit SHA for stricter supply-chain control.

```yaml
steps:
  - uses: actions/checkout@v7
  - id: gate
    uses: conorbronsdon/avoid-ai-writing@v3.36.0
    with:
      glob: "**/*.md"
      threshold: "6"
      context: technical
```

## When to use it

- Scan a draft you do not want altered — a quote, a legal text, a teammate's post — with detect mode and decide yourself which flags matter
- Tidy one prose file in a repository with edit mode, so only the AI-sounding passages change and the rest of the file is left alone
- Fail a docs pull request in CI, or a commit through pre-commit, when Markdown files cross a set number of AI-writing findings
- Give a scoring tool or another agent a numeric AI-writing score through the npm library or the read-only MCP server, without any rewriting

## Version history

- 2026-09-23 v3.36.0: Added `--json` output to the avoid-ai-writing-gate CLI and `pass` / `total-findings` / `failed-files` step outputs to the GitHub Action. Rewrite mode returns one final version after audit, correction and verification instead of a first draft plus a superseding copy.
