writing-x-posts — Claude Code skill: X posts and install
The writing-x-posts skill drafts single X posts and threads with sharp hooks, clear structure, and a closing prompt for replies or follows.
no license 6 installs ★ 22 updated 2025-12-19
npx skills add jamesgray007/hoai-course --skill writing-x-posts -a claude-codeWhat writing-x-posts does
The skill turns a topic or draft into content for X. It keeps a single post focused on one complete idea and builds threads from messages that can stand on their own. Opening lines can use a bold claim, a pain point, an unexpected turn, or an open question.
Its guidance covers storytelling, listicle, problem-solution, and contrarian thread structures. It also addresses post length, line breaks, hashtags, links, tone, and calls to action. The skill points to references/hooks.md for hook patterns and references/examples.md for sample structures.
A single post is capped at 280 characters, while a thread can run from 5-10 posts. That makes the skill a poor fit for drafts that must stay as one long X publication. It can be installed for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, or OpenCode.
What it helps with
- draft a concise X post
- turn a topic into a 5-10 post thread
- write an opening line that stops scrolling
- organize a tutorial with the problem-solution framework
Example prompts for the agent
- Write an X post about this product update with one clear idea, short lines, and a natural question at the end.
- Build a 7-post thread explaining this API migration with the problem-solution framework.
- Rewrite this draft for X with a stronger hook and make each thread post readable on its own.
How to install writing-x-posts
1Skills CLI (Vercel)
npx skills add jamesgray007/hoai-course --skill writing-x-posts -a claude-code2Manually: put the files in place
~/.claude/skills/writing-x-posts/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/writing-x-posts/
1Skills CLI (Vercel)
npx skills add jamesgray007/hoai-course --skill writing-x-posts -a codex2Manually: put the files in place
.agents/skills/writing-x-posts/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add jamesgray007/hoai-course --skill writing-x-posts -a cursor2Manually: put the files in place
.cursor/skills/writing-x-posts/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install jamesgray007/hoai-course .claude/skills/writing-x-posts2Manually: put the files in place
.github/skills/writing-x-posts/SKILL.md1Skills CLI (Vercel)
npx skills add jamesgray007/hoai-course --skill writing-x-posts -a gemini-cli2Platform CLI
gemini skills install https://github.com/jamesgray007/hoai-course --path .claude/skills/writing-x-postsManually: put the files in place
.devin/skills/writing-x-posts/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add jamesgray007/hoai-course --skill writing-x-posts -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about writing-x-posts
How do I install writing-x-posts in Claude Code?
Run npx skills add jamesgray007/hoai-course --skill writing-x-posts -a claude-code, then check ~/.claude/skills/writing-x-posts/SKILL.md.
What does writing-x-posts do?
It helps create single posts and threads for X. The skill shapes the hook, body, and closing, then applies one of several thread structures.
How does writing-x-posts handle single posts and threads?
A single post carries one complete idea and stays under 280 characters. A thread expands the subject across 5-10 posts, with each post able to stand alone.