Doc Editing
Edit documentation and long-form prose to be clear, precise, and easy to scan.
Response Contract
- Deliverable: apply the requested changes to the target artifact.
- Chat output: no additional output beyond the deliverable.
Document Model
Definitions used to reason about documents and edits.
Semantic Layers
A document can contain two kinds of description.
Meta description
Constraints on how the document should be written or edited, such as audience, scope, tone, formatting expectations, and must-not-change constraints.
Content description
Subject matter that belongs in the document, including anything the user explicitly requests to be included as part of the document.
Structure Forms
A document can be organized using two structural forms.
Module structure
The document is divided into modules by responsibility. Each responsibility has a stable home.
Enumeration structure
Within one responsibility, items are listed as peers under a single framing.
Editing Standards
Apply these standards throughout the edit. Each standard is single-sourced here and referenced elsewhere by its ID.
layers.distinct — Keep layers distinct
Keep meta description distinct from content description unless meta-level material is explicitly part of the subject matter. If the user explicitly requests that meta-level material be included in the document as content, treat it as content.
meaning.preserve — Preserve meaning
Preserve the document’s meaning, claims, and intent while improving clarity and structure.
facts.no_new — No new facts
Do not introduce new factual content, new claims, or new conclusions that are not present in the source text or explicitly provided by the user.
structure.modules — Stable responsibility modules
Use module structure to assign each major responsibility a stable home. Keep module boundaries clear and headings responsibility-oriented. Place meta-level material that is included as content into a deliberate, clearly bounded module.
structure.enumerations — Peer enumerations only
Use enumeration structure only to list peers within one responsibility. If a list mixes responsibilities, restructure it into module structure.
meta.constraints — Enforce meta constraints
Treat meta description constraints as hard constraints. When a potential improvement would violate a meta constraint, prefer preserving the constraint and choose the least-invasive alternative that still improves clarity.
Workflow
Use a repeatable editing pass.
- Identify the document’s subject and extract meta description constraints. Apply
layers.distinct and meta.constraints.
- Confirm what must be preserved and what additions, if any, the user explicitly requested. Apply
meaning.preserve and facts.no_new.
- Establish or repair module structure for major responsibilities, align headings to responsibilities, and relocate material to its responsible module. Apply
structure.modules.
- Normalize enumerations within each module; convert mixed-responsibility lists into module structure. Apply
structure.enumerations and structure.modules.
- Edit prose for clarity and precision without changing intent or adding facts. Apply
meaning.preserve and facts.no_new.
- Do a final pass for internal consistency and constraint compliance.
- Run acceptance checks.
Acceptance Criteria
A revision is complete only if all checks pass.
- Response: Output satisfies the Response Contract.
- Standards satisfied:
layers.distinct, meaning.preserve, facts.no_new, structure.modules, structure.enumerations, meta.constraints.
1---2name: doc-editing-33description: Use when documentation or long-form prose needs structural or clarity-focused revision without intent drift. Goal: documentation is clear, structurally coherent, and faithful to the original intent and scope.4---56# Doc Editing78Edit documentation and long-form prose to be clear, precise, and easy to scan.910## Response Contract1112- Deliverable: apply the requested changes to the target artifact.13- Chat output: no additional output beyond the deliverable.1415## Document Model1617Definitions used to reason about documents and edits.1819### Semantic Layers2021A document can contain two kinds of description.2223- **Meta description**24 Constraints on how the document should be written or edited, such as audience, scope, tone, formatting expectations, and must-not-change constraints.2526- **Content description**27 Subject matter that belongs in the document, including anything the user explicitly requests to be included as part of the document.2829### Structure Forms3031A document can be organized using two structural forms.3233- **Module structure**34 The document is divided into modules by responsibility. Each responsibility has a stable home.3536- **Enumeration structure**37 Within one responsibility, items are listed as peers under a single framing.3839## Editing Standards4041Apply these standards throughout the edit. Each standard is single-sourced here and referenced elsewhere by its ID.4243- **layers.distinct — Keep layers distinct**44 Keep meta description distinct from content description unless meta-level material is explicitly part of the subject matter. If the user explicitly requests that meta-level material be included in the document as content, treat it as content.4546- **meaning.preserve — Preserve meaning**47 Preserve the document’s meaning, claims, and intent while improving clarity and structure.4849- **facts.no_new — No new facts**50 Do not introduce new factual content, new claims, or new conclusions that are not present in the source text or explicitly provided by the user.5152- **structure.modules — Stable responsibility modules**53 Use module structure to assign each major responsibility a stable home. Keep module boundaries clear and headings responsibility-oriented. Place meta-level material that is included as content into a deliberate, clearly bounded module.5455- **structure.enumerations — Peer enumerations only**56 Use enumeration structure only to list peers within one responsibility. If a list mixes responsibilities, restructure it into module structure.5758- **meta.constraints — Enforce meta constraints**59 Treat meta description constraints as hard constraints. When a potential improvement would violate a meta constraint, prefer preserving the constraint and choose the least-invasive alternative that still improves clarity.6061## Workflow6263Use a repeatable editing pass.64651. Identify the document’s subject and extract meta description constraints. Apply `layers.distinct` and `meta.constraints`.662. Confirm what must be preserved and what additions, if any, the user explicitly requested. Apply `meaning.preserve` and `facts.no_new`.673. Establish or repair module structure for major responsibilities, align headings to responsibilities, and relocate material to its responsible module. Apply `structure.modules`.684. Normalize enumerations within each module; convert mixed-responsibility lists into module structure. Apply `structure.enumerations` and `structure.modules`.695. Edit prose for clarity and precision without changing intent or adding facts. Apply `meaning.preserve` and `facts.no_new`.706. Do a final pass for internal consistency and constraint compliance.717. Run acceptance checks.7273## Acceptance Criteria7475A revision is complete only if all checks pass.7677- **Response**: Output satisfies the Response Contract.78- **Standards satisfied**: `layers.distinct`, `meaning.preserve`, `facts.no_new`, `structure.modules`, `structure.enumerations`, `meta.constraints`.