x-api

Post tweets and threads via the X/Twitter API with OAuth authentication.

Updated Jul 27, 2026
One-click install
npx skills add https://github.com/kouiso/designdiff --skill x-api-kouiso
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-api
Source: https://github.com/kouiso/designdiff/tree/main/.claude/skills/x-api
Command: npx skills add https://github.com/kouiso/designdiff --skill x-api-kouiso

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables programmatic interaction with the X (Twitter) API, automating tasks like posting tweets, managing timelines, and analyzing platform data.

Core Features & Use Cases

  • Post Tweets & Threads: Programmatically publish single tweets or multi-tweet threads.
  • Read & Search: Retrieve user timelines, mentions, and search for specific content.
  • Analytics: Access public metrics for tweets and user data.
  • Authentication: Supports OAuth 2.0 Bearer Token (App-Only) and OAuth 1.0a (User Context).
  • Use Case: Automate the posting of daily market updates to your X account or build a bot to monitor brand mentions.

Quick Start

Use the x-api skill to post the following text to X: "Hello from Claude Code".

Frequently Asked Questions about x-api

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

FAQPage Schema
How do I automate posting tweets and threads to X using the API?

Automating tweet posting and thread creation to X requires OAuth 1.0a user context authentication. This programmatic approach handles multi-tweet thread creation, rate limit management, and platform-native content error handling.

What is the best way to retrieve user timelines and search X content programmatically?

Retrieving user timelines and searching X content programmatically uses OAuth 2.0 Bearer Token (App-Only) authentication. This method fetches mentions, timelines, and specific search results while managing API rate limits.

Does the X API support OAuth 2.0 Bearer Token and OAuth 1.0a user context authentication?

Yes, the X API supports both OAuth 2.0 Bearer Token (App-Only) and OAuth 1.0a (User Context) authentication patterns. Bearer tokens read timelines and analytics, while OAuth 1.0a handles programmatic tweet posting and thread creation.

Can I use API integration to build a bot for monitoring brand mentions on X?

Yes, you can use API integration to build a bot for monitoring brand mentions on X. The integration reads mentions, retrieves timelines, and searches specific content while handling authentication and rate limit management for continuous monitoring.

How do I access public metrics and analytics for tweets via the Twitter API?

Accessing public metrics and analytics for tweets via the Twitter API requires OAuth 2.0 Bearer Token (App-Only) authentication. This grants read access to public tweet and user data metrics with built-in rate limit management.

Why does my automated tweet posting hit rate limits and how are they managed?

Automated tweet posting hits rate limits due to X API platform constraints. The integration includes built-in rate limit management and error handling, ensuring programmatic posting, thread creation, and timeline retrieval operate within allowed thresholds.