/x-agent:x-postfrom x-agent
Turns a raw idea into an X/Twitter post using 21 hook formulas, counts characters the way X does, and humanizes the output so it doesn't read as AI. Produces scored hooks, a full draft, and a copy-ready block.
Ships in x-agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turns one raw idea into a post that sounds like the person who posted it.
Three files in this folder do real work:
python3 hookscore.py --hook "one line" # five-property hook panel + formula name
python3 hookscore.py hooks.txt # rank several options
python3 count.py post.txt # X's weighted count + six lints
python3 count.py post.txt --premium # long post: shows where "Show more" cuts
hooks.json holds the 21 formulas: template, filled example, what each is
for, the way each usually gets ruined, and the regex that names it.
~/.claude/x/voice.md if it exists. That is the user's voice
profile. If it does not exist, ask for five of their own recent posts,
infer the voice, and write the file from templates/voice.md. Do not
invent a voice. A post in the wrong voice is worse than no post.hooks.json. All 21.~/.claude/x/swipe.md if /x-viral has run. If a formula is
over-indexing in the user's niche right now, prefer it when it fits.On X the first line is not the start of the post. It is most of the post.
Line 1 the hook. Complete on its own. Under ~110 characters so it reads
in one glance on a phone.
Line 2 the payoff of line 1, or the proof of it. Not setup for line 3.
Rest only if it earns its place. Short lines. A blank line between ideas.
End the last true sentence, or one specific question. Never both.
count.py counts it the
way X does: every link is 23, every emoji is 2, "…" is 2.count.py --premium draws the fold for you.X publishes its current ranking weights. Run python3 ../x-plan/weights.py
for today's numbers. The shape has been stable even as the values move:
replies, quotes and shares (by DM or copied link) are weighted far above
likes, and "not interested", mute, block and report are weighted heavily
negative. X's own comment in that file warns these apply to predicted
probabilities, not to counts, so do not tell the user "a reply is worth ten
likes". Tell them what it means for the draft:
1. Three hooks, from three different formulas. Run the idea through
hooks.json, pick the three that genuinely fit, write one line each, then
score them together:
printf '%s\n' "hook one" "hook two" "hook three" | python3 hookscore.py -
Show the ranking. Say which you would ship and why, in one sentence. If the top one is under 50, none of these is the hook. Write three more.
2. Draft the full post on the strongest hook.
3. Count it. python3 count.py draft.txt. Fix every FAIL. Read every
WARN out to the user with what you did about it.
4. Humanize it. Run the draft through /x-human. Every post from this
skill ships humanized.
5. Print the block. Copy-ready, in a fenced block, exactly as it should be pasted. Then:
POST READY
hook: #9 Time Anchor (score 81 STRONG)
length: 187 / 280
humanizer: 3 artefacts stripped, human score 91 PASS
post at: Tuesday 9:00am their time (from your plan)
Reply "yes" to log it, or tell me what to change.
6. Never publish. This skill writes text. The user posts it. On "yes",
append the post to ~/.claude/x/log.md with the date, the hook formula and
the first line, so /x-audit has a history to work from.
/x-audit will show which is true for their account.{{your number}} in the draft and flag it./x-post I rebuilt my proposal process with Claude, 5 hours down to 20 minutes
HOOK RANKING
-> 84.0 STRONG I wasted two years hand-formatting proposals I should hav...
#17 The Regret · weakest: SPECIFICITY (75)
81.4 STRONG Writing a proposal used to take me 5 hours. It now takes ...
#9 Time Anchor · weakest: STAKES (70)
66.2 OK A $12,000 proposal writer vs a weekend with Claude. The w...
#18 The Comparison · weakest: ADDRESS (35)
Shipping #9 over #17. The scores are three points apart, which is noise, and #9's
numbers are the user's own. The scorer is a lint, not a judge.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jakeschincariol/x-agent-skill --plugin x-agent11 skills in this plugin
/x-auditPost-mortem on what the user has already published on X - which posts actually worked, why, and what to stop doing - from their own analytics export. Use when the user shares their X analytics CSV or past posts and asks "what's working", "why did this flop", "read my analytics", "audit my account", "what should I double down on", or wants to know whether links, threads or a posting time actually matter for them./x-commentWrite replies on other people's X posts and threads that read as a person with something to add, not a reply guy. Use when the user pastes a post and wants a reply, says "reply to this", "comment on this thread", "engage with this", "what do I say here", "quote tweet this", or wants a batch of replies for their daily engagement round./x-dmOther plugins' skills for the same job