felo-x-search
Skill254 starsChanged 7 months agoMITView on GitHub
Search X (Twitter) data using Felo X Search API. Use when users ask about X/Twitter users, tweets, trending topics on X, tweet replies, or when explicit commands like /felo-x-search are used. Supports user lookup, user search, user tweets, tweet search, and tweet replies.
- Reads credentials
- Installs packages
- Sends data out
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Felo-Inc/felo-skillsedited, first seen Mar 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- Felo-Inc/felo-skills★ 24898% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- best-practices-for-agent-skillsSkill
- githubclaw-json-generatorSkill
- pr-creatorSkill
- skill-creatorSkill
- agent-browserSkill
- felo-searchSkill
- felo-slidesSkill
- felo-superAgentSkill
- felo-web-fetchSkill
- find-skillsSkill
- gemini-audio-transcriberSkill
- gemini-deep-researcherSkill
- gemini-image-describerSkill
- gemini-lyria-3Skill
- gemini-nanobananaSkill
- gemini-summarySkill
- google-stitchSkill
- skill-creatorSkill
- telegram-notifySkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Look up X (Twitter) user profiles by username
- Distinctive: line 13
Search for X users by keyword
- Distinctive: line 15
Search tweets by keyword or advanced query
- Distinctive: line 26
Do NOT use for:
- Distinctive: line 38
Create and copy your API key
- Very specific: line 191
If FELO_API_KEY is not set, display setup instructions and stop.
- Very specific: line 207
Always check FELO_API_KEY before calling.
- Very specific: line 209
Use pagination cursors (next_cursor) for fetching more results.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Felo X Search Skill
When to Use
Trigger this skill when the user wants to:
- Look up X (Twitter) user profiles by username
- Search for X users by keyword
- Get tweets from a specific X user
- Search tweets by keyword or advanced query
- Get replies to specific tweets
Trigger keywords (examples):
- English: twitter, tweet, X user, X search, tweets from, replies to, trending on X
- 简体中文: 推特, 推文, X用户, X搜索, 推文回复
- 日本語: ツイッター, ツイート, Xユーザー, X検索
Explicit commands: /felo-x-search, "search X", "search twitter"
Do NOT use for:
- General web search (use
felo-search) - Webpage extraction (use
felo-web-extract) - Generating slides (use
felo-slides)
Setup
1. Get API key
- Visit felo.ai
- Open Settings -> API Keys
- Create and copy your API key
2. Configure environment variable
Linux/macOS:
export FELO_API_KEY="your-api-key-here"Windows PowerShell:
$env:FELO_API_KEY="your-api-key-here"How to Execute
Option A: Use the bundled script or packaged CLI
Packaged CLI (after npm install -g felo-ai):
felo x [query] [options]Script (from repo):
node .agents/skills/felo-x-search/scripts/run_x_search.mjs [query] [options]Usage Pattern
The x command uses parameter combinations to infer intent — no subcommands needed.
With query (search mode):
| Usage | Behavior |
felo x "AI news" | Search tweets (default) |
felo x -q "AI news" | Same as above |
felo x "OpenAI" --user | Search users |
With --id (lookup mode):
| Usage | Behavior |
felo x --id "1234567890" | Get tweet replies (default) |
felo x --id "elonmusk" --user | Get user info |
felo x --id "elonmusk" --user --tweets | Get user tweets |
Options
| Option | Description |
[query] | Positional arg, search keyword (equivalent to -q) |
-q, --query <text> | Search keyword |
--id <values> | Tweet IDs or usernames (comma-separated) |
--user | Switch to user mode |
--tweets | Get user tweets (with --id --user) |
-l, --limit <n> | Number of results |
--cursor <str> | Pagination cursor |
--include-replies | Include replies (with --tweets) |
--query-type <type> | Query type filter (tweet search) |
--since-time <val> | Start time filter |
--until-time <val> | End time filter |
-j, --json | Output raw JSON |
-t, --timeout <seconds> | Timeout in seconds (default: 30) |
Option B: Call API with curl
# Search tweets
curl -X POST "https://openapi.felo.ai/v2/x/tweet/search" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "AI news", "limit": 20}'
# Search users
curl -X POST "https://openapi.felo.ai/v2/x/user/search" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "artificial intelligence"}'
# Get user info
curl -X POST "https://openapi.felo.ai/v2/x/user/info" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"usernames": ["elonmusk", "OpenAI"]}'
# Get user tweets
curl -X POST "https://openapi.felo.ai/v2/x/user/tweets" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "limit": 20}'
# Get tweet replies
curl -X POST "https://openapi.felo.ai/v2/x/tweet/replies" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tweet_ids": ["1234567890"]}'Output Format
User Info (default, non-JSON)
## @elonmusk (Elon Musk 🔵)
- User ID: `44196397`
- Followers: 100.0M
- Following: 500
- Total Tweets: 30.0K
- Bio: ...
- Location: Mars
- Account Created: 2009-06-02T00:00:00Z
---Tweet (default, non-JSON)
### @elonmusk(Elon Musk ✓)
- Posted: 2026-03-09T12:00:00Z | Tweet ID: `1234567890`
- 🔗 [查看原推文](https://x.com/elonmusk/status/1234567890)
Tweet content here...
Engagement: 5.0K likes | 1.0K retweets | 200 replies
---Link Validation
每次輸出推文連結前,必須執行以下檢核,確保連結正確:
- 連結格式:推文連結必須為
https://x.com/{username}/status/{tweet_id},username 與 tweet_id 均來自 API 回傳的資料,禁止自行推測或填入預設值。 - 資料對應:連結中的
username必須與該推文的author.username欄位一致,tweet_id必須與id欄位一致。 - 禁止捏造:若 API 未回傳 tweet_id 或 username,則該則推文不得附上連結,改為標注「連結不可用」。
- 用戶連結:用戶頁面連結格式為
https://x.com/{username},同樣只能使用 API 回傳的 username。
Error Handling
Common Error Codes
INVALID_API_KEY— API Key is invalid or revokedX_SEARCH_FAILED— X search request failed (check parameters or downstream error)
Missing API Key
If FELO_API_KEY is not set, display setup instructions and stop.
API Reference (summary)
- Base URL:
https://openapi.felo.ai. Override withFELO_API_BASEenv if needed. - Auth:
Authorization: Bearer YOUR_API_KEY - Endpoints:
POST /v2/x/user/info— Batch get user profilesPOST /v2/x/user/search— Search usersPOST /v2/x/user/tweets— Get user tweetsPOST /v2/x/tweet/search— Search tweetsPOST /v2/x/tweet/replies— Get tweet replies
Important Notes
- ⚠️ 路徑安全:skill 腳本位於 repo root 的
.agents/skills/下。若 cwd 不在 repo root,先執行git rev-parse --show-toplevel取得路徑再cd。禁止用$(...)語法。 - Always check
FELO_API_KEYbefore calling; if missing, return setup instructions. - Format output as readable Markdown by default; use
--jsonfor raw API response. - Use pagination cursors (
next_cursor) for fetching more results. - For tweet search, advanced query syntax is supported (same as X advanced search).
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

