CLI UtilitiesDocumentedScanned

x-kindle

Send X/Twitter posts to Kindle for distraction-free reading.

Share:

Installation

npx clawhub@latest install x-kindle

View the full skill documentation and source below.

Documentation

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:

  • Extract content via fxtwitter API:


  • Extract from URL: twitter.com/*/status/ or x.com/*/status/

  • 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: 1. Fetch

  • Extract author, text, timestamp

  • Send HTML email to Kindle address

  • Confirm: "Sent to Kindle 📚"