twitter-x-marketing
Create, optimize, and automate content for Twitter/X including tweets, threads, polls, and API automation with the X API v2. Use when someone asks to "write a…
от TerminalSkills★ 221 звезда на GitHub
Установить twitter-x-marketing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Twitter/X Marketing
Overview
This skill helps AI agents write Twitter/X content and publish it through the X API v2. It covers tweet formatting, thread writing, API-based posting with media and polls, reading metrics, and growth tactics.
The API facts below were checked against the X developer documentation (docs.x.com). Growth and timing advice is a heuristic: X does not publish current ranking weights or best posting times, so treat those lines as starting points to test on your own account.
Instructions
Platform Rules
- Length: 280 characters per post on the standard account. Use a thread for longer content.
- Formatting: plain text only. Line breaks work; markdown does not render. Use capitals or emoji for emphasis.
- Links: a link in the post body is a common reason for lower reach (heuristic). Put the link in a reply to your own post.
- Hashtags: one or two at most, or none (heuristic).
- Metrics:
public_metricsis requested withtweet.fieldsand lists reply, repost, like, quote, bookmark and impression counts (repost_count,reply_count,like_count,quote_count,bookmark_count,impression_count).
Content Formats
Single Tweet
[Hook: sharp, opinionated, or surprising]
[Optional: 1-2 supporting lines]
[Optional: question or CTA]
- Keep each line short. Test whether the hook stands alone in the feed.
- Images: use 16:9 (1200x675) for a single image and add alt text (heuristic sizing, not an X requirement).
Threads
1/ [Strong hook: it is the only tweet most people see]
2/ [Context or problem statement]
3-7/ [Main content: one point per tweet]
8/ [Summary or key takeaway]
9/ [CTA: follow, bookmark, or share]
10/ [Self-reply with the link, if needed]
- The first tweet must work alone, because it is what appears in the feed.
- Keep each tweet under 280 characters. Seven to ten tweets is a common length (heuristic).
- Post each tweet as a reply to the previous one (see the thread example below).
Polls
- The API accepts 2-4 options of 1-25 characters each.
- Duration is set in minutes, from 5 to 10080 (7 days).
- Post a follow-up with the results.
Spaces (Live Audio)
- Schedule in advance so followers can see it.
- Pin a tweet with the agenda before you start.
- Record the Space and clip highlights for posts. Check the Spaces API for the recording rules on your plan before automating this.
Video
- Upload native video, not a YouTube link. Use the chunked upload flow (see below).
- Captions help, since many people watch with sound off (heuristic).
- Check the current file size and length limits in the media upload docs before you build a pipeline.
X API v2 Integration
X API access is pay-per-use. There are no subscription tiers in the current documentation, and each request is billed. Per-request prices listed at docs.x.com/x-api/getting-started/pricing at the last check: post read $0.005, user read $0.010, post create $0.015, and $0.200 for a post that contains a URL (so keep links out of automated posts or budget for them). Pay-per-use is capped at 3 million post reads per month; higher volume requires an Enterprise plan. Check the page before you automate.
Authentication
Posting needs a user-context token. Use OAuth 2.0 Authorization Code with PKCE and these scopes: tweet.read, tweet.write, users.read, and media.write if you upload media, and offline.access if you want a refresh token. Keep X_CLIENT_SECRET in an environment variable and never commit it.
export X_USER_ACCESS_TOKEN="<token from the OAuth 2.0 PKCE flow>"
An app-only bearer token can read public data but cannot post.
Post a Tweet
Posts are created with POST https://api.x.com/2/tweets and a JSON body. The text field is required unless media is set.
const TOKEN = process.env.X_USER_ACCESS_TOKEN;
async function createPost(body: Record<string, unknown>) {
const res = await fetch('https://api.x.com/2/tweets', {
method: 'POST',
headers: {
Authorization: `Bearer ${TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`createPost ${res.status}: ${await res.text()}`);
return (await res.json()).data as { id: string; text: string };
}
// Simple post
await createPost({ text: 'Shipped the new export pipeline today.' });
// Reply to a post
await createPost({
text: 'Here is the benchmark setup we used.',
reply: { in_reply_to_tweet_id: '1234567890123456789' },
});
// Poll (2-4 options, duration in minutes)
await createPost({
text: 'Which deploy strategy do you use?',
poll: { options: ['Blue/green', 'Rolling', 'Canary'], duration_minutes: 1440 },
});
quote_tweet_id is a documented field of the create-post request. The X docs state no plan restriction for it, but test it on your account before you build a flow around it.
Upload Media, Then Post
Media uses the v2 chunked up
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _scores.json
FAQ
Что делает скилл twitter-x-marketing?
Create, optimize, and automate content for Twitter/X including tweets, threads, polls, and API automation with the X API v2. Use when someone asks to "write a tweet", "create a Twitter thread", "grow on X", "Twitter API integration", "automate tweeting", "Twitter analytics", "Twitter bot", or "X content strategy". Covers platform-specific formatting, X API v2 posting and media upload, thread creation, metrics, and growth tactics.
Как установить скилл twitter-x-marketing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл twitter-x-marketing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…