x-api

Solid

Post tweets, build threads, upload media via the X API.

AI & Automation 392 stars 36 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# X API Skill ## Overview This skill orchestrates OAuth-authenticated, rate-limit-aware X/Twitter API interactions through a deterministic Python script (`scripts/x-api-poster.py`). The workflow implements a 4-phase pipeline with an explicit confirmation gate (Phase 2) to prevent accidental public posts. **Core principles**: - Always validate credentials and content before any network call - The confirm gate is mechanically enforced by the script (refuses write ops without `--confirmed`) - Credentials flow from environment variables only; the operator never configures auth mode - Rate limits are surfaced immediately if remaining capacity drops below 10 --- ## Instructions ### Phase 1: VALIDATE **Goal**: Confirm credentials, content, and dependencies before any network call. **Step 1: Check credentials** Test credential presence by running a dry-run credential check: ```bash python3 $HOME/.claude/scripts/x-api-poster.py post --dry-run --text "ping" ``` This confirms all required environment variables are set: `X_API_KEY`, `X_API_SECRET`, `X_ACCESS_TOKEN`, `X_ACCESS_SECRET`, `X_BEARER_TOKEN`. - For read-only operations (timeline, search), only `X_BEARER_TOKEN` is required - For write operations (post, thread), all five are required - If any required variables are missing, the script exits with a clear error; surface it to the user and stop - **Important**: Never pass credentials as command arguments or store in files — always read from environment **Step 2: Validate...

Details

Author
notque
Repository
notque/vexjoy-agent
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

148,923 Updated 1 months ago
affaan-m
AI & Automation Solid

x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

199,470 Updated yesterday
affaan-m
DevOps & Infrastructure Listed

twitter

Twitter/X integration with three modes: official API v2 search/research via x-search (pay-per-use, $0.005/read), session-based posting/reading via bird CLI (free, browser cookies), and bookmark archival via Smaug. This skill should be used when searching tweets, researching topics on X, posting, monitoring accounts, or archiving bookmarks.

33 Updated 2 days ago
tdimino
AI & Automation Listed

xitter

Interact with X/Twitter via the x-cli terminal client using official X API credentials. Use for posting, reading timelines, searching tweets, liking, retweeting, bookmarks, mentions, and user lookups.

2 Updated 1 months ago
ever-oli
AI & Automation Solid

xitter

Interact with X/Twitter via the x-cli terminal client using official X API credentials. Use for posting, reading timelines, searching tweets, liking, retweeting, bookmarks, mentions, and user lookups.

175,435 Updated today
NousResearch