What problem does it solve? Editing Notion-backed MDC (Contextual Markdown) files with plain text tools easily corrupts the private parser grammar — broken indentation, detached annotations, mismatched closing markers, or drifted transport metadata like ref and last_edited_time. This Skill enforces the invariants that keep .mdc files parseable and identity-stable during local body edits. ## Core Features & Use Cases - Safe read/edit/author modes: Load mode-specific grammar references before touching content, then apply the smallest coherent operation such as annotation scalar changes, same-type text replacement, or correctly indented child appends. - Invariant enforcement: Verify two-space indentation, annotation adjacency, YAML validity, closing-marker integrity, and escape preservation after every edit, with defined recovery moves for common failures. - Transport metadata protection: Capture ref, parent, and last_edited_time before mutation and validate them afterward via a read-only specification:sync-notion validate-metadata call, rejecting any local drift. - Use Case: A specification workflow needs to update a paragraph inside a Notion-synced .mdc page. The Skill locates the block by ref:, edits only its text, re-verifies markers and indentation, and confirms no transport-owned frontmatter changed. ## Quick Start Ask the agent to edit the paragraph under a specific ref in your Notion-backed .mdc file while preserving all annotations and closing markers.