Installation

clawhub install bubblyjove/falcon

Summary

Connects an AI agent to Twitter/X for reading, searching, and posting through TwexAPI. Supports user and tweet lookups, advanced search with Twitter syntax, hashtag and cashtag queries, trending topics by country, and write actions including tweeting, replying, liking, and following.

SKILL.md

falcon

Use falcon to read, search, and interact with Twitter/X.

Quick start

text
falcon check
falcon user elonmusk
falcon tweets elonmusk 5
falcon read <url-or-id>
falcon search "bitcoin" 10

Reading users

text
falcon user <username>               Profile info for a single user
falcon users <u1,u2,...>             Look up multiple users (comma-separated)
falcon find <keyword> [count]        Search for users by keyword (default: 5)
falcon followers <username> [count]  List followers (default: 20)
falcon following <username> [count]  List following (default: 20)

Reading tweets

text
falcon tweets <username> [count]     User's tweets and replies (default: 20)
falcon read <id-or-url> [...]        Read one or more tweets by ID or URL
falcon replies <id-or-url> [count]   Replies to a tweet (default: 20)
falcon similar <id-or-url>           Find similar tweets
falcon retweeters <id-or-url> [cnt]  Who retweeted a tweet (default: 20)

Searching

text
falcon search <query> [count]        Advanced search (default: 10)
falcon hashtag <tag> [count]         Search by hashtag (default: 20)
falcon cashtag <tag> [count]         Search by cashtag (default: 20)
falcon trending [country]            Trending topics (default: worldwide)

Posting (confirm with user first)

text
falcon tweet "text"
falcon reply <id-or-url> "text"
falcon quote <tweet-url> "text"

Engagement (confirm with user first)

text
falcon like <id-or-url>
falcon unlike <id-or-url>
falcon retweet <id-or-url>
falcon bookmark <id-or-url>
falcon follow <username>
falcon unfollow <username>

Account

text
falcon check                         Verify API key and cookie are set
falcon balance                       Check remaining API credits

Auth sources

text
TWEXAPI_KEY env var: TwexAPI bearer token (required for all commands)
TWITTER_COOKIE env var: Twitter auth cookie (required for write/engagement commands)

Important notes

text
- The falcon script lives at {baseDir}/falcon.sh
- All commands accept tweet URLs (x.com or twitter.com) or bare tweet IDs
- Always confirm with the user before executing any write or engagement command
- Search accepts any Twitter advanced search syntax
- Hashtags can be passed with or without the # prefix
- Cashtags can be passed with or without the $ prefix
- Country for trending uses slug format: united-states, united-kingdom, japan, etc.

Recommended skills

Browse all →