Skip to content
Content
Skill

/preservation-verifier

Use when the user provides an original and rewritten version, asks whether a rewrite preserved protected content, or wants a deterministic check for code, frontmatter, quotes, tables, links, paths, numbers, headings, and residual AI-pattern regressions.

From plugin
avoid-ai-writing
5.5k7 skills

Claude Code

$ npx -y skills add conorbronsdon/avoid-ai-writing --skill preservation-verifier --agent claude-code

SKILL.md

preservation-verifier.SKILL.md
name: preservation-verifier
version: 3.38.0
license: MIT
description: Use when the user provides an original and rewritten version, asks whether a rewrite preserved protected content, or wants a deterministic check for code, frontmatter, quotes, tables, links, paths, numbers, headings, and residual AI-pattern regressions.

Preservation Verifier

Verify that a rewrite or file edit kept the content the original `../avoid-ai-writing/SKILL.md` says to protect.

For cross-Skill work, follow `../avoid-ai-writing-router/references/handoff-contract.md` and `../avoid-ai-writing-router/references/skill-graph.json`.

Connection contract

Incoming

Accept before/after verification from:

  • `avoid-ai-writing-router` via `ROUTE` when the user directly supplies before and after material.
  • `voice-preserving-rewriter` via `VERIFY` after returned-text rewriting.
  • `file-edit-in-place` via `VERIFY` after an authorized named-file mutation.

Require both original and current versions. If either is unavailable, return control to the router rather than inventing a comparison.

Produce

Update the handoff envelope with:

  • `execution_evidence.verifier`: `executed` only if the bundled validator ran, otherwise `model_only`.
  • `verification_summary.status`: `PASS`, `REVIEW`, or `FAIL`.
  • blocking errors and warnings.
  • exact repair target when repair is possible.

A `FAIL` is a blocking workflow result. The rewrite/edit stage is not complete merely because text was produced or a file write succeeded.

Outgoing

  • `REPAIR` to `voice-preserving-rewriter` when returned text failed preservation and the shared editing budget has room.
  • `REPAIR` to `file-edit-in-place` when a named file failed preservation and the shared editing budget has room.
  • `RECHECK` to `ai-writing-detector` only when convergence or a residual audit was part of the user's request.
  • Stop on `PASS` unless another user-requested stage remains.
  • Stop and report on a second verification failure. Do not start another repair loop.

Architecture and implementation lenses

Apply both encoded lenses from `../avoid-ai-writing-router/references/agency-role-lenses.md`:

  • `agency-software-architect`: verification is a boundary gate with explicit ownership and bounded repair cycles.
  • `agency-senior-developer`: execution claims require actual command evidence, errors propagate, and before/after state remains attributable to the correct target.

The verifier does not rewrite content itself.

Preferred deterministic path

The bundled `scripts/validate.js` is an exact copy of the source repository's preservation validator. When Node execution is available, run:

node scripts/validate.js --residual-policy warn before.md after.md

For programmatic use:

const { validate } = require("./scripts/validate.js");
const result = validate(original, rewritten, { residualPolicy: "warn" });

Use the explicit `warn` residual policy for editorial verification. The validator exposes mechanical `preservation` results separately from `quality` diagnostics while retaining top-level errors, warnings, and stats. Residual growth stays visible as a warning; it is not proof of content damage and does not by itself authorize a repair. A skipped, unavailable, or unscored quality check is not a clean residual audit. It does not decide whether a semantic change was grounded in an explicit user correction or whether the user specifically authorized editing a normally protected span. Never claim it ran unless the current host executed it.

If execution is unavailable, compare the original and rewrite manually using the same preservation contract and label the result as `model_only`.

Additional protected constraints

In addition to the canonical validator's structural checks, apply the canonical editing contract in a separate semantic review. Check remaining meaning, attribution, quantities and units, negation, conditions, causality, uncertainty, and speaker experience. Treat an explicit user correction as the intended change rather than an invention. If the user specifically placed a normally protected span in scope, verify that requested change and continue protecting its data and attribution; do not infer permission from a general cleanup, style, or voice request. Report this review as model-only rather than claiming the deterministic validator performed it.

When `human_representation_sensitive: true`, review identity and representation details protected by the `agency-inclusive-visuals-specialist` lens. A structurally valid rewrite may still require `REVIEW` or `FAIL` if it erased or genericized material cultural, geographic, disability, attire, skin-tone/lighting, physical-reality, or anti-stereotype constraints.

Do not claim the deterministic validator checked semantic representation details that it does not implement. Report that portion separately as model-only semantic review.

Result handling

PASS

No blocking mechanical preservation error was found and no warning or semantic concern remains unresolved. If the user requested a residual audit, PASS also requires `quality.status: checked`; `skipped`, `unavailable`, or `unscored` requires REVIEW even when a number-spelling warning has been resolved. This does not prove semantic fidelity. Continue only if another requested stage remains.

REVIEW

Warnings or semantic changes need judgment but are not automatically blocking. Review `number-added`, `number-missing`, and `residual-grew` against the source and context; number spelling changes can be legitimate. Report unavailable or unscored residual analysis as incomplete when that audit was required. This includes a literal validator difference that corresponds to a specifically requested edit of normally protected content: review it against that scope and its remaining data and attribution constraints instead of automatically repairing it back to the original. Explain the exact uncertainty.

FAIL

Protected con

Read more
@conorbronsdon
Ships withavoid-ai-writing

Audit & rewrite content to remove AI writing patterns. A practical skill for any AI agent. Supports detect-only and edit-in-place modes, plus voice profiles.

Stars on GitHub

Momentum

stars in total
5.5k
Star history of conorbronsdon/avoid-ai-writing on GitHub, a chart by star-history.com

Other skills on avoid-ai-writing.

More skills from other plugins.

prompt-lookup

prompt-lookup

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…

@gh-f@gh-fInstall Skill
ppt-master

ppt-master

AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…

@hugohe3@hugohe3Install Skill
morph-ppt

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…

officecli13d33k
@iofficeai@iofficeaiInstall Skill

Questions about preservation-verifier.

Which coding agents can use preservation-verifier?
preservation-verifier installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.