posting-twitter
Skill12 starsChanged 2 months agoMITView on GitHub
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.
- Reads credentials
In this repository60 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- browser-useSkill
- browsing-with-playwrightSkill
- building-chatgpt-appsSkill
- building-chat-interfacesSkill
- building-chat-widgetsSkill
- building-mcp-serversSkill
- building-nextjs-appsSkill
- building-rag-systemsSkill
- configuring-better-authSkill
- configuring-dapr-pubsubSkill
- containerizing-applicationsSkill
- context7-efficientSkill
- context-degradationSkill
- context-fundamentalsSkill
- context-optimizationSkill
- creating-skillsSkill
- deploying-cloud-k8sSkill
- deploying-kafka-k8sSkill
- deploying-postgres-k8sSkill
- designing-nextjs-uiSkill
- digital-fte-orchestratorSkill
- doc-coauthoringSkill
- docxSkill
- evaluationSkill
- fetching-library-docsSkill
- generating-ceo-briefingSkill
- installing-skill-trackerSkill
- internal-commsSkill
- managing-calendarSkill
- managing-odooSkill
- managing-servicesSkill
- memory-systemsSkill
- multi-agent-patternsSkill
- nextjs-devtoolsSkill
- nx-monorepoSkill
- operating-k8s-localSkill
- operating-production-servicesSkill
- pdfSkill
- posting-facebookSkill
- posting-instagramSkill
- posting-linkedinSkill
- pptxSkill
- project-designerSkill
- researching-with-deepwikiSkill
- scaffolding-fastapi-daprSkill
- scaffolding-openai-agentsSkill
- sending-emailsSkill
- skill-creatorSkill
- streaming-llm-responsesSkill
- styling-with-shadcnSkill
- systematic-debuggingSkill
- theme-factorySkill
- tool-designSkill
- watching-filesystemSkill
- watching-gmailSkill
- watching-whatsappSkill
- working-with-documentsSkill
- working-with-spreadsheetsSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use when publishing tweets, creating threads, searching mentions, or getting timeline analytics.
- Distinctive: line 7
NOT when posting to other platforms.
- Very specific: line 50
Add to .env (use your Twitter credentials):
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.pySetup
1. Get Twitter API Credentials
- Go to Twitter Developer Portal
- Create an App
- Generate API keys and tokens:
- API Key & Secret
- Access Token & Secret
- Bearer Token
- 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_hereNote: Twitter calls it "Consumer Key" - that's your API Key.
Features
Posting
- Single tweets (280 characters)
- Threads (multiple connected tweets)
- Replies to other tweets
- Approval workflow (default)
- Rate limiting (50 tweets/day, 10/hour)
Analytics
- Tweet performance
- Engagement metrics
- Timeline insights
- Mentions tracking
Thread Creation
- Automatically chains tweets
- Each tweet links to previous
- Up to 25 tweets per thread
Twitter Best Practices
- Length: Max 280 characters
- Hashtags: 1-3 focused hashtags
- Threads: Break long content into 3-5 tweets
- Timing: Post during peak engagement hours
Approval Workflow
Posts/threads create files in Vault/Pending_Approval/:
- Review all tweets in thread
- Edit as needed
- Move to
Vault/Approved/to publish
Rate Limits
- Daily: 50 tweets
- Hourly: 10 tweets
Automatically enforced by MCP server.
Verification
Run: python scripts/verify.py
Expected: ✓ posting-twitter valid
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

