К основному содержанию
скилл CX Codex

meaning-preserving-rewrite — скилл для Claude Code: как установить

Упрощает формулировки регламентов, инструкций и планов без потери нормативных требований. Помогает сократить текст, сохранив каждую оговорку.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add srinitude/skills --skill meaning-preserving-rewrite -a claude-code
Открыть на GitHub

Что делает meaning-preserving-rewrite

Скилл регламентирует переписывание нормативных документов, планов и заметок понятным языком. Главный инструмент контроля — смысловой реестр (meaning ledger). Каждое исходное предложение получает стабильный идентификатор, после чего агент фиксирует его точный смысл и строгость требования (must, must not, may или prefer). Действие drop строго запрещено: исходное правило разрешено оставить, разделить, перенести или уточнить, но не выкинуть.

Процедура состоит из пяти шагов: фиксация исходных файлов с хешами, разметка реестра, сверка официальных источников, переписывание и валидация. Скилл запрещает менять пунктуацию или кавычки глобальной автозаменой, чтобы не повредить примеры кода и системные пути. Проверка стиля запускается только по прозе.

Скилл не предназначен для стандартного рефакторинга программного кода или свободных черновиков, где разрешено опускать подробности.

Какие задачи решает

  • Сократить объём регламента или стандарта без потери условий
  • Привести документацию проекта к понятному языку
  • Проверить сохранение всех требований по смысловому реестру
  • Защитить синтаксис примеров кода при текстовой вычитке

Примеры запросов агенту

  • Перепиши регламент из security-policy.md понятным языком с сохранением всех требований.
  • Сократи deploy-checklist.md, заполни смысловой реестр и проверь хеши файлов.
  • Упрости формулировки в architecture-rules.md, не меняя уровень строгости правил must и must not.

Как установить meaning-preserving-rewrite

1Через Skills CLI (Vercel)

npx skills add srinitude/skills --skill meaning-preserving-rewrite -a claude-code

2Вручную: положить файлы

~/.claude/skills/meaning-preserving-rewrite/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/meaning-preserving-rewrite/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о meaning-preserving-rewrite

Как установить meaning-preserving-rewrite в Claude Code?

Выполните команду npx skills add srinitude/skills --skill meaning-preserving-rewrite -a claude-code. Также файл скилла можно сохранить по пути ~/.claude/skills/meaning-preserving-rewrite/SKILL.md.

Что делает meaning-preserving-rewrite?

Он пошагово ведёт агента через вычитку и упрощение документов. Каждое условие заносится в отдельный реестр, что исключает случайное удаление ограничений или смягчение правил.

Для каких задач этот скилл не подходит?

Инструкция запрещает использовать его для обычного рефакторинга кода, написания свободного креативного текста или кратких пересказов, допускающих пропуск деталей.

Исходный текст

SKILL.md · MIT
---
name: meaning-preserving-rewrite
description: 'Use when rewriting rules without meaning loss.'
license: MIT
metadata:
  author: Kiren Srinivasan
  version: '0.1.1'
  scope: 'user'
---

# Meaning-preserving rewrite

## Outcome

Rewrite policies, plans, standards, notes, reports, and templates in clear prose without dropping, weakening, broadening, or hiding a rule or decision.

## Trigger and boundary

Use when a user asks for simpler policy or plan wording, a governed artifact needs a stated voice, shortening must preserve every clause, or a package needs a baseline, ledger, rewrite, and proof.

Do not use for ordinary code refactors, routine summaries with permission to omit detail, or one-off creative copy.

## Required composition

Resource gate: run `mise run validate` before using package files named here.

Read [dependency reconciliation](references/dependency-reconciliation.md) before work that also changes a skill package or depends on a host writing policy. This skill owns clause-level meaning and voice. A package simplification peer owns package modes and decomposition when one is installed.

If no equivalent owner exists, keep the package boundary unchanged. Do not invent a missing dependency or weaken a branch to avoid it.

## Writing standard

Resource gate: run `mise run validate` before using package files named here.

- Start with the result or rule.
- Use common words, active voice, and natural contractions.
- Keep one rule per bullet when possible.
- Name the owner, file, command, count, or check.
- Define a technical term on first use.
- Preserve exact paths, commands, hashes, setting names, source quotes, backups, and raw output.
- Keep requirement strength explicit with `must`, `must not`, `may`, or `prefer`.
- Keep exceptions as narrow as their sources.
- Do not depend on prior conversation context.
- Avoid em and en dash characters, filler, hedges, and polished closers.
- Keep readable spacing between headings, paragraphs, and lists.
- Put always-needed rules in the parent file. Move branch detail only to an owner-appropriate linked file with a backlink.
- Keep each governed Markdown file below its host limits. Never remove readable spacing only to pass a size limit.

Read [voice checks](references/voice-check.md) before the final prose scan.

## Procedure

### 1. Capture the baseline

Resource gate: run `mise run validate` before using package files named here.

1. Read the live sources instead of reconstructing them from memory.
2. Record each present source path, hash, bytes, lines, headings, and mode.
3. Mark a future path absent instead of inventing its hash.
4. Copy each live target to an owner-only backup and prove byte identity.
5. Record source and repository state when their behavior affects the rewrite.
6. Stop on unexplained source drift.

Use [the baseline and ledger contract](references/baseline-and-ledger.md) for fields and checks.

### 2. Build the meaning ledger

Give every source clause a stable ID. Split a paragraph when it contains several rules.

For each clause record the source, exact text, meaning, requirement strength, destination, replacement, action, and review state. Allowed actions are `keep`, `split`, `move`, and `clarify`. Never use `drop`.

Add each new voice rule and the rule that the same voice applies to every planned artifact. Keep map and tuple shapes consistent in generated ledgers.

### 3. Check current sources

Resource gate: run `mise run validate` before using package files named here.

When a rewrite claims complete official documentation or primitive coverage, inventory the current official source set before writing. Do not trust a stale snapshot or invent a page. Follow [the documentation inventory contract](references/docs-inventory.md).

### 4. Rewrite

1. Preserve every accepted meaning and its requirement strength.
2. Keep always-needed rules in the parent artifact.
3. Move branch-specific detail only to an owner-appropriate linked file.
4. Keep one canonical owner for each procedure.
5. Update ledger targets after every wording or section change.
6. Diff live files against backups and tie each material block to ledger IDs.

### 5. Validate

Resource gate: run `mise run validate` before using package files named here.

Check all of these:

- Complete ledger coverage, unique IDs, allowed actions, approved review states, and exact target presence.
- Line and character limits, links, context loading, hashes, modes, and secret safety.
- Voice on prose only. Skip exact quotes, backups, raw output, inline code, and code fences that must remain exact.
- Clear grammar on a full readback.
- Agreement between human and machine reports.
- Separate component result and whole-change status.

Never run a global contraction or punctuation replacement across mixed prose and code. Patch the exact prose occurrence, then recheck nearby code and syntax.

Temporary verifiers belong in an operating-system temp location and must be deleted after use. Label a focused probe as ad hoc rather than suite green.

Use [the validation contract](references/validation-contract.md) for review packets and closeout. If waiting for a separate reviewer would stop authorized main work and no external rule requires one, run the same checks in the main worker and label the result non-independent.

## Proof threshold

Return `PASS` only when:

- Every source clause has an approved mapping and no action is `drop`.
- Every replacement keeps the source meaning, scope, exception, and strength.
- Baseline and backup hashes still match.
- Every linked target exists and matches the ledger.
- Voice, grammar, security, and package checks pass.
- A component result is not presented as whole-change proof.
- Temporary verification files are gone.

Use `PARTIAL` when bounded component proof passes but the whole threshold is incomplete. Use `BLOCKED` when source drift, missing authority, inaccessible evidence, or an unresolved dependency prevents a safe rewrite.

## Common failures

- Hashing a path that does not exist yet.
- Omitting a source bullet or narrow exception.
- Replacing an exact rule with a vague summary.
- Leaving stale ledger text after a wording fix.
- Scanning checker data or inline code as prose.
- Corrupting code examples through whole-file cleanup.
- Reporting a component PASS as whole-change PASS.
- Claiming independent review when the main worker performed it.
- Leaving temporary builders or stale review packets.

## Package resources

Use `assets/meaning-ledger-template.json` as a field template. Read `examples/policy-rewrite.md`, `examples/blocked-drift.md`, or `examples/package-reconciliation.md` for visible runs. Package maintainers use `references/`, `mise run test`, and `evals/`, then run `mise run ci`; ordinary rewrites do not load those paths.

## Factory execution contract

The accepted outcome is: Rewrite text in plain language while preserving every named meaning invariant and recording semantic loss checks. Preserve current meaning invariant behavior while changing its smallest owner.

1. Freeze the current package with `mise run ci` and record its digest.
2. Run `mise run domain-research-policy`, then judge the current meaning invariant sources and counterevidence.
3. Run `mise run agentic-request` for the named meaning invariant operation. Keep semantic choices with the model.
4. Run `mise run decision-policy`, `mise run ci`, and the behavioral evals. Return to the lowest failed owner.
5. Run `mise run invocation-policy -- <receipt>` and account for every task or its domain-specific non-use.
6. Optionally run `mise run improvement-policy`. Keep one changed dimension only if no protected dimension regresses.

Load `assets/use-case-contract.json` through `mise run use-case-policy` and `evals/evals.json` through `mise run evals` only when their contracts are needed.

Mise owns repeatable mechanics, ordering, receipts, and checks. The model owns interpretation, causal judgment, creative work, and direct perception that code cannot supply. Stop on missing authority, stale evidence, or a failed gate.

© Kiren Srinivasan · MIT · srinitude/skills

Похожие скиллы

Все скиллы по теме «Тексты и документация» →
grill-with-docs Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну и по ходу создаёт ADR и глоссарий. Подойдёт перед началом сложной разработки. 1 219 756установок skill-creator официальный anthropics Помогает создать новый скилл, доработать существующий и проверить результат через тестовые промпты и оценки. 414 180установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок handoff Matt Pocock Собирает текущий диалог в документ передачи, чтобы другой агент продолжил работу с нужным контекстом. Нужен при смене сессии или исполнителя. 1 038 491установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. 990 453установок domain-modeling Matt Pocock Скилл помогает уточнять термины проекта, вести GLOSSARY.md и фиксировать архитектурные решения в ADR. Нужен, когда модель предметной области меняется. 876 391установок

Из того же набора17

visual-design-system-extractor Переводит скриншоты, мудборды и веб-страницы в строгую дизайн-систему формата YAML. Подбирает редкие шрифты из Google Fonts и связывает каждый токен с видимыми деталями. CX Codex +1 687установок skill-factory Создаёт, обновляет и стандартизирует скиллы для агентного кодинга. Пригодится, когда нужны структура, проверки, тесты и рабочий граф задач Mise. CX Codex +1 681установок always-current-datetime Скилл обновляет локальную дату и время перед каждым прямым ответом. Нужен агенту, который работает с относительными датами, сроками и временными зонами. CX Codex +1 558установок outcome-bounded-work Скилл отделяет обязательный результат и доказательства от заменяемого способа работы. Пригодится для разбора задач, планов и инструкций с лишними рецептами. CX Codex +1 555установок timebox Скилл для ИИ-агента, который берётся за задачу только если успевает довести её до конца и проверить результат к названному сроку. CX Codex +1 544установок logic-audit Скилл выявляет логические противоречия и пробелы в спецификациях, планах и текстах. Он проверяет утверждения по источникам и предлагает точечные исправления. CX Codex +1 544установок would-humans-actually Скилл оценивает вероятность реальных действий людей на базе эмпирических данных. Отделяет высказанные намерения от фактического поведения. CX Codex +1 543установок simplify-skill Упрощает разросшиеся скиллы агентов без потери логики и контрактов. Помогает убрать случайную сложность инструкций, когда поведение ломать нельзя. CX Codex +1 540установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой