preservation-verifier
What it does
This skill compares an original text with its rewrite and flags any protected content that changed or went missing. It is for writers and editors checking rewrites before they publish.
When to use it
- ✓When you have an original and a rewritten version and want to confirm nothing important changed.
- ✓When a rewrite may have changed numbers, links, code or quotes.
- ✓When a file edit needs a final check against its earlier version.
Skill link
https://github.com/conorbronsdon/avoid-ai-writing/blob/main/skills/preservation-verifier/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Here is my original and the rewritten version. Can you check that all quotes, links and numbers were kept?”
5 new skills a week. 1 minute to read.
How it works
The agent compares the two versions for protected items such as code, frontmatter, links, tables and numbers. It returns a pass, review or fail status with the specific problems listed.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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-routerviaROUTEwhen the user directly supplies before and after material.voice-preserving-rewriterviaVERIFYafter returned-text rewriting.file-edit-in-placeviaVERIFYafter 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:executedonly if the bundled validator ran, otherwisemodel_only.verification_summary.status:PASS,REVIEW, orFAIL.- 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
REPAIRtovoice-preserving-rewriterwhen returned text failed preservation and the shared editing budget has room.REPAIRtofile-edit-in-placewhen a named file failed preservation and the shared editing budget has room.RECHECKtoai-writing-detectoronly when convergence or a residual audit was part of the user's request.- Stop on
PASSunless 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 representati
FAQ
What does it check?
It checks code, frontmatter, quotes, tables, links, paths, numbers and headings, according to the skill.
What if one version is missing?
The skill says it needs both the original and the current version, and will not guess the comparison.
Does a fail stop the work?
Yes. The skill treats a fail as a blocking result until the text is repaired.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 5.4k
- Ranking position
- #14956
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
ai-writing-detector
5.4kHelps your agent scan a text for common AI-writing patterns and list the flags, without rewriting the text.
avoid-ai-writing-router
5.4kHelps your agent pick the right writing check or edit for a request, such as auditing, rewriting, verifying or explaining AI-writing flags.
false-positive-reviewer
5.4kHelps your agent explain what AI-writing flags mean, and why a detector result cannot prove who wrote a text.
file-edit-in-place
5.4kHelps your agent clean up AI-style phrasing in a named file, using small targeted edits and then checking that the content still matches.
Similar skills
obsidian-vault-maintainer
394kHelps your agent keep an Obsidian-friendly memory vault tidy, with working wiki links, consistent properties, and safe generated sections.
wiki-maintainer
394kHelps your agent maintain an OpenClaw memory wiki with repeatable pages, safe managed blocks, and checks for contradictions or gaps.
obsidian
394kLets your agent read, search, create, and edit Obsidian notes, tasks, links, and properties using the official Obsidian command line.