OpenClaw skill
aisa-twitter-api
An OpenClaw skill that enables agents to interact with the Twitter API v2. It supports posting tweets and replies, fetching the home timeline, searching recent tweets, and retrieving user information. The skill requires a Twitter Bearer Token for authentication.
Security notice: review the SKILL.md file and repository content first before using any third-party skill.
Files
Review the files below to add this skill to your agents.
SKILL.md content
Unable to load SKILL.md content from source.
How this skill works
- The skill is named 'aisa-twitter-api'
- It provides Twitter API v2 functionality for posting tweets
- Configuration requires BEARER_TOKEN from Twitter developer portal
- Supports task 'post_tweet' with required parameter 'text'
- Internally uses Python requests library
- Authenticates requests using Authorization: Bearer {BEARER_TOKEN}
- Posts to https://api.twitter.com/2/tweets with JSON body {"text": "{text}"}
- Parses successful response to return tweet metadata including id
- Handles API errors by returning error details
When to use it
- When posting a new tweet via the Aisa Twitter API
- When replying to an existing tweet using the Aisa Twitter API
- When retrieving a user's recent tweets with the Aisa Twitter API
- When searching for tweets matching specific keywords via the Aisa Twitter API
Best practices
- Obtain Twitter API v2 Bearer Token from developer.twitter.com
- Store bearer_token securely using environment variables
- Ensure Twitter app has Elevated access for v2 endpoints
- Do not hardcode or commit bearer_token to source control
- Handle Twitter API rate limits in skill logic
Example use cases
- Post a new tweet: Uses the post_tweet tool to publish a new message on Twitter with the provided text.
- Retrieve user tweets: Uses the get_user_tweets tool to fetch recent tweets from a specified Twitter username.
- Search for tweets: Uses the search_tweets tool to find tweets matching a given search query.
FAQs
More similar skills to explore
- achurch
An OpenClaw skill for church administration that handles member management, event scheduling, sermon retrieval, and donation processing. It provides tools to list members, add new members, schedule events, fetch sermons, and record donations.
- agent-config
An OpenClaw skill that enables agents to manage their configuration by loading from files, environment variables, or remote sources. It supports retrieving, setting, and validating configuration values. The skill allows for hot-reloading of configurations.
- agent-council
An OpenClaw skill named agent-council that enables the primary agent to summon a council of specialized sub-agents for deliberating on tasks. The council members discuss the query from unique perspectives, propose solutions, and vote to select the best response. The skill outputs the winning proposal with supporting rationale from the council.
- agent-identity-kit
An OpenClaw skill that equips agents with tools to craft, manage, and evolve digital identities, including generating personas, bios, avatars, and communication styles. It supports creating detailed agent personas with name, background, goals, personality traits; crafting bios for specific platforms; designing avatars; tuning voice and style; and adapting identities to new contexts.
- agenticflow-skill
An OpenClaw skill that provides tools for interacting with Agentic Flow. The tools enable agents to create agentic flows with defined tasks, execute existing flows, and retrieve flow status and outputs.
- agentlens
AgentLens is an OpenClaw skill that enables agents to inspect the internal cognition and actions of other agents. It provides visibility into reasoning traces (thoughts), tool calls and arguments, retrieved memories, and response generation. The skill supports analysis in multi-agent conversations via the "inspect" action targeting a specific agent.