lobstergeneralintelligence

X Api

Contentv0.1.0
By lobstergeneralintelligenceUpdated 2026-05-11x-api@clawhub_lobstergeneralintelligence/x-api
Social Media#Tweet

According to AlphaMoat, as of 2026-10, X Api has 15,136 downloads and 46 stars — ranked by downloads #1,843 among 10,914 AI skills in this ranking, and #194 of 927 in Content.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
15.1K
Stars
46
Overall download rank
#1,843
Top 17% overall · Top 21% in Content
PlatformDownloadsStarsComments
ClawHub ↗8.1K455
SkillHub ↗15.1K46—

Platforms count differently and update at different times.

What this skill does

It publishes tweets through the official endpoint, accepts multi-line text and returns the tweet URL on success, using the API instead of cookie-based posting so bot detection does not block it. It needs an X developer app's API key, secret, access token and secret, plus twitter-api-v2 installed. For reading, use bird instead. Posting is public and may be difficult to undo; confirm the account and final text before publishing.

Profile published 2026-10-29

What you can do with it

  • Post a multi-line update as a tweet
  • Get the tweet URL back after publishing for records

When to use it

  • When stable posting matters more than reading timelines
  • When cookie-based posting gets blocked

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Post this update to X
Publish this multi-line announcement and give me the link

Monthly Trend

Downloads15.1K
6.9K11.3K15.7K2026-03 · Downloads 7.5K2026-05 · Downloads 8.2K2026-07 · Downloads 8.7K2026-08 · Downloads 8.9K2026-09 · Downloads 10.0K2026-10 · Downloads 15.1K26-0326-0926-10
Stars46
4345462026-03 · Stars 432026-05 · Stars 462026-07 · Stars 462026-08 · Stars 462026-09 · Stars 462026-10 · Stars 4626-0326-0926-10

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-1015.1K—46
2026-0910.0K—46
2026-088.9K+2.1%46
2026-078.7K—46
2026-058.2K—46
2026-037.5K—43

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.3 KB · ClawHub v0.1.0
---
name: x-api
description: Post to X (Twitter) using the official API with OAuth 1.0a. Use when you need to tweet, post updates, or publish content. Bypasses rate limits and bot detection that affect cookie-based approaches like bird CLI.
---

# x-api 🐦

Post to X using the official API (OAuth 1.0a).

## When to Use
Show all (102 lines)

- Posting tweets (cookie-based `bird tweet` gets blocked by bot detection)
- Official API access is needed for reliability

For **reading** (timeline, search, mentions), use `bird` CLI instead — it's free and works well for reads.

## Setup

### 1. Get API Credentials

1. Go to https://developer.x.com/en/portal/dashboard
2. Create a Project and App
3. Set App permissions to **Read and Write**
4. Get your keys from "Keys and tokens" tab:
   - API Key (Consumer Key)
   - API Key Secret (Consumer Secret)
   - Access Token
   - Access Token Secret

### 2. Configure Credentials

**Option A: Environment variables**
```bash
export X_API_KEY="your-api-key"
export X_API_SECRET="your-api-secret"
export X_ACCESS_TOKEN="your-access-token"
export X_ACCESS_SECRET="your-access-token-secret"
```

**Option B: Config file** at `~/.clawdbot/secrets/x-api.json`
```json
{
  "consumerKey": "your-api-key",
  "consumerSecret": "your-api-secret",
  "accessToken": "your-access-token",
  "accessTokenSecret": "your-access-token-secret"
}
```

### 3. Install Dependency

```bash
npm install -g twitter-api-v2
```

## Post a Tweet

```bash
x-post "Your tweet text here"
```

Or with full path:
```bash
node /path/to/skills/x-api/scripts/x-post.mjs "Your tweet text here"
```

Supports multi-line tweets:
```bash
x-post "Line one

Line two

Line three"
```

Returns the tweet URL on success.

## Limits

- Free tier: 1,500 posts/month (requires credits in X Developer Portal)
- Basic tier ($100/mo): Higher limits

## Reading (use bird)

For reading, searching, and monitoring — use the `bird` CLI:

```bash
bird home                    # Timeline
bird mentions                # Mentions
bird search "query"          # Search
bird user-tweets @handle     # User's posts
bird read <tweet-url>        # Single tweet
```

## Troubleshooting

**402 Credits Depleted**: Add credits in X Developer Portal → Dashboard

**401 Unauthorized**: Regenerate Access Token (ensure Read+Write permissions are set first)

**No credentials found**: Set env vars or create config file (see Setup above)

Popular in Content

李白.SkillContent

李白.Skill:润色专家 检测并消除中文文本中的AI生成痕迹,将生硬的机器输出转化为自然流畅的人类文笔。融合规则检测、分层改写和质控流水线,确保最终文本通过人工审查。

↓ 1.3M★ 121user_741dc82b
libai-skillContent

李白.Skill:润色专家 检测并消除中文文本中的AI生成痕迹,将生硬的机器输出转化为自然流畅的人类文笔。融合规则检测、分层改写和质控流水线,确保最终文本通过人工审查。

↓ 1.0M★ 11user_814dbe54
文章去AI味工具Content

Detects and removes AI writing traces so text reads more like a person wrote it.

↓ 951.0K★ 767user_ab5ae6ee
视频号爆款短视频拆解(付费版:全能)【零一数科·出品】Content

【零一数科·出品】视频号爆款短视频拆解(全能版)(付费版)。视频号爆款短视频拆解(付费版:全能)。一键拆解爆款,把一条视频号视频拆成结构分段、爆款归因、六维评分和可借鉴策略,照着学照着抄。支持视频号分享链接和本地视频,付费全能版远端分析,1–5 分钟出可视化 HTML 报告。

↓ 918.5K★ 116u_c19e970c
视频号挂车爆单短视频脚本生成【零一数科·出品】Content

【零一数科·出品】视频号挂车爆单短视频脚本生成(付费版)。一条链接二创脚本,丢进爆款视频号链接即以此骨架改写成你的挂车脚本,或按方向/目的/商品原创多条口播脚本(含分段表、口播全文、六维质检评分)。

↓ 554.4K★ 39u_c19e970c
HumanizerContent

A writing-editor skill that finds the usual marks of AI-generated text and rewrites them into more natural prose without losing the meaning.

↓ 508.8K★ 1.1KB*T
中文公文写作Content

用于中文公文、事务性材料和新闻稿件的起草、改写、压缩、润色、审校、文种核对、去口语化、降 AI 味及 Word 格式处理,适用于机关、企事业单位、学校和新闻机构。涵盖申请、请示、报告、通知、通告、意见、决定、决议、议案、公报、命令、函、复函、批复、说明、方案、纪要、公告、公示、通报、制度、规定、办法、细则、操作规程、工作要点、总结、调研、讲话、致辞、主持词、述职、可研、审查材料、技术需求、新闻消息、编者按、新闻评论,以及采购、整改、反馈和 AI 算力等场景。

↓ 413.4K★ 84gongyu0918
视频号爆款文案生成(体验版)【零一数科·出品】Content

【零一数科·出品】视频号爆款文案生成(体验版)。免费免登录出脚本,给创作目的、行业、受众、选题就按爆款结构(Hook-中段-CTA、节奏标签)产出口播脚本,信息不全也能按爆款潜质兜底。本地运行、无需 Key,零成本上手。

↓ 339.1K★ 94u_c19e970c

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.