360 Secure SkillHub
360 安全技能中心

FX Twitter Translate

根据用户提供的 x.com、twitter.com 或 fxtwitter 链接提取推文 ID,调用 fxtwitter 公开接口获取推文 JSON,抽取文本内容后保留原有标题、列表和段落结构,翻译为自然的简体中文并输出 Markdown,同时在末尾注明原作者和原推文链接。仅处理文本内容。

dizhu
dizhu
热度 51.65
最近更新 2026-05-11 17:32:57
分类:效率依赖:第三方 API / 内部调用大模型应用场景:翻译 / 社交媒体

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add fxtwitter-translate
Metadata
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