X/Twitter Manager Skill for Openclaw

A robust PowerShell-based skill for managing X/Twitter interactions, analytics, and content posting through an AI agent.

seph1709
v1.0.2
Mar 1, 2026
0
1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install x-page

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 x-page 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 X/Twitter Manager Skill?

This skill enables an AI coding agent to interact with the X/Twitter API v2 directly from a local environment. By leveraging Openclaw Skills, developers can automate social media management tasks such as posting status updates, replying to mentions, and gathering engagement analytics. The skill operates using OAuth 1.0a authentication to ensure secure, user-context actions without requiring third-party middleware.

Built for the modern developer workflow, it uses PowerShell to construct and execute API calls inline. Whether you are building a personal brand or managing professional accounts, this integration provides a robust framework for programmatic social interaction while maintaining strict data privacy by communicating exclusively with official X/Twitter infrastructure.

X/Twitter Manager Skill Use Cases

  • Automating daily status updates or technical tips directly from your coding environment.
  • Monitoring mentions and replying to community feedback in real-time.
  • Conducting research by searching for specific hashtags or keywords using recent search endpoints.
  • Managing account engagement by liking, retweeting, or bookmarking relevant industry content.
  • Retrieving account analytics and follower data to track growth and impact.

How X/Twitter Manager Skill Works

  1. The AI agent initializes the session by loading credentials from the local configuration file.
  2. It identifies the user intent, such as posting a tweet or searching for content, and maps it to the appropriate X API v2 endpoint.
  3. A secure OAuth 1.0a Authorization header is generated using a specialized PowerShell helper function to sign the request.
  4. The skill executes the REST API call using Invoke-RestMethod to interact with the official X/Twitter endpoints.
  5. The response is parsed and the results, such as a new tweet ID or search data, are returned to the user.

X/Twitter Manager Skill Setup

To use this integration within Openclaw Skills, first create an app in the X Developer Portal and enable OAuth 1.0a with Read and Write permissions. Then, configure your credentials locally using the following command:

@{
    X_API_KEY       = "your_api_key"
    X_API_SECRET    = "your_api_secret"
    X_ACCESS_TOKEN  = "your_access_token"
    X_ACCESS_SECRET = "your_access_token_secret"
} | ConvertTo-Json | Set-Content "$HOME/.config/x-twitter/credentials.json" -Encoding UTF8

Secure the file permissions to ensure only your user can access the secrets:

# Windows
icacls "$HOME/.config/x-twitter/credentials.json" /inheritance:r /grant:r "$($env:USERNAME):(R,W)"
# macOS / Linux
chmod 600 ~/.config/x-twitter/credentials.json

X/Twitter Manager Skill Data Schema & Taxonomy

The skill manages data through a standardized JSON configuration and interacts with native X/Twitter objects. Key data structures include:

Data Object Description
credentials.json Stores API keys and access tokens at ~/.config/x-twitter/.
Tweet Object Contains id, text, and optional public_metrics.
User Object Includes username, name, and account statistics like follower counts.
Media Object Handles media_id_string for attaching images via the v1.1 upload endpoint.

X/Twitter Manager Skill Advanced Features

  • Multi-step media upload support for posting tweets with images using the v1.1 infrastructure.
  • Advanced search filtering using query parameters for targeted research within Openclaw Skills.
  • Integrated error handling for rate limits, providing specific retry timestamps from x-rate-limit-reset headers.
  • Support for complex thread management by chaining reply IDs in sequential API calls.
  • Capability to manage X Lists and bookmarks for organized content consumption.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*