executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
x-trendsSearch and analyze trending topics on X (Twitter). Use when you need to find current trends, explore hashtags, get trending topics by location, or analyze what's popular on X right now.
Independent GitHub snapshot · Automated classification · Original documentation governs
GitHub: https://github.com/aycvs2/x-trends
Install twurl (official Twitter CLI):
gem install twurl
Authorize with your X/Twitter credentials:
twurl authorize --consumer-key YOUR_API_KEY --consumer-secret YOUR_API_SECRET
Worldwide trends:
twurl "/1.1/trends/place.json?id=1" | jq '.[0].trends[:10]'
Trends by location (WOEID):
# USA (WOEID: 23424977)
twurl "/1.1/trends/place.json?id=23424977" | jq '.[0].trends[:10]'
# Russia (WOEID: 23424936)
twurl "/1.1/trends/place.json?id=23424936" | jq '.[0].trends[:10]'
# UK (WOEID: 23424975)
twurl "/1.1/trends/place.json?id=23424975" | jq '.[0].trends[:10]'
Get all available trend locations:
twurl "/1.1/trends/available.json" | jq '.[] | {name, woeid}'
Find closest location by coordinates:
twurl "/1.1/trends/closest.json?lat=55.7558&long=37.6173" | jq '.'
Search recent tweets for a trending topic:
twurl "/2/tweets/search/recent?query=%23YourHashtag&max_results=10" | jq '.data'
Search with filters:
# Only tweets with media
twurl "/2/tweets/search/recent?query=%23trend%20has:media&max_results=10" | jq '.data'
# Only verified accounts
twurl "/2/tweets/search/recent?query=%23trend%20is:verified&max_results=10" | jq '.data'
| Location | WOEID |
|---|---|
| Worldwide | 1 |
| USA | 23424977 |
| Russia | 23424936 |
| UK | 23424975 |
| Germany | 23424829 |
| France | 23424819 |
| Japan | 23424856 |
| Brazil | 23424768 |
| India | 23424848 |
| Canada | 23424775 |
Trends response includes:
name - trend name/hashtagurl - link to search resultstweet_volume - number of tweets (if available)promoted_content - whether it's promotedjq for JSON parsing and filtering