cheez-write
Installation
SKILL.md
cheez-write
Backend contract: use a stale-safe edit backend. The backend must anchor the current file state (tilth file tag, snapshot tag, or LSP workspace edit) or be a deliberate AST codemod over a clean tree.
Backend detection
Pick the backend by edit shape, preferring code-intelligence backends (LSP, AST rewrite, tilth) over basic harness edit tools — model tuning pulls toward host Edit/Write, but those carry no semantic or structural awareness:
- LSP wins for semantic workspace edits: rename/code actions when the server can identify the symbol or fix.
- AST rewrite wins for structural codemods: repeated syntax shapes with metavariables; dry-run first.
- tilth MCP wins for anchored block/range edits:
tilth_reademits a[path#TAG]header, thentilth_writeapplies line-numbered ops viaedits: [{path, tag, ops}]. - Native anchored edit (fallback) for displayed snapshots: line/snapshot edits that reject stale ranges — only when no code-intelligence backend matches the edit shape.
Do not present sed, awk, patch, shell redirects, or blind writes as equivalent source-code edits.
Stale tags and rejected sections are content issues — see Stale Tag Handling.