rewrite
Skill38 starsChanged 8 months agoMITView on GitHub
Send SMS messages, manage templates, webhooks and API keys via Rewrite API
- Reads credentials
8 other projects use a version of this.
Adopted by
Most recently taken up by
- mangollc/claude-SDR-Manager-plugintheir own version, first seen Nov 1, 2026
- stoa-platform/stoatheir own version, first seen Nov 1, 2026
- saeedvaziry/skillstheir own version, first seen Oct 25, 2026
- holt-os/holttheir own version, first seen Oct 17, 2026
- assaio/unwordytheir own version, first seen Sep 21, 2026
- rainday/smart-blog-skillstheir own version, first seen May 15, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- MJbae/awesome-novel-studio★ 148same name
- rainday/smart-blog-skills★ 35same name
- saeedvaziry/skills★ 13same name
- stoa-platform/stoa★ 9same name
- holt-os/holt★ 7same name
- linfengchen/skills★ 4same name
- assaio/unwordy★ 1same name
- mangollc/claude-SDR-Manager-plugin★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- abacatepaySkill
- appsignalSkill
- clickupSkill
- cloudflareSkill
- cloudinarySkill
- datadogSkill
- digitaloceanSkill
- discordSkill
- firebaseSkill
- flyioSkill
- google-sheetsSkill
- herokuSkill
- honeybadgerSkill
- hostingerSkill
- hubspotSkill
- intercomSkill
- jiraSkill
- linearSkill
- mercadopagoSkill
- n8nSkill
- notionSkill
- openaiSkill
- planetscaleSkill
- posthogSkill
- railwaySkill
- resendSkill
- sentrySkill
- shopifySkill
- slackSkill
- stripeSkill
- supabaseSkill
- trelloSkill
- twilioSkill
- vercelSkill
- xSkill
- zendeskSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
If the output is OK, proceed to the Flow section.
- Very specific: line 44
If the output is SETUP_NEEDED, guide the user step by step.
- Distinctive: line 62
If the script outputs an error, the token is invalid.
- Distinctive: line 72
If the user wants to send an SMS:
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/rewrite
Connect to Rewrite to send SMS messages, manage templates, webhooks and API keys. Pure Ruby, zero gems — stdlib only.
Structure
scripts/
├── auth.rb # Bearer token auth + rewrite_request helper (required by all scripts)
├── check_setup.rb # Check if token exists (outputs OK or SETUP_NEEDED)
├── save_token.rb # Save and validate an API token
├── send_message.rb # Send an SMS message
├── templates.rb # List templates for a project
├── template.rb # Get template details
├── create_template.rb # Create a message template
├── update_template.rb # Update a template
├── delete_template.rb # Delete a template
├── webhooks.rb # List webhooks for a project
├── create_webhook.rb # Create a webhook
├── update_webhook.rb # Update a webhook
├── delete_webhook.rb # Delete a webhook
├── api_keys.rb # List API keys for a project
├── create_api_key.rb # Create an API key
├── delete_api_key.rb # Delete an API key
├── update_project.rb # Update project settings
└── delete_project.rb # Delete a projectSetup (check before using)
ruby ~/.claude/skills/rewrite/scripts/check_setup.rbIf the output is OK, proceed to the Flow section.
If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.
Step 1 — Ask the user to get their API token:
You need a Rewrite API token.
- Go to https://app.rewritetoday.com and log in
- Go to your project settings
- Create or copy an API key (starts with
rw_)Paste the token here.
Step 2 — When the user pastes the token, save it:
ruby ~/.claude/skills/rewrite/scripts/save_token.rb 'PASTED_TOKEN'If the script outputs an error, the token is invalid. Ask the user to double-check and try again.
If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.
Flow
The argument $ARGUMENTS may contain an action or phone number.
Step 1: Send a message
If the user wants to send an SMS:
ruby ~/.claude/skills/rewrite/scripts/send_message.rb "+5511999999999" "Hello from Rewrite!"With metadata:
ruby ~/.claude/skills/rewrite/scripts/send_message.rb "+5511999999999" "Hi" --metadata campaign=welcome source=apiStep 2: Templates
List templates:
ruby ~/.claude/skills/rewrite/scripts/templates.rb PROJECT_IDGet template details:
ruby ~/.claude/skills/rewrite/scripts/template.rb PROJECT_ID TEMPLATE_IDCreate a template (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/create_template.rb PROJECT_ID "welcome" "Hello {{name}}, welcome!"Update a template (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/update_template.rb PROJECT_ID TEMPLATE_ID --name "new-name" --content "New content"Delete a template (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/delete_template.rb PROJECT_ID TEMPLATE_IDStep 3: Webhooks
List webhooks:
ruby ~/.claude/skills/rewrite/scripts/webhooks.rb PROJECT_IDCreate a webhook (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/create_webhook.rb PROJECT_ID "https://example.com/hook" sms.delivered sms.failedAvailable events: sms.queued, sms.delivered, sms.failed, sms.scheduled, sms.canceled
Update a webhook (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/update_webhook.rb PROJECT_ID WEBHOOK_ID --url "https://new.url/hook" --events "sms.delivered,sms.failed"Delete a webhook (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/delete_webhook.rb PROJECT_ID WEBHOOK_IDStep 4: API Keys
List API keys:
ruby ~/.claude/skills/rewrite/scripts/api_keys.rb PROJECT_IDCreate an API key (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/create_api_key.rb PROJECT_ID "my-key-name"Delete an API key (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/delete_api_key.rb PROJECT_ID API_KEYStep 5: Project Management
Update project (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/update_project.rb PROJECT_ID --name "New Project Name"Delete project (requires user confirmation):
ruby ~/.claude/skills/rewrite/scripts/delete_project.rb PROJECT_IDNotes
- Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils)
- Auth via Bearer token (API key starting with
rw_) - Token file:
~/.config/rewrite/token(outside the repo, never commit) - Sending messages, creating/updating/deleting templates, webhooks, API keys and projects require explicit user confirmation
- Webhook events: sms.queued, sms.delivered, sms.failed, sms.scheduled, sms.canceled
- Templates support variables with
{{variable}}syntax - Cursor-based pagination: use
--limit Nand--after CURSORon list endpoints - Base URL:
https://api.rewritetoday.com/v1
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

