Twitter Agent Skill for Openclaw

A powerful toolkit for Twitter/X automation that utilizes session cookies to perform timeline summaries, notification analysis, and automated posting.

gan12003
v1.0.0
Feb 22, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install twitter-api

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install twitter-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Twitter Agent Skill?

The Twitter Agent Skill is a specialized asynchronous toolkit designed for AI agents to interact with the Twitter/X platform without requiring official API keys. By leveraging session cookies like auth_token and ct0, this skill enables seamless automation of social media workflows. It is a vital component for developers looking to expand their Openclaw Skills library with social operations, offering modules for tweet management, relationship tracking, and direct message handling.

This skill is built with an emphasis on flexibility, allowing agents to act as independent social entities. Whether you are building a news aggregator or a community manager bot, incorporating this into your Openclaw Skills provides the necessary infrastructure for reliable, script-driven social engagement.

Twitter Agent Skill Use Cases

  • Summarizing home timelines to keep agents informed of trending topics using Openclaw Skills.
  • Monitoring and analyzing notification signals to trigger automated agent responses.
  • Automating routine posting and follow operations across multiple accounts.
  • Extracting social data for sentiment analysis or digital marketing research.

How Twitter Agent Skill Works

  1. The skill authenticates with Twitter/X by reading auth_token and ct0 cookies from a configured environment file.
  2. The asynchronous client in the twitter_api directory establishes a connection to perform read or write operations.
  3. Specific scripts, such as timeline_summary.py, fetch raw data and process it into structured formats for the agent.
  4. Commands are issued via the CLI to post content or manage account relationships, fully integrated within the Openclaw Skills ecosystem.

Twitter Agent Skill Setup

To get started with this skill, follow these installation steps:

# Install required Python dependencies (3.10+ required)
pip install -r requirements.txt

# Configure your environment variables
cp .env.example .env

Edit the .env file to include your account cookies. You can then run operations such as python scripts/timeline_summary.py to test your Openclaw Skills integration.

Twitter Agent Skill Data Schema & Taxonomy

The skill manages data through environment variables and structured Python modules:

Component Description
.env Configuration Stores account labels, auth_tokens, and ct0 cookies for authentication.
twitter_api/ Contains modular sub-packages for Tweets, Users, Relationships, and DMs.
scripts/ Individual entry points for high-level operations like fetching notifications or posting.
Account Labels Generic environment variable naming (e.g., ACCOUNT_A) allows for multi-account scalability within Openclaw Skills.

Twitter Agent Skill Advanced Features

  • Support for multiple account labels to manage complex social networks.
  • Async client architecture ensures high performance and non-blocking operations for Openclaw Skills.
  • Built-in signal analysis to filter high-value interactions from notification noise.
  • Custom script support for specialized social ops like bulk following or targeted timeline scraping.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*