Documentation v0.1.0

fxtwitter-translate

Fetch full text from Twitter/X tweets via fxtwitter API, then translate to Chinese. Triggers when user shares a x.com /...

dizhu 更新于 2026-03-17 1 浏览
下载 SKILL

技能说明

Fetch full text from Twitter/X tweets via fxtwitter API, then translate to Chinese. Triggers when user shares a x.com / twitter.com / fxtwitter link and asks for translation.

使用场景

Fetch and translate Twitter/X tweets to Chinese. Uses the public fxtwitter API to get JSON content, extracts text, formats and translates it to clean Chinese markdown.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/fxtwitter-translate
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 19 kB
SKILL.md text/markdown
---
name: fxtwitter-translate
description: Fetch full text from Twitter/X tweets via fxtwitter API, then translate to Chinese. Triggers when user shares a x.com / twitter.com / fxtwitter link and asks for translation.
---

# fxtwitter-translate

Fetch and translate Twitter/X tweets to Chinese. Uses the public fxtwitter API to get JSON content, extracts text, formats and translates it to clean Chinese markdown.

## Workflow

1. **Extract tweet ID** from URL:
   - `https://x.com/:username/status/:tweetId` → extract `tweetId`
   - `https://twitter.com/:username/status/:tweetId` → extract `tweetId`
   - `https://fxtwitter.com/:username/status/:tweetId` → extract `tweetId`
   - `https://api.fxtwitter.com/:username/status/:tweetId` → already API format

2. **Convert to fxtwitter API URL**:
   ```
   https://api.fxtwitter.com/:username/status/:tweetId
   ```

3. **GET request** to fetch JSON

4. **Extract content**:
   - Get `tweet.text` from JSON response
   - If it's a long tweet with multiple cards, concatenate all text content
   - Strip any extra HTML/formatting

5. **Format and Translate**:
   - Preserve original structure (headings, lists, paragraphs)
   - Translate to natural-sounding Simplified Chinese
   - Keep any URLs intact, credit the original author
   - Output as clean markdown

## Example

User input:
```
翻译:https://x.com/invideoOfficial/status/2033866107166318666
```

Flow:
- Extract username `invideoOfficial`, tweetId `2033866107166318666`
- API request to `https://api.fxtwitter.com/invideoOfficial/status/2033866107166318666`
- Extract full article text
- Translate to Chinese markdown
- Output with author credit and original link

## Notes

- This skill only handles single tweets/threads, not quoted retweets (can extract the main tweet content)
- Images/video are not fetched, only text content
- Always credit original author and link at the end
- Keep the original structure (headings, lists, paragraphs) intact in translation

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。