# Editorbridge Safe Selection Rewrite

> Safely rewrite selected text in MarkEdit, Textastic, TextEdit, or iA Writer through EditorBridge.

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

---


# EditorBridge Safe Selection Rewrite

Use this skill when the user asks to rewrite, polish, summarize, translate, or otherwise change only the current selection in a GUI editor.

Prefer native tools named `editor_*` when available. If native tools are unavailable, use the `editorbridge-mcp` server with the same tool names.

Workflow:

1. Call `editor_check_permissions` when permission status is unknown.
2. Call `editor_read_selection`.
3. If no selection exists or selection reads are unsupported, stop and ask the user to select text or confirm a document-wide operation.
4. Rewrite only the selected text. Preserve Markdown structure, links, frontmatter, code fences, list indentation, and trailing newlines.
5. Call `editor_replace_selection` with the replacement text only when the user requested an edit.
6. Read the selection or document again when possible and verify the expected replacement is present.

Do not use whole-buffer writes for a selection rewrite. Do not fall back to blind typing or clipboard automation unless a future EditorBridge tool explicitly reports that fallback as supported.

