Editorbridge Safe Selection Rewrite

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

rcarmo b38f0f5 1.2 KB Updated

File contents

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.

rcarmo/editorbridge/tree/main/.pi/skills/editorbridge-safe-selection-rewrite commit b38f0f5c67

Frequently asked questions

npx skillmds@latest add rcarmo/editorbridge-safe-selection-rewrite