/SKILL.md
Rewrite platform router for API, SDK, CLI, contacts, segments, webhooks, templates, and AI workflows. Use when the agent needs to send SMS, manage Rewrite contacts or segments, handle Rewrite webhook events, work with official Rewrite SDKs/packages, or build application-owned agent flows on top of Rewrite.
npx skillsauth add rewritetoday/skills rewriteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill as the entry point for Rewrite work and route to the focused sub-skill or package layer.
sms-best-practices/ when the user wants general SMS architecture guidance, deliverability guardrails, rollout strategy, or a best-practices checklist with Rewrite.send-sms/ for POST /messages, /messages/batch, /contacts, /segments, /segments/:id/contacts, templates, idempotency, delivery tracking, and outbound SMS workflows.rewrite-inbound/ for Rewrite webhook ingestion into your app: signature verification, event parsing, dedupe, retries, delivery logs, and downstream routing.agent-sms-inbox/ for application-owned SMS agents that consume Rewrite events and send replies through Rewrite under strict policy controls.Send a single SMS via POST /messages:
curl -X POST https://api.rewritetoday.com/v1/messages \
-H "Authorization: Bearer rw_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"to": "+5511999999999", "content": "Hello from Rewrite!"}'
A 202 response means the message is queued; final delivery state arrives asynchronously via webhooks.
POST /messages and POST /messages/batch accept either to or contact as the target.contact resolves by contact ID or exact project-local name; sending to raw to also ensures a project contact record exists./segments/:id/contacts first, then send.+55 numbers unless the project has international sending enabled.content; template sends use templateId plus variables.message.delivered webhook event is currently WIP.cursor.persist, cursor.next, and cursor.prev.@rewritetoday/sdkgithub.com/rewritetoday/golang@rewritetoday/rest@rewritetoday/types@rewritetoday/zodgithub.com/rewritetoday/clidocs.rewritetoday.com and github.com/RewriteToday/docsgithub.com/RewriteToday/examples@rewritetoday/rest only when runtime control matters.@rewritetoday/types or @rewritetoday/zod when you need compile-time or runtime validation.2xx from POST /webhooks and testing with a manual event before going live.GET /segments/:id/contacts and confirming it returns the expected members before using it in a batch send.429 and transient 5xx; treat 400, 401, and 403 as non-retryable.development
General SMS best-practices guide for Rewrite-based systems. Use when the agent needs to define SMS architecture, contacts and segments strategy, deliverability, templates, retries, observability, webhook handling, or rollout guardrails before or alongside implementation.
tools
Production SMS delivery workflow for Rewrite. Use when the agent needs to send transactional or campaign SMS, manage Rewrite contacts or segments, implement batching, enforce idempotency, use templates and scheduling, and integrate the official Rewrite SDKs, REST client, CLI, or ecosystem packages.
development
Rewrite webhook ingestion workflow for your application. Use when the agent needs to configure Rewrite webhooks, verify signatures, parse and normalize event payloads, handle retries and dedupe, inspect delivery logs, and route delivery or OTP events safely.
development
Secure SMS agent workflow for building a text message chatbot, messaging agent, or SMS bot on Rewrite. Covers LLM-driven replies over application-owned inbound conversations with prompt-injection defense, action policy gates, risk-level escalation, and outbound send controls.