Get the FREE Ultimate OpenClaw Setup Guide →
b

X to Kindle

Scanned

@brianlu365ai

npx machina-cli add skill @brianlu365ai/x-kindle --openclaw
Files (1)
SKILL.md
1.4 KB

X 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:

  1. Extract content via fxtwitter API:

    https://api.fxtwitter.com/status/<tweet_id>
    

    Extract from URL: twitter.com/*/status/<id> or x.com/*/status/<id>

  2. 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>
    
  3. 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

  1. Fetch https://api.fxtwitter.com/status/1234567890
  2. Extract author, text, timestamp
  3. Send HTML email to Kindle address
  4. Confirm: "Sent to Kindle 📚"

Source

git clone https://clawhub.ai/brianlu365ai/x-kindleView on GitHub

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

  1. Step 1: Share or paste the X/Twitter link you want to read on Kindle.
  2. Step 2: The system fetches the tweet via FXTwitter API, formats an HTML email, and sends it to your Kindle address.
  3. 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.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers