What problem does it solve? Integrating an AI text-rewriter into a web app involves wiring feature toggles, text-selection events, multi-provider AI calls, and safe DOM replacement — and getting the order or event-threading wrong causes silent failures. This Skill provides the canonical implementation rules for the Velt Rewriter so agents generate correct integration code. ## Core Features & Use Cases - End-to-End Pipeline: Wire the four-step flow — enableRewriter, subscribe to textSelected, call askAi, then replaceText or addComment — with correct event threading. - Multi-Provider AI Generation: Call askAi with OpenAI, Anthropic, or Gemini models, auto-routed by model prefix, with custom LLM keys configured via the Velt Console. - Custom UI & Typing: Hide the default toolbar with disableDefaultUI, build custom dialogs with wireframe componentConfig bindings, and type models with the open AiModel union. - Use Case: A reviewer workflow where the AI suggests a rewrite, the suggestion is anchored as a Velt comment via addComment, and replaceText applies it only after approval. ## Quick Start Use the velt-rewriter-best-practices skill to build a React component that enables the Velt Rewriter, listens for text selections, asks Gemini to rewrite the selection, and replaces the text in place.