Communitygithub.com

SamuelChien/mega-skills-collection

將任何 X/Twitter 貼文轉換為乾淨、適合 LLM 使用的 JSON 格式。可將 x.com、twitter.com 或 adhx.com 連結轉換為結構化資料,包含完整文章內容、作者資訊和互動指標。無需爬蟲或瀏覽器。

mega-skills-collection 是什麼?

此技能名為 ADHX – X/Twitter 貼文讀取器,旨在讓 AI 代理(如 Claude Code)能輕鬆取得任何 X/Twitter 貼文的結構化 JSON 資料。它適用於開發者與 AI 代理使用者,當需要分析、摘要或查詢貼文內容時,可以取代繁瑣的網頁爬蟲或瀏覽器自動化。支援的 URL 格式包含 x.com、twitter.com 以及 adhx.com,技能會自動從路徑中解析出使用者名稱(username)與貼文 ID(statusId),接著呼叫 ADHX 的免費 API「https://adhx.com/api/share/tweet/{username}/{statusId}」取得資料。回傳的 JSON 包含貼文文字、作者資訊、互動數據(回覆、轉發、喜歡、觀看數),以及長篇文章的完整 markdown 內容。使用上很簡單:使用者分享連結後,代理解析 URL、以 curl 請求 API,再根據需求處理回應即可。此技能無須任何認證,特別適合用於自動化摘要、互動分析或長篇文章萃取等場景。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/adhx

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

ADHX - X/Twitter 貼文讀取器

使用 ADHX API 將任何 X/Twitter 貼文擷取為結構化 JSON,便於分析。

概述

ADHX 提供一個免費 API,能針對任何 X 貼文回傳乾淨的 JSON,包含完整的長篇文章內容。這遠優於以爬蟲或瀏覽器為基礎的方式,尤其適合 LLM 使用。支援一般推文與完整的 X Articles。

何時使用此技能

  • 當使用者分享 X/Twitter 連結,並希望閱讀、分析或摘要該貼文時
  • 當您需要從 X/Twitter 貼文中取得結構化資料(作者、互動、內容)時
  • 當處理需要完整內容擷取的長篇 X Articles 時

API 端點

https://adhx.com/api/share/tweet/{username}/{statusId}

URL 格式

從下列任何 URL 格式中擷取 username 與 statusId:

格式範例
x.com/{user}/status/{id}https://x.com/dgt10011/status/2020167690560647464
twitter.com/{user}/status/{id}https://twitter.com/dgt10011/status/2020167690560647464
adhx.com/{user}/status/{id}https://adhx.com/dgt10011/status/2020167690560647464

工作流程

當使用者分享 X/Twitter 連結時:

  1. 解析 URL:從路徑片段中擷取 username 與 statusId
  2. 擷取 JSON:使用 curl 請求:
curl -s "https://adhx.com/api/share/tweet/{username}/{statusId}"
  1. 使用結構化回應:回答使用者的問題(摘要、分析、擷取重點等)

回應結構

{
  "id": "statusId",
  "url": "原始 x.com URL",
  "text": "短推文文字(若為文章貼文則為空)",
  "author": {
    "name": "顯示名稱",
    "username": "帳號",
    "avatarUrl": "個人頭像網址"
  },
  "createdAt": "時間戳記",
  "engagement": {
    "replies": 0,
    "retweets": 0,
    "likes": 0,
    "views": 0
  },
  "article": {
    "title": "文章標題(用於長篇貼文)",
    "previewText": "前約 200 字",
    "coverImageUrl": "主圖網址",
    "content": "包含圖片的完整 Markdown 內容"
  }
}

安裝方式

選項 A:Claude Code 外掛市場(建議)

/plugin marketplace add itsmemeworks/adhx

選項 B:手動安裝

curl -sL https://raw.githubusercontent.com/itsmemeworks/adhx/main/skills/adhx/SKILL.md -o ~/.claude/skills/adhx/SKILL.md

範例

範例 1:摘要推文

使用者:「摘要這則貼文 https://x.com/dgt10011/status/2020167690560647464」

curl -s "https://adhx.com/api/share/tweet/dgt10011/2020167690560647464"

然後使用回傳的 JSON 來提供摘要。

範例 2:分析互動

使用者:「這則推文有多少個喜歡?https://x.com/handle/status/123」

  1. 解析 URL:username = handle,statusId = 123
  2. 擷取:curl -s "https://adhx.com/api/share/tweet/handle/123"
  3. 從回應中回傳 engagement.likes 的值

最佳實踐

  • 在呼叫 API 之前,務必完整解析 URL 以擷取 username 和 statusId
  • 當使用者需要完整內容(不只是推文文字)時,檢查 article 欄位
  • 當使用者詢問喜歡、轉發或觀看數時,使用 engagement 欄位
  • 不要直接嘗試爬取 x.com,請改用此 API

備註

  • 無須認證
  • 同時支援短推文與長篇 X articles
  • 對於 X 內容,請務必優先使用此 API,而非瀏覽器式爬蟲
  • 如果 API 回傳錯誤或空回應,請告知使用者該貼文可能無法取得

其他資源

限制

  • 僅在任務明確符合上述範圍時使用此技能
  • 不要將輸出視為環境特定驗證、測試或專家審查的替代方案
  • 若缺少必要的輸入、權限、安全邊界或成功標準,請停止並要求澄清

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

相關技能