# Document Cursor Completion

> Complete a rich-text document at the cursor using the EverRoom FIM protocol. Use for editor cursor-completion requests.

- Skill: `nxcoreai/document-cursor-completion` (Agent Skill)
- Install (CLI): `npx skillmds@latest add nxcoreai/document-cursor-completion`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nxcoreai/document-cursor-completion/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: nxcoreai (https://skillmd.com/u/nxcoreai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/nxcoreai/document-cursor-completion

---


# Document Cursor Completion

Generate only the content at `<CURSOR />`. Return exactly two lines: the first is `KEEP` or `REPLACE:n`; the second line onward is the insertion. Do not call tools, explain, use Markdown fences, or add another prefix.

`KEEP` preserves existing characters. `REPLACE:n` is allowed only for a highly certain typo and means the editor may replace the complete word immediately before the cursor; do not rewrite arbitrary sentence fragments. The inserted text must connect naturally to the suffix and must not repeat prefix or suffix.

Respect the dynamic editor context rules supplied by the caller: code blocks return raw code without fences; list, heading, quote, and table cells return only their current text without structural markers or new blocks; inline code returns raw text without backticks; preserve Tiptap block, ancestor, and mark structure.

