tech/x

Monitor Twitter mentions and automate replies via Cloudflare Workers.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/2nth-ai/skills --skill tech-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tech/x
Source: https://github.com/2nth-ai/skills/tree/main/tech/x
Command: npx skills add https://github.com/2nth-ai/skills --skill tech-x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, twython, requests_oauthlib, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates real-time monitoring and interaction on Twitter, allowing for efficient engagement and response management.

Core Features & Use Cases

  • Real-time Mentions Monitoring: Monitor and filter mentions in real-time via a filtered stream in a Cloudflare Worker.
  • Automated Responses: Post, reply to tweets and mentions automatically with AI-generated responses.
  • Direct Messages: Send and receive Direct Messages via the DM API v2.
  • Authentication: Handle Twitter OAuth 2.0 PKCE for user context, Bearer token for public reads.
  • Rate Limit Management: Handle rate limits for API endpoints with per-endpoint windows, backoff, and tier-based caps.
  • Conversation Context Storage: Store X conversation context in D1 and KV for multi-turn engagement.
  • Noise Filtering: Deduplicate by tweet ID, skip retweets/own tweets, handle quote tweets.
  • Use Case: For a company using Twitter for customer support, this Skill can monitor mentions and automatically reply to customer queries, freeing up time for human agents to handle more complex issues.

Quick Start

Use the tech/x skill to monitor and reply to mentions of your brand.

Frequently Asked Questions about tech/x

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Twitter mentions monitoring and replies using the API v2?

Automate Twitter mentions monitoring by connecting to the API v2 filtered stream to detect brand mentions in real-time, then post AI-generated replies automatically. This Skill handles the stream processing and automated posting directly.

What's the best way to handle Twitter API v2 rate limits in an automation script?

Handle Twitter API v2 rate limits by implementing per-endpoint window tracking, exponential backoff, and tier-based caps. This ensures your automation script avoids hitting restrictions during high-volume mention monitoring and direct messaging tasks.

Do I need OAuth 2.0 PKCE to send Twitter direct messages via the API?

Yes, sending Twitter direct messages and posting automated replies requires OAuth 2.0 PKCE for user context authentication. Bearer tokens are also supported separately for public data reads like monitoring mentions.

Can I use Cloudflare Workers for real-time Twitter data processing?

Yes, you can use Cloudflare Workers for real-time Twitter data processing by routing the API v2 filtered stream through the Worker. This enables instant mention monitoring, noise filtering, and rapid dispatch of automated responses.

How do I store multi-turn Twitter conversation context for automated customer support?

Store multi-turn Twitter conversation context by saving interaction history in Cloudflare D1 and KV storage. This allows your automated customer support bot to maintain contextual awareness across multiple replies and direct messages.