Twitter
Runtime-focused skill package for Twitter/X search and posting through the AISA relay.
When to use
- The user wants to read profiles, timelines, mentions, followers, tweet search results, trends, lists, communities, or Spaces.
- The user wants to draft or publish posts after completing OAuth without sharing passwords.
- The task needs a Python client for repeatable Twitter/X automation backed by
AISA_API_KEY.
When NOT to use
- The user needs cookie extraction, browser credential scraping, or direct password login.
- The workflow must avoid sending requests, OAuth state, or approved media through
api.aisa.one.
- The request is for likes, follows, or other engagement actions not covered by this package.
Quick Reference
- Required env:
AISA_API_KEY
- Read client:
./scripts/twitter_client.py
- Post workflow guide:
./references/post_twitter.md
Setup
export AISA_API_KEY="your-key"
All network calls go to https://api.aisa.one/apis/v1/....
Capabilities
- Read user data, timelines, mentions, followers, followings, verified followers, and follow relationships.
- Search tweets and users, inspect replies, quotes, retweeters, thread context, and Spaces.
- Publish text, image, and video posts after explicit OAuth approval.
- Split long posts into threaded chunks when the publish script needs it.
Common Commands
python3 scripts/twitter_client.py user-info --username elonmusk
python3 scripts/twitter_client.py search --query "AI agents" --type Latest
python3 scripts/twitter_client.py trends --woeid 1
python3 scripts/twitter_oauth_client.py status
python3 scripts/twitter_oauth_client.py authorize
python3 scripts/twitter_oauth_client.py post --text "Hello from AIsa"
Posting Workflow
When the user asks to send, publish, reply, or quote on X/Twitter, follow ./references/post_twitter.md.
- Return the authorization link first when posting is not yet approved.
- Use
--media-file only for user-provided workspace files.
- Do not invent captions, remote URLs, or extra media attachments.
Runtime Boundary
- The package is relay-based: read calls, OAuth requests, and approved media uploads go to
api.aisa.one.
- The package is API-key-first: it requires
AISA_API_KEY and does not ask for passwords, cookies, CT0, or other legacy secrets.
- The package does not include cache sync, self-install logic, home-directory persistence, browser-cookie extraction, or external agent CLI wrappers.
- Browser opening is optional and not the default workflow; returning the authorization link is the preferred path for this release.
1---2name: openclaw-twitter-43description: 'Search X/Twitter profiles, tweets, trends, lists, communities, and Spaces through the AISA relay, then publish approved posts with OAuth. Use when: the user asks for Twitter/X research, monitoring, or posting without sharing passwords. Supports read APIs, authorization links, and media-aware posting.'4compatibility: Designed for Agent Skills compatible clients such as OpenClaw, Claude Code, Hermes, and GitHub-backed skill catalogs. Requires system binaries python3, environment variables AISA_API_KEY and internet access to api.aisa.one.5metadata:6 source: https://skillmd.com/skills/baofeng-tech/openclaw-twitter-47 author: AIsa8 version: 1.0.09 homepage: https://aisa.one10 repository: https://github.com/baofeng-tech/agent-skills-so11 tags: twitter,x,search,research,media,aisa12 platforms: agentskills.io,agentskills.so,github13 primary_env: AISA_API_KEY14allowed-tools: Read Bash Grep15---1617# Twitter1819Runtime-focused skill package for Twitter/X search and posting through the AISA relay.2021## When to use2223- The user wants to read profiles, timelines, mentions, followers, tweet search results, trends, lists, communities, or Spaces.24- The user wants to draft or publish posts after completing OAuth without sharing passwords.25- The task needs a Python client for repeatable Twitter/X automation backed by `AISA_API_KEY`.2627## When NOT to use2829- The user needs cookie extraction, browser credential scraping, or direct password login.30- The workflow must avoid sending requests, OAuth state, or approved media through `api.aisa.one`.31- The request is for likes, follows, or other engagement actions not covered by this package.3233## Quick Reference3435- Required env: `AISA_API_KEY`36- Read client: `./scripts/twitter_client.py`37- Post workflow guide: `./references/post_twitter.md`3839## Setup4041```bash42export AISA_API_KEY="your-key"43```4445All network calls go to `https://api.aisa.one/apis/v1/...`.4647## Capabilities4849- Read user data, timelines, mentions, followers, followings, verified followers, and follow relationships.50- Search tweets and users, inspect replies, quotes, retweeters, thread context, and Spaces.51- Publish text, image, and video posts after explicit OAuth approval.52- Split long posts into threaded chunks when the publish script needs it.5354## Common Commands5556```bash57python3 scripts/twitter_client.py user-info --username elonmusk58python3 scripts/twitter_client.py search --query "AI agents" --type Latest59python3 scripts/twitter_client.py trends --woeid 160python3 scripts/twitter_oauth_client.py status61python3 scripts/twitter_oauth_client.py authorize62python3 scripts/twitter_oauth_client.py post --text "Hello from AIsa"63```6465## Posting Workflow6667When the user asks to send, publish, reply, or quote on X/Twitter, follow `./references/post_twitter.md`.6869- Return the authorization link first when posting is not yet approved.70- Use `--media-file` only for user-provided workspace files.71- Do not invent captions, remote URLs, or extra media attachments.7273## Runtime Boundary7475- The package is relay-based: read calls, OAuth requests, and approved media uploads go to `api.aisa.one`.76- The package is API-key-first: it requires `AISA_API_KEY` and does not ask for passwords, cookies, `CT0`, or other legacy secrets.77- The package does not include cache sync, self-install logic, home-directory persistence, browser-cookie extraction, or external agent CLI wrappers.78- Browser opening is optional and not the default workflow; returning the authorization link is the preferred path for this release.