360 Secure SkillHub
360 安全技能中心

X to Kindle

根据用户提供的 X/Twitter 链接,通过 fxtwitter API 提取作者、正文和时间戳,格式化为 HTML 邮件,经 Gmail SMTP 发送到用户 Kindle 邮箱,便于在 Kindle 上无干扰阅读;Kindle 地址与 SMTP 配置存放于 TOOLS.md。

brianlu365ai
brianlu365ai
热度 57.52
最近更新 2026-05-11 15:50:57
分类:自动化依赖:第三方 API / 代码执行应用场景:工作流 / 邮件起草

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add x-kindle
Metadata
name
x-to-kindle
description
Send X/Twitter posts to Kindle for distraction-free reading. Use when user shares an X/Twitter link and wants to read it on Kindle, or asks to send a tweet/thread to their Kindle device.

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 📚"