gpttang/skill-atlas/x-api
Claude Code and agent skill by gpttang/skill-atlas
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install gpttang/skill-atlas/x-apiSKILL.md
The same SKILL.md was published earlier as gpttang/skill-atlas/x-api.
X API
Programmatic interaction with X (Twitter) for posting, reading, searching, and analytics.
When to Activate
- User wants to post tweets or threads programmatically
- Reading timeline, mentions, or user data from X
- Searching X for content, trends, or conversations
- Building X integrations or bots
- Analytics and engagement tracking
- User says "post to X", "tweet", "X API", or "Twitter API"
Authentication
OAuth 2.0 (App-Only / User Context)
Best for: read-heavy operations, search, public data.
OAuth 1.0a (User Context)
Required for: posting tweets, managing account, DMs.
Core Operations
Post a Tweet
Post a Thread
Read User Timeline
Search Tweets
Get User by Username
Upload Media and Post
Rate Limits Reference
| Endpoint | Limit | Window | |
|---|---|---|---|
| POST /2/tweets | 200 | 15 min | |
| GET /2/tweets/search/recent | 450 | 15 min | |
| GET /2/users/:id/tweets | 1500 | 15 min | |
| GET /2/users/by/username | 300 | 15 min | |
| POST media/upload | 415 | 15 min |
Always check x-rate-limit-remaining and x-rate-limit-reset headers.
Error Handling
Security
- Never hardcode tokens. Use environment variables or
.envfiles. - Never commit `.env` files. Add to
.gitignore. - Rotate tokens if exposed. Regenerate at developer.x.com.
- Use read-only tokens when write access is not needed.
- Store OAuth secrets securely — not in source code or logs.
Integration with Content Engine
Use content-engine skill to generate platform-native content, then post via X API:
- Generate content with content-engine (X platform format)
- Validate length (280 chars for single tweet)
- Post via X API using patterns above
- Track engagement via public_metrics
Related Skills
content-engine— Generate platform-native content for Xcrosspost— Distribute content across X, LinkedIn, and other platforms
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/social-media/x-api/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gpttang/skill-atlas/x-api)