How I Automate 3 Blogs, 24 APIs, and 50+ Tasks with Claude Code CLI
I run a one-person digital business from Paraguay:
- 3 WordPress blogs (460+ articles)
- 24 APIs on RapidAPI (Cloudflare Workers)
- 39 digital products on Gumroad
- 12 VS Code extensions
- 11 Chrome extensions
- 5 Apify Actors
All of this runs on Claude Code CLI + Task Scheduler. Here's exactly how.
The Stack
- Claude Code CLI — AI agent that reads/writes files, runs scripts, and executes multi-step workflows
- Python 3.13 — All automation scripts
- WordPress REST API — Article publishing
- Cloudflare Workers — API hosting ($0/month)
- Task Scheduler (Windows) — 52 scheduled tasks running daily
- Healthchecks.io — Monitoring with Discord alerts
What Gets Automated
1. Keyword Research → Article Generation → WordPress Publishing
The full content pipeline:
- Keyword research: Claude analyzes Google Search Console data, identifies low-competition keywords, and generates a prioritized queue.
- Article generation: For each keyword, Claude writes a 3,000-5,000 word SEO-optimized article with proper H2/H3 structure, internal links, and affiliate placements.
- WordPress publishing: A Python script posts to WordPress via REST API, sets categories, tags, featured images, and Yoast/Rank Math SEO fields.
This runs daily. Each cycle produces 3-5 articles per site.
2. Internal Link Optimization
A script crawls all published articles, identifies linking opportunities based on keyword overlap, and inserts contextual internal links. Last run: 741 internal links added across 3 sites in one session.
3. SEO Monitoring & Fixes
Daily automated checks:
- Title tag and meta description optimization
- noindex/canonical issues
- Broken link detection
- Google Indexing API submission for new articles
4. API Development & Deployment
Claude generates Cloudflare Worker code, tests it locally, deploys via Wrangler, and updates RapidAPI listings — all from a single prompt.
5. Social Media Automation
X (Twitter) auto-posting with a 61-tweet rotating queue. Mix: 80% value content, 20% promotion. Posted every 60 minutes via Task Scheduler.
The Prompt System
The key to reliable automation is structured prompts. Not vague instructions — specific, repeatable prompt templates.
Examples from the playbook:
SEO Article Generator Prompt:
Research the keyword "{keyword}" and write a 3,000-5,000 word article.
Requirements:
- H2 every 300 words
- Include FAQ section with 5+ questions
- Add internal links to: {related_articles}
- Insert affiliate CTA after the 3rd H2
- Write in first-person with real experience
WordPress Bulk Updater Prompt:
For all articles in {category}:
1. Check if meta description exists
2. If missing, generate one (155 chars max)
3. Update via REST API
4. Log results to CSV
Results After 3 Months
| Metric | Before | After |
|---|---|---|
| Articles published/week | 2-3 (manual) | 15-20 (automated) |
| Internal links per article | 1-2 | 5-8 |
| Time spent on content | 20 hrs/week | 2 hrs/week (review only) |
| API development time | 2 days/API | 2 hours/API |
| Scheduled tasks | 5 | 52 |
The Playbook
I packaged everything into a guide:
Claude Code Automation Playbook — 10 chapters + 22 copy-paste prompt templates:
- Setting up Claude Code CLI
- Content pipeline automation
- WordPress REST API integration
- SEO monitoring & optimization
- API development workflow
- Social media automation
- Analytics & reporting
- Multi-site management
- Error handling & monitoring
- Scaling strategies
Each chapter includes real code examples and prompts you can copy directly.
Who This Is For
- Indie hackers running multiple projects solo
- Content creators who want to scale output without hiring
- Developers building and selling APIs
- Digital product sellers managing listings across platforms
If you're spending more than 5 hours/week on repetitive business tasks, automation pays for itself in the first week.
Top comments (0)