Posting twitter

From AbdullahMalik17/Digital-FTE · View interactive version

Posting twitter is an AI agent skill from the GitHub repository AbdullahMalik17/Digital-FTE. | Post content to Twitter/X using Twitter API v2. Use when publishing tweets, creating threads, searching mentions, or getting timeline analytics. Supports media and replies. NOT when posting to other platforms.

How to use this skill

Skill file

Twitter/X Poster Skill

Automated Twitter posting via Twitter API v2.

Quick Start

# Post a tweet
python scripts/run.py --post "Your tweet here"

# Create a thread
python scripts/run.py --thread "Tweet 1" "Tweet 2" "Tweet 3"

# Reply to tweet
python scripts/run.py --post "Reply text" --reply-to TWEET_ID

# Search mentions
python scripts/run.py --search "@yourusername"

# Get insights
python scripts/run.py --insights --days 7

# Verify setup
python scripts/verify.py

Setup

1. Get Twitter API Credentials

  1. Go to Twitter Developer Portal
  2. Create an App
  3. Generate API keys and tokens:
  1. Enable OAuth 2.0

2. Configure Environment

Add to .env (use your Twitter credentials):

TWITTER_API_KEY=your_consumer_key_here
TWITTER_API_SECRET=your_consumer_secret_here
TWITTER_ACCESS_TOKEN=your_access_token_here
TWITTER_ACCESS_SECRET=your_access_token_secret_here
TWITTER_BEARER_TOKEN=your_bearer_token_here

Note: Twitter calls it "Consumer Key" - that's your API Key.

Features

Posting

Analytics

Thread Creation

Twitter Best Practices

Approval Workflow

Posts/threads create files in Vault/Pending_Approval/:

Rate Limits

Automatically enforced by MCP server.

Verification

Run: python scripts/verify.py

Expected: ✓ posting-twitter valid

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.