What does x-post do?
Drafts one post. The human publishes it. This skill never posts, schedules, likes, replies, follows or DMs.
Commands use paths from the repo root. If this skill is installed on its own,
run the script from this folder instead (for example
~/.claude/skills/x-post/lint.py). On Windows use python or py -3.
Before you start
Get the voice profile first: run python3 skills/x-voice/voice.py find and
use the path it prints wherever a command below says <voice-path>. If it
finds none, create one automatically with python3 skills/x-voice/voice.py init
and fill it in with the user as the x-voice skill describes. The user can also
copy the template by hand. Drafts must follow its vocabulary, banned words, emoji, hashtags and language.
Inputs
- The idea or topic (required).
- The goal: replies, reposts, bookmarks, profile visits or link clicks.
- Any facts, numbers or links the post must include. Only these numbers may appear in the post.
Outputs
- 5 hooks, ranked by
hookscore.py, each with a one-line reason. - 3 full variants, each with its
lint.pyresult. - Nothing is published.
Workflow
- Clarify the goal. If the goal or the key fact is missing, ask one short question. Do not interrogate.
- Write 5 hooks into
hooks.txt, one per line, each from a different formula inhooks.json. Read thetemplate,purposeandfailure_modeof each formula you use. - Score them.
Read the reasons. Rewrite the weakest property of the best 2 hooks and score again once if it helps. Drop hooks under 50 unless the user likes one.python3 skills/x-post/hookscore.py hooks.txt - Write 3 variants into
drafts.txtfrom the top hooks, in different shapes: a short punch (under 140 characters), a story (4 to 6 short lines) and a list or steps. Put a line containing only---between drafts. - Lint them.
Fix every ERROR. Fix every warning unless voice.md says otherwise, and say why you kept it. Re-run until no draft is FAIL.python3 skills/x-post/lint.py drafts.txt --voice <voice-path> - Clean them. If x-human is installed:
Rewrite any flagged line by hand, then lint again.python3 skills/x-human/humanize.py drafts.txt --report - Present them in the format below and wait for approval. On feedback, revise and re-lint. Never post.
Hook formulas (hooks.json)
25 formulas, each with template, example, purpose, failure_mode and a
match regex. The first matching formula wins, so specific ones come first.
| family | formulas |
|---|---|
| proof | result-in-timeframe, before-after, data-point, research-insider |
| story | story-open, failure-lesson, past-self |
| utility | number-list, how-i, how-to, steal-this, framework, heres-how |
| tension | mistake, contrarian, stop-doing, warning, truth-about, curiosity-gap, comparison, prediction |
| direct | callout, news-breakdown, question, one-liner |
What the scripts check
lint.py (one or more drafts, separated by ---):
- Length as X counts it: URLs count 23, emoji and CJK count 2, max 280
(
--max 25000only for accounts with long posts). Exit code 1 if any draft is over. - Hashtags (more than 2 warns), mentions, emoji, line breaks, walls of text.
- The first 100 characters: the first sentence must land inside them.
- Missing hook (filler openers such as "So", "Thread:", "I've been thinking").
- A question with no CTA at the end, and all-caps shouting.
- With
--voice: 'Words I never use', and the emoji and hashtag policy.
hookscore.py (one hook per line): 0 to 20 each for specificity, curiosity
gap, brevity, concrete number or noun, and clarity, giving a total out of 100.
Both accept stdin and --json.
Rules
- Never post, schedule, like, reply, follow or DM. Hand over text only.
- Never invent numbers, results, quotes or stories. If a hook needs a number
the user has not given, ask for it or write
{N}and flag it. - Follow voice.md: vocabulary, banned words, emoji, hashtags, language (Hinglish stays Hinglish, in the script the user writes in), CTA style and topics to avoid.
- One idea per post. Stay under 280 unless the user says they write long posts.
- No engagement bait ("like if", "RT if", "follow for more", "tag someone").
- Scores are heuristics. Never present them as predictions of reach.
Output format
Goal: <goal> Voice: <tone adjectives from voice.md>
Hooks (hookscore.py)
1. 81 <hook> <one-line reason>
2. 77 <hook> <one-line reason>
... (5 total)
Variant A <formula>, <length>/280, <PASS|WARN>
<full post text>
Variant B ...
Variant C ...
Notes: <warnings kept on purpose, {N} placeholders that need real numbers>
Pick one or tell me what to change. I won't post anything.