The X agent skill
Eleven Claude skills that run an X account. Free, MIT, no signup, no API key,
nothing to connect.
They write your posts, comment on other people's threads, handle your replies,
fix your profile and plan your week. And one of them is the virality skill: it
finds the posts that are actually outperforming in your niche, breaks each one
down into hook, structure and format, and recreates the winners in your voice,
for your audience.
Under the skills are nine tools that actually run. One counts a post the way X
counts it (links are 23, emoji are 2). One scores your first line before you
post it. One cuts a draft into a thread that fits. One reads X's own published
ranking code and tells you what it rewards this week. One reads your analytics
export and tells you what worked, with the sample size on every claim.
Nothing is posted until you approve it. These skills write. You post.
Install
Paste this into Claude:
https://github.com/Jakeschincariol/x-agent-skill
Install this skill, then confirm /x-post works.
Or do it yourself, in Claude Code:
git clone https://github.com/Jakeschincariol/x-agent-skill.git
cp -r x-agent-skill/skills/x-* ~/.claude/skills/
Or as a plugin:
/plugin marketplace add Jakeschincariol/x-agent-skill
/plugin install x-agent
Project-local instead of global: copy the same folders into your repo's
.claude/skills/. No Claude Code at all? Paste any single SKILL.md at the
top of a chat and it runs as a mode. You lose the Python tools, which is most
of the point of /x-post, /x-viral and /x-human, but the rest works.
Then spend ten minutes on templates/voice.md. Copy it
to ~/.claude/x/voice.md and fill it in, or paste five of your own posts into
Claude and say "write my voice.md from these". Every skill reads that file.
Skip it and everything comes out sounding like everyone else on the timeline.
The eleven
| command | | what it does |
|---|
/x-post | Post Writer | One idea into a post. Three hooks from 21 formulas, scored, one draft, counted the way X counts, humanized. |
/x-comment | Comment Drafter | Replies on other people's posts and threads. Nine types, picked by what the post is. Reply or quote, decided first. |
/x-profile | Profile Optimizer | Scores your profile against a 12-part rubric out of 100, then rewrites bio, pinned post and header in fix-first order. |
/x-reply | Reply Handler | The replies under your own posts, sorted into lead / substance / peer / question / support / noise, then answered in that order. |
/x-plan | Content Planner | The week: what to post, which format, when, and the 10 accounts to engage with. |
/x-viral | Virality Engine | Finds what is outperforming in your niche, ranks it by multiple over each account's own median, breaks down hook, structure and format, recreates the top three for you. |
/x-thread | Thread Builder | Thread, long post or single post, decided first. Then post 1, one idea per post, cut to fit, and a last post people act on. |
/x-human | Humanizer | Strips em dashes, slop and invisible characters, then scores the draft on a five-check panel. |
/x-repurpose | Repurposer | One video, podcast, newsletter or LinkedIn post into a week of X posts and a thread. |
/x-dm | DM Handler | The first message, two follow-ups, and triage for your inbox and message requests. |
/x-audit | Account Audit | Reads your analytics export. Ranks by engagement, replies and shares per impression, not by impressions. |
The nine tools
Every one runs on a clean Python 3 with no dependencies. Seven never touch the
network. pull.py calls X's documented oEmbed API and weights.py reads a
public GitHub file; neither needs an account or a key.
python3 skills/x-post/count.py post.txt # X's weighted count + six lints
python3 skills/x-post/hookscore.py hooks.txt # score and rank first lines, name the formula
python3 skills/x-thread/thread.py draft.txt --number # cut a draft into a thread that fits
python3 skills/x-human/humanize.py draft.txt --report # strip the fingerprint
python3 skills/x-human/detect.py before.txt after.txt # five-check panel, before and after
python3 skills/x-viral/pull.py urls.txt > swipe.tsv # post URLs you picked -> text, format, date
python3 skills/x-viral/swipe.py swipe.tsv # outliers, broken down, as a swipe file
python3 skills/x-audit/audit.py analytics.csv # what worked, with n on every claim
python3 skills/x-plan/weights.py # what X's ranker rewards, live from X's code
Counting the way X counts