← Files Markdown by mdedit.aiARCHIVED FILE
skills/revise-mdedit-document/SKILL.md
1.74 KB · Oct 5, 2026 · 18:10 UTC
--- name: revise-mdedit-document description: Safely revise an existing Markdown Document stored in mdedit with anchored, conflict-aware edits. Use when the user asks to update, rewrite, correct, insert, remove, or reorganize content in a saved mdedit document. Do not use for unsaved local Markdown, local files, or generic editing advice. compatibility: Requires the mdedit MCP server with read_article and edit_article tools. --- # Revise a document in mdedit Read the current durable content, then apply the smallest unambiguous anchored change. 1. Resolve the workspace and document using `list_workspaces`, `list_articles`, and `read_article`. Ask the user to choose when a returned workspace or document match is ambiguous. 2. Confirm the requested change is specific enough to apply. Ask a focused question when the target text, section, or replacement is unclear. 3. Build one or more `edit_article` operations: - Prefer a unique `quote` anchor with nearby `context`. - Use `afterHeading`, `beforeHeading`, or `inSection` for section changes. - Use a numeric range only when it came from current tool-returned content. - Avoid whole-document replacement unless the user requests a full rewrite. 4. Pass the current `contentHash` from `read_article` as `ifContentHash`. 5. Treat the edit as successful only when the result has no conflicts and returns new durable `content`, `contentRevision`, and `contentHash`. 6. Summarize what changed and report the returned revision. If the tool reports a hash mismatch or any conflict, stop, read the document again, and explain what changed concurrently. Do not retry against a new version without reconciling the user's intent. Never overwrite ambiguity, invent anchors, or claim success from requested text alone.
SHA-256: 7c4c20a4ef21cc89e580ced3372e6658ac1102f4e714b6c5d2a67973d76017fe