Skill 详情
twitter-reader
Generic X reader framed for financial research.
使用前先检查
自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。
SKILL.md
这段内容是审核时保存的快照。外部来源才是完整且最新的版本。
---
name: twitter-reader
description: >
Read Twitter/X for financial research using opencli (read-only).
Use this skill whenever the user wants to read their Twitter feed, search for financial tweets,
view bookmarks, look up user profiles, or gather market sentiment from Twitter/X.
Triggers include: "check my feed", "search Twitter for", "show my bookmarks",
"who follows", "look up @user", "what's trending about", "market sentiment on Twitter",
"what are people saying about AAPL", "recent tweets from @elonmusk", "show me @user's posts",
"fintwit", any mention of Twitter/X in context of reading financial news or market research.
This skill is READ-ONLY — it does NOT support posting, liking, retweeting, or any write operations.
---
# Twitter Skill (Read-Only)
Reads Twitter/X for financial research using [opencli](https://github.com/jackwener/opencli), a universal CLI tool that bridges web services to the terminal via browser session reuse.
**This skill is read-only.** It is designed for financial research: searching market discussions, reading analyst tweets, tracking sentiment, and monitoring financial news on Twitter/X. It does NOT support posting, liking, retweeting, replying, or any write operations.
**Important**: opencli reuses your existing Chrome login session — no API keys or cookie extraction needed. Just be logged into x.com in Chrome and have the Browser Bridge extension installed.
---
## Step 1: Ensure opencli Is Installed and Ready
**Current environment status:**
```
!`(command -v opencli && opencli doctor 2>&1 | head -5 && echo "READY" || echo "SETUP_NEEDED") 2>/dev/null || echo "NOT_INSTALLED"`
```
If the status above shows `READY`, skip to Step 2. If `NOT_INSTALLED`, install first:
```bash
# Install opencli globally
npm install -g @jackwener/opencli
```
If `SETUP_NEEDED`, guide the user through setup:
### Setup
opencli requires Node.js >= 21 and a Chrome browser with the Browser Bridge extension:
1. **Install the Browser Bridge extension:**
- Download the latest `opencli-extension-v{version}.zip` from the [GitHub Releases page](https://github.com/jackwener/opencli/releases)
- Unzip it, open `chrome://extensions` in Chrome, and enable **Developer mode**
- Click **Load unpacked** and select the unzipped folder
2. **Login to x.com** in Chrome — opencli reuses your existing browser session
3. **Verify connectivity:**
```bash
opencli doctor
```
This auto-starts the daemon, verifies the extension is connected, and checks session health.
### Common setup issues
| Symptom | Fix |
|---------|-----|
| `Extension not connected` | Install Browser Bridge extension in Chrome and ensure it's enabled |
| `Daemon not running` | Run `opencli doctor` — it auto-starts the daemon |
| `No session for twitter.com` | Login to x.com in Chrome, then retry |
| `CSRF token missing` | Refresh x.com in Chrome to regenerate the ct0 cookie |
---
## Step 2: Identify What the User Needs
Match the user's request to one of the read commands below, then use the corresponding command from `references/commands.md`.
| User Request | Command | Key Flags |
|---|---|---|
| Setup check | `opencli doctor` | — |
| Home feed / timeline | `opencli twitter timeline` | `--type for-you\|following`, `--limit N` (default 20) |
| Search tweets | `opencli twitter search "QUERY"` | `--filter top\|live`, `--limit N` (default 15) |
| Trending topics | `opencli twitter trending` | `--limit N` (default 20) |
| Bookmarks | `opencli twitter bookmarks` | `--limit N` (default 20) |
| Recent tweets from a user | `opencli twitter tweets USERNAME` | `--limit N` (default 20) |
| View a specific thread | `opencli twitter thread TWEET_ID` | `--limit N` (default 50) |
| Twitter article | `opencli twitter article TWEET_ID` | — |
| User profile | `opencli twitter profile USERNAME` | — (defaults to logged-in user) |
| Followers | `opencli twitter followers USERNAME` | `--limit N` (default 50) |
| Following | `opencli twitter following USE在 GitHub 阅读完整来源 (打开外部页面)