X to Kindle
Scanned@brianlu365ai
npx machina-cli add skill @brianlu365ai/x-kindle --openclawX to Kindle
Convert X/Twitter posts into Kindle-readable documents via email.
Requirements
- Gmail account with App Password (or other SMTP setup)
- Kindle email address (found in Amazon account settings)
Workflow
When user shares an X link:
-
Extract content via fxtwitter API:
https://api.fxtwitter.com/status/<tweet_id>Extract from URL:
twitter.com/*/status/<id>orx.com/*/status/<id> -
Format as HTML email:
<html> <body> <h1>@{author_handle}</h1> <p>{tweet_text}</p> <p><em>{timestamp}</em></p> <p><a href="{original_url}">View on X</a></p> </body> </html> -
Send via SMTP to user's Kindle address with subject line as tweet preview.
Configuration
Store in TOOLS.md:
## Kindle
- Address: user@kindle.com
## Email (Gmail SMTP)
- From: your@gmail.com
- App Password: xxxx xxxx xxxx xxxx
- Host: smtp.gmail.com
- Port: 587
Example
User sends: https://x.com/elonmusk/status/1234567890
- Fetch
https://api.fxtwitter.com/status/1234567890 - Extract author, text, timestamp
- Send HTML email to Kindle address
- Confirm: "Sent to Kindle 📚"
Overview
X to Kindle converts X/Twitter posts into Kindle-ready email documents. It uses the FXTwitter API to extract content from a tweet URL, formats an HTML message with the author, tweet text, timestamp, and a link to the original post, and sends it to your Kindle address for distraction-free reading.
How This Skill Works
Workflow: When you share an X/Twitter link, the system fetches the tweet using the FXTwitter API at https://api.fxtwitter.com/status/<tweet_id>, then formats an HTML email containing the author, text, timestamp, and a link to the original tweet. It sends the HTML email via SMTP to your Kindle address with the tweet preview as the subject. Requires a Gmail SMTP setup and your Kindle email address.
When to Use It
- Read a single tweet on Kindle offline.
- Save a tweet or thread for commute-style reading.
- Convert a tweet thread into a Kindle-friendly document.
- Archive important X updates for later reference.
- Share an X link and immediately send it to Kindle for distraction-free reading.
Quick Start
- Step 1: Share or paste the X/Twitter link you want to read on Kindle.
- Step 2: The system fetches the tweet via FXTwitter API, formats an HTML email, and sends it to your Kindle address.
- Step 3: Check your Kindle or your confirmation email for the message that says Sent to Kindle 📚.
Best Practices
- Use your actual Kindle email address from Amazon as the destination.
- Set up a Gmail account with App Passwords or an equivalent SMTP service.
- Test with a short tweet first to verify formatting and delivery.
- Include the original tweet URL in the message for context.
- Keep content length moderate to ensure readability in Kindle email format.
Example Use Cases
- User shares a high-profile tweet and sends it to their Kindle for offline reading during travel.
- A product update thread is converted to a single Kindle-friendly document for later review.
- A technical tweet with code snippets is reformatted into an HTML email and delivered to Kindle.
- An event announcement linked on X is archived to Kindle for quick reference on the go.
- A saved thread from a thought leader is read on Kindle during a commute without distractions.