I gave Claude Code one sentence and five of our articles. The sentence was "turn this article into a LinkedIn post, an X post and a Reddit post". All five X posts came back over 280 characters, one at 448. All five Reddit posts named RankControl or linked to it, so they read as ads.
That isn't a flaw in Claude Code. Left alone, it wrote what I asked for and nothing more. This guide covers the setup that fixed it, a rules file, a skill, a check script and a headless loop, and what the check step did and didn't do.
Can Claude Code do social media posts?
It can draft them. It can't schedule them. Google's AI Overview for "claude code social media" on November 6, 2026 said posting runs through MCP servers, skills and publishing tools instead of native posting. So the shape is simple. Claude Code writes drafts into files, you read them, and a scheduler sends the ones worth sending.
Connecting Claude Code to outside tools is covered in our guide to running SEO from Claude Code and Cursor, and the strategy side is in our post on social media from your blog posts.
What does a plain prompt get wrong?
I ran Claude Code 2.1.318 headless on five of our posts, a guide, a listicle, an analysis, an opinion piece and a how-to. Each got one run with the one-sentence prompt, then one run with the setup below. That's 15 posts per version, on one day and one machine, so treat it as a demonstration and not a benchmark.
| Check | Plain prompt | With rules |
|---|---|---|
| X post over 280 characters | 5 of 5 | 0 of 5 |
| LinkedIn post with 3 or more hashtags | 5 of 5 | 0 of 5 |
| Link in the Reddit post | 5 of 5 | 0 of 5 |
| Stock AI phrase | 2 of 5 LinkedIn posts | 0 |
| Number not in the article | 1 of 15 | 0 of 15 |
| Posts failing at least one check | 15 of 15 | 0 of 15 |
The hashtag and link rows are house rules the plain prompt never heard, so they show defaults, not mistakes. The one number flag was "863k" for "863,000", a format change and not an invented figure. X length is the miss you won't see by eye. Two plain posts were under 50 characters over, which looks fine until you count.
The Reddit posts told the bigger story. The plain ones ran 311 to 498 words with bold headings, and four of five carried a disclosure line. Two said "I work on RankControl", a line no article contains. With rules they dropped to 114 to 212 words with no bold and no link.
200+ SaaS teams already track their AI citations.
They know exactly when ChatGPT mentions their brand, and when it stops. Do you?

What goes in the folder and CLAUDE.md?
One folder holds the lot.
social/
CLAUDE.md
check.py
articles/
out/
.claude/skills/social/SKILL.md
Mine ran about 20 lines, and this is the core of it.
## Facts
- Use only numbers and claims that appear in the article.
- Copy numbers as the article writes them.
## Platforms
- LinkedIn: 600 to 1,300 characters, at most 2 hashtags.
- X: hard max 280 characters. A URL counts as 23. No hashtags.
- Reddit: no link, no hashtags, no sign-off.
Claude Code's docs say it treats CLAUDE.md "as context, not enforced configuration", and they suggest instructions that are "concrete enough to verify". They also say to keep each file under 200 lines.
Not everyone is sold. An r/ClaudeCode poster ran a popular CLAUDE.md on four tasks, three runs each, and saw behavior change on two, and a commenter called most rules placebo. That fits what I saw. A limit like 280 is a fact the model can't guess, and a vibe like "sound natural" isn't.
X's counting page sets the 280 and the 23 for links, and LinkedIn's post API docs give 3,000 characters. Threads text posts stop at 500, per Meta's developer docs. Our AI content repurposing guide has the limits for all eight platforms.

What does the /social skill do?
A file at .claude/skills/social/SKILL.md gives you a /social command, since the docs say custom commands and skills now work the same way.
---
name: social
argument-hint: [article-file] [article-url]
allowed-tools: Read Write Bash(python3 check.py *)
---
Turn the article at $0 into three drafts. The URL is $1.
1. Read $0.
2. Write LinkedIn, X and Reddit drafts to out/.
3. Run `python3 check.py out/<file>.md $0 $1`.
4. Fix only what failed. Stop after three fixes.
Inside a headless run, writing /social articles/post.md https://example.com/post in the prompt expands the skill before Claude starts. The docs confirm it, and so did my runs.
What should the check script test?
Plain Python, no dependencies, about 100 lines. It exits 0 when every check passes and 1 when any fails.
| Check | Rule |
|---|---|
| X length | 280, with a URL as 23 and an emoji as 2 |
| LinkedIn length | 3,000 |
| Hashtags | A cap per platform |
| Numbers | Every number in a draft must appear in the article |
| Stock phrases | A short list, such as "unlock" and "let that sink in" |
| No link |
The number check is a string match against the article. One commenter in r/PromptEngineering made the same point about claims. Check against the raw source with a literal match, because a summary is one more thing the model generated.
It has limits. The check passes any digit string found anywhere in the article, so a stray 7 gets through. It also ignores spelled-out numbers. Run on the five plain drafts afterward, it flagged all 15 posts at once.
How do you run it over a whole folder?
A shell loop covers every article in the folder.
for f in articles/*.md; do
claude -p "/social $f https://example.com/blog/$(basename "$f" .md)" \
--allowedTools "Read,Write,Bash(python3 check.py *)" \
--permission-prompts none --output-format json --max-budget-usd 0.90
done
The JSON output includes the cost. Plain runs cost $0.08 to $0.09 each in my test, and the ruled runs $0.12 to $0.13 for three posts. At those prices, ten articles come to about $1.25.

Two gotchas come from the headless docs. The --bare flag skips CLAUDE.md, skills, hooks and your subscription login, so a bare loop needs an API key and the voice file passed with --append-system-prompt-file. Without --bare, claude -p runs a folder's hooks even in a folder you've never trusted, so don't aim it at a repo you didn't write.
How often does ChatGPT mention your brand?
Most founders have no idea. The answer might surprise you.

What did the check step catch, and what did it miss?
The surprise was the check step, which ran in one of five ruled runs. In the other four, the model tried to write its file with a shell command, my permission rule didn't cover it, the call was denied, and it switched to the Write tool and stopped. It never ran the script. Its last message said so plainly, which I'll give it credit for.
So a skill step is a request, not a gate. The docs describe the enforced route, a Stop hook that exits with code 2 to send Claude back to work. The same page adds two guards, a flag that tells your script when Claude is already continuing and a cap of eight continuations in a row. I haven't tested any of it, and it's the next thing I'd try.
Scored offline afterward, the first drafts passed every check in all five ruled runs anyway. That's less impressive than it sounds, because I wrote the rules and the checker from one list. It shows concrete rules get followed. It doesn't show the checker catches much.
The X post from one guide, with rules, came to 240 characters. The plain version was 343 as a bulleted list.
One AI answer tells you very little. In a SparkToro study, the odds of getting the same list of brands twice were under 1 in 100. Track a fixed set of 25 to 50 questions weekly and read the rates, not single answers. https://rctrl.com/blog/ai-citation-tracking-guide
Who reads the drafts before anything posts?
You do. LinkedIn announced a "Seems like AI slop" button on July 30, and The Verge reported on August 21 that over a million people had clicked it. LinkedIn says users see 40% fewer views on what it classifies as AI slop.
A marketer in r/b2bmarketing listed the stock lines that give AI-written posts away, and the word "quietly" made the list.
Congrats on your super advanced Claude code skills that write all your content...
...but please don't make me wade through your AI slop with easy tells like: • "Let that sink in."• "XYZ 𝘲𝘶𝘪𝘦𝘵𝘭𝘺 did Y"• "Here's why that matters."• "Here's the part no one's talking about"• "It's not just X — it's Y." (𝘵𝘩𝘦 𝘤𝘰𝘯�...
Keep every draft in review. One commenter in r/marketingagency suggested starting each client on review, moving to automatic only after weeks without edits, and reading a post back once it's live, since an agent can report a post as sent that never appeared.
Do it yourself or hand it off?
You can build all of this yourself, and you'd own the rules. RankControl takes a different route. We write and publish each article, then turn it into ready-to-post drafts for LinkedIn, X, Pinterest, Instagram, Facebook, Threads, YouTube and TikTok. We never post on our own. You edit the drafts and send the ones worth sending to your scheduler.
From Claude Code you can connect our MCP server with claude mcp add --transport http rankcontrol https://api.rctrl.com/mcp and ask for drafts of a published article. Actions with a public face are a dry run until you confirm. Repurposing starts from articles published in your workspace, so for a folder of outside articles the setup above is the route. We offer one flat plan at $400 a month with a 7-day free trial.
15 hours a week manually. Or 15 minutes with RankControl.
Track citations, monitor competitors, and fix content gaps across every AI search engine. Automatically.










