Install
openclaw skills install xlink-readerRead and summarize X/Twitter links with low-token routing. Use when a user shares an x.com/twitter.com/t.co link or asks to read, summarize, extract, or inspect a tweet, thread, or X article. Prefer xreach for normal tweets; use Playwright only for X article pages or t.co links that resolve to x.com/i/article/ URLs.
openclaw skills install xlink-readerUse the bundled Node script to read X links with minimal token overhead.
scripts/xreader.mjs with the URL.xreach tweetxreach threadxreach, this skill is a higher-level reader for agent workflows: it adds article handling, authored-thread filtering, and unified structured output.xcurl, this skill focuses on content extraction from links instead of low-level request control.Summary mode (default):
node skills/x-reader/scripts/xreader.mjs "https://x.com/..."
Full mode:
node skills/x-reader/scripts/xreader.mjs --mode full "https://x.com/..."
Thread mode (explicit only, to save tokens):
node skills/x-reader/scripts/xreader.mjs --thread "https://x.com/.../status/..."
Debug mode (headed browser for article extraction):
node skills/x-reader/scripts/xreader.mjs --debug "https://x.com/i/article/..."
Required:
xreachInstall article-mode dependency inside the skill directory:
cd skills/x-reader
npm install
Primary auth path:
~/.config/xreader/session.json
Legacy fallback path:
~/.config/xfetch/session.json
If legacy auth exists, the script migrates it to the new path automatically.
Expected JSON format:
{
"authToken": "...",
"ct0": "..."
}
Expect structured JSON with fields such as:
oktype (tweet, thread, or article)urlcanonicalUrlsource (xreach or playwright)authorpublishedAttitletext / contentTextcontentMarkdownsummaryTextfallback / warnings / errorPrefer quoting or summarizing summaryText for low-token responses. Use contentText or contentMarkdown only when the user clearly wants more detail.
Run these after install/auth setup:
node skills/x-reader/scripts/xreader.mjs "https://x.com/yangguangai/status/2033736815405121642?s=46"
node skills/x-reader/scripts/xreader.mjs "https://x.com/yangguangai/status/2033522959407878621?s=46"
node skills/x-reader/scripts/xreader.mjs --thread "https://x.com/google/status/2031558824042058064"
--thread only when the user clearly wants the authored thread.warnings / articleError.auth_token + ct0). Cookie-based automation may carry account risk, including additional verification or account restrictions. The risk is usually low for light personal use, but recommend using a secondary account instead of a primary high-value account.SKILL.md includes usage, dependencies, auth path, and limitations.node skills/x-reader/scripts/xreader.mjs --help works.