A Claude Code Skill that collects viral posts from X/Twitter, XHS (Xiaohongshu), and WeChat Official Accounts (GZH), distills top content by engagement scoring, synthesizes original posts via Claude, and learns from human edits to improve over time.
Collect → Distill → Synthesize → Review → Learn → Promote
| Phase | What it does |
|---|---|
| Collect | Gather viral posts from X (bird CLI), XHS, GZH |
| Distill | Dedup + engagement scoring → top 30 sources |
| Synthesize | Claude generates platform-specific content |
| Review | Human edits, scores, and comments on drafts |
| Learn | Extract patterns from edits → update style rules |
| Promote | High-performing articles feed back as examples |
# Clone into your Claude Code skills directory
git clone https://github.com/SamCuipogobongo/content-forge-skill.git ~/.claude/skills/content-forgeOr download the .skill package from Releases.
- Node.js >= 18
- bird CLI — for X/Twitter search (only if using X platform)
- Python 3 — for XHS/GZH scrapers (only if using those platforms)
- Claude CLI —
claudecommand in PATH
# Generate content for a keyword (X only)
node scripts/content-forge-pipeline.js --keyword "AI agents" --platforms x
# All 3 platforms
node scripts/content-forge-pipeline.js --keyword "AI agents" --platforms x,xhs,gzh
# Learn from yesterday's human edits
node scripts/content-forge-pipeline.js --learn
# Check recent runs
node scripts/content-forge-pipeline.js --status| Env Variable | Default | Description |
|---|---|---|
BIRD_BIN |
bird |
bird CLI path |
PYTHON_BIN |
python3 |
Python interpreter |
CLAUDE_BIN |
claude |
Claude CLI binary |
MIN_FOLLOWERS |
1000 |
Min followers for X source filtering |
CONTENT_FORGE_DATA_DIR |
./content-forge-data |
Pipeline data directory |
SOCIAL_MEDIA_DIR |
./Social Media |
Platform article copies |
- Run the pipeline → generates
.mdfiles with draft content - Human edits the drafts inline (original vs edited sections)
- Run
--learn→ Claude analyzes edit patterns - Style rules auto-update in
references/style-rules-{platform}.md - Next run uses improved rules → better content
MIT