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.

How to use it

  1. Hit Copy SKILL.md — or use the Claude Code line below to get every file.
  2. Claude: ⋯ → Download .md, then Customize → Skills → Add → Upload skill.
    ChatGPT: make a Project and paste it into Instructions.
    Neither? Paste it at the top of a new chat — it works for that chat.
  3. Describe your job in plain words. The AI follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit conorbronsdon/avoid-ai-writing/skills/preservation-verifier#main ~/.claude/skills/preservation-verifier

For one project only, change the path to .claude/skills/preservation-verifier. This skill also uses before.md, after.md — copying SKILL.md alone won't be enough. See the folder on GitHub.

Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Show the full text104 lines
preservation-verifier/SKILL.md104 lines5.8 KBpushed 8d agoRawView on 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-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 before.md after.md

For programmatic use:

const { validate } = require("./scripts/validate.js");

The validator checks protected structures and reports blocking errors separately from warnings. 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 preservation error was found. Continue only if another requested stage remains.

REVIEW

Warnings or semantic changes need judgment but are not automatically blocking. 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 content changed or disappeared. Identify the correct repair owner from source kind:

  • returned text -> voice-preserving-rewriter
  • named file -> file-edit-in-place

Pass only the blocking repair scope and existing envelope. Do not ask the repair owner to redo clean parts. If pass.index has reached pass.max, report the unresolved failure instead of requesting another mutation.

Repair-loop limit

At most one repair re-entry is allowed, and only while the requested editing budget has room. The repair consumes the next editing pass. Verification itself does not consume a pass. After repair, verify once more. If that check still fails, stop and report the unresolved errors. Never cycle indefinitely.

Output

Return PASS, FAIL, or REVIEW, verifier execution status, blocking preservation errors, warnings, any separate semantic-guard review, the suggested repair owner, and whether the bounded repair opportunity has already been used.

1---
2name: preservation-verifier
3description: 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.
4---
5 
6# Preservation Verifier
7 
8Verify that a rewrite or file edit kept the content the original `../avoid-ai-writing/SKILL.md` says to protect.
9 
10For cross-Skill work, follow `../avoid-ai-writing-router/references/handoff-contract.md` and `../avoid-ai-writing-router/references/skill-graph.json`.
11 
12## Connection contract
13 
14### Incoming
15 
16Accept before/after verification from:
17 
18- `avoid-ai-writing-router` via `ROUTE` when the user directly supplies before and after material.
19- `voice-preserving-rewriter` via `VERIFY` after returned-text rewriting.
20- `file-edit-in-place` via `VERIFY` after an authorized named-file mutation.
21 
22Require both original and current versions. If either is unavailable, return control to the router rather than inventing a comparison.
23 
24### Produce
25 
26Update the handoff envelope with:
27 
28- `execution_evidence.verifier`: `executed` only if the bundled validator ran, otherwise `model_only`.
29- `verification_summary.status`: `PASS`, `REVIEW`, or `FAIL`.
30- blocking errors and warnings.
31- exact repair target when repair is possible.
32 
33A `FAIL` is a blocking workflow result. The rewrite/edit stage is not complete merely because text was produced or a file write succeeded.
34 
35### Outgoing
36 
37- `REPAIR` to `voice-preserving-rewriter` when returned text failed preservation and the shared editing budget has room.
38- `REPAIR` to `file-edit-in-place` when a named file failed preservation and the shared editing budget has room.
39- `RECHECK` to `ai-writing-detector` only when convergence or a residual audit was part of the user's request.
40- Stop on `PASS` unless another user-requested stage remains.
41- Stop and report on a second verification failure. Do not start another repair loop.
42 
43## Architecture and implementation lenses
44 
45Apply both encoded lenses from `../avoid-ai-writing-router/references/agency-role-lenses.md`:
46 
47- `agency-software-architect`: verification is a boundary gate with explicit ownership and bounded repair cycles.
48- `agency-senior-developer`: execution claims require actual command evidence, errors propagate, and before/after state remains attributable to the correct target.
49 
50The verifier does not rewrite content itself.
51 
52## Preferred deterministic path
53 
54The bundled `scripts/validate.js` is an exact copy of the source repository's preservation validator. When Node execution is available, run:
55 
56```bash
57node scripts/validate.js before.md after.md
58```
59 
60For programmatic use:
61 
62```js
63const { validate } = require("./scripts/validate.js");
64```
65 
66The validator checks protected structures and reports blocking errors separately from warnings. 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.
67 
68If execution is unavailable, compare the original and rewrite manually using the same preservation contract and label the result as `model_only`.
69 
70## Additional protected constraints
71 
72In 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.
73 
74When `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.
75 
76Do not claim the deterministic validator checked semantic representation details that it does not implement. Report that portion separately as model-only semantic review.
77 
78## Result handling
79 
80### PASS
81 
82No blocking preservation error was found. Continue only if another requested stage remains.
83 
84### REVIEW
85 
86Warnings or semantic changes need judgment but are not automatically blocking. 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.
87 
88### FAIL
89 
90Protected content changed or disappeared. Identify the correct repair owner from source kind:
91 
92- returned text -> `voice-preserving-rewriter`
93- named file -> `file-edit-in-place`
94 
95Pass only the blocking repair scope and existing envelope. Do not ask the repair owner to redo clean parts. If `pass.index` has reached `pass.max`, report the unresolved failure instead of requesting another mutation.
96 
97## Repair-loop limit
98 
99At most one repair re-entry is allowed, and only while the requested editing budget has room. The repair consumes the next editing pass. Verification itself does not consume a pass. After repair, verify once more. If that check still fails, stop and report the unresolved errors. Never cycle indefinitely.
100 
101## Output
102 
103Return `PASS`, `FAIL`, or `REVIEW`, verifier execution status, blocking preservation errors, warnings, any separate semantic-guard review, the suggested repair owner, and whether the bounded repair opportunity has already been used.
104 

Discussion

From GitHub

1 comment on 1 thread

I'm starting on this as my first contribution here. I'll derive the list from what scripts/sync-plugin-skill.sh and scripts/sync-cursor-rules.sh actually write, keep the globs narrow so cursor-rules/README.md and the hand-written sub-skill SKILL.md files stay out, and open a PR shortly.

Alternatives

Also in Editing & polish