X Research
name: x-research
by blascokoa · published 2026-03-22
$ claw add gh:blascokoa/blascokoa-twitterapi-research-skill---
name: x-research
description: >
General-purpose X/Twitter research agent. Searches X for real-time perspectives,
dev discussions, product feedback, cultural takes, breaking news, and expert opinions.
Works like a web research agent but uses X as the source.
Use when: (1) user says "x research", "search x for", "search twitter for",
"what are people saying about", "what's twitter saying", "check x for", "x search",
"/x-research", (2) user is working on something where recent X discourse would provide
useful context (new library releases, API changes, product launches, cultural events,
industry drama), (3) user wants to find what devs/experts/community thinks about a topic.
NOT for: posting tweets or account management. Uses twitterapi.io (third-party API) for full-archive search — not limited to 7 days.
---
# X Research
General-purpose agentic research over X/Twitter. Decompose any research question into targeted searches, iteratively refine, follow threads, deep-dive linked content, and synthesize into a sourced briefing.
For twitterapi.io API details (endpoints, operators, response format): read `references/x-api.md`.
CLI Tool
All commands run from this skill directory:
cd ~/clawd/skills/x-research
source ~/.config/env/global.env # needs TWITTERAPI_IO_KEYSearch
bun run x-search.ts search "<query>" [options]**Options:**
Auto-adds `-is:retweet` unless query already includes it. All searches display estimated API cost.
**Note:** twitterapi.io search covers full archive (not limited to 7 days). Time filtering uses `since:` operator in the query.
**Examples:**
bun run x-search.ts search "BNKR" --sort likes --limit 10
bun run x-search.ts search "from:frankdegods" --sort recent
bun run x-search.ts search "(opus 4.6 OR claude) trading" --pages 2 --save
bun run x-search.ts search "$BNKR (revenue OR fees)" --min-likes 5
bun run x-search.ts search "BNKR" --quick
bun run x-search.ts search "BNKR" --from voidcider --quick
bun run x-search.ts search "AI agents" --quality --quickProfile
bun run x-search.ts profile <username> [--count N] [--replies] [--json]Fetches recent tweets from a specific user (excludes replies by default).
Thread
bun run x-search.ts thread <tweet_id> [--pages N]Fetches full conversation thread by root tweet ID.
Single Tweet
bun run x-search.ts tweet <tweet_id> [--json]Watchlist
bun run x-search.ts watchlist # Show all
bun run x-search.ts watchlist add <user> [note] # Add account
bun run x-search.ts watchlist remove <user> # Remove account
bun run x-search.ts watchlist check # Check recent from allWatchlist stored in `data/watchlist.json`. Use for heartbeat integration — check if key accounts posted anything important.
Cache
bun run x-search.ts cache clear # Clear all cached results15-minute TTL. Avoids re-fetching identical queries.
Research Loop (Agentic)
When doing deep research (not just a quick search), follow this loop:
1. Decompose the Question into Queries
Turn the research question into 3-5 keyword queries using X search operators:
2. Search and Extract
Run each query via CLI. After each, assess:
3. Follow Threads
When a tweet has high engagement or is a thread starter:
bun run x-search.ts thread <tweet_id>4. Deep-Dive Linked Content
When tweets link to GitHub repos, blog posts, or docs, fetch with `web_fetch`. Prioritize links that:
5. Synthesize
Group findings by theme, not by query:
### [Theme/Finding Title]
[1-2 sentence summary]
- @username: "[key quote]" (NL, NI) [Tweet](url)
- @username2: "[another perspective]" (NL, NI) [Tweet](url)
Resources shared:
- [Resource title](url) — [what it is]6. Save
Use `--save` flag or save manually to `~/clawd/drafts/x-research-{topic-slug}-{YYYY-MM-DD}.md`.
Refinement Heuristics
Heartbeat Integration
On heartbeat, can run `watchlist check` to see if key accounts posted anything notable. Flag to Frank only if genuinely interesting/actionable — don't report routine tweets.
File Structure
skills/x-research/
├── SKILL.md (this file)
├── x-search.ts (CLI entry point)
├── lib/
│ ├── api.ts (twitterapi.io wrapper: search, thread, profile, tweet)
│ ├── cache.ts (file-based cache, 15min TTL)
│ └── format.ts (Telegram + markdown formatters)
├── data/
│ ├── watchlist.json (accounts to monitor)
│ └── cache/ (auto-managed)
└── references/
└── x-api.md (twitterapi.io endpoint reference)More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...