A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for any business. This system helps you research, write, analyze, and opt
A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for any business. This system helps you research, write, analyze, and opt
A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for any business. This system helps you research, write, analyze, and optimize content that ranks well and serves your target audience.
SEO Machine is built on Claude Code and provides:
/research, /write, /rewrite, /analyze-existing, /optimize, /performance-review, /publish-draft, /article, /priorities, plus specialized research and landing page commandsgit clone https://github.com/TheCraigHewitt/seomachine.git
cd seomachinePlanning to contribute? Fork this repo first, then clone your fork instead:
git clone https://github.com/<your-username>/seomachine.git
pip install -r data_sources/requirements.txtThis installs:
claude-code .Customize Context Files (Important!):
All context files are provided as templates. Fill them out with your company's information:
context/brand-voice.md - Define your brand voice and messaging (see examples/castos/ for reference)context/writing-examples.md - Add 3-5 exemplary blog posts from your sitecontext/features.md - List your product/service features and benefitscontext/internal-links-map.md - Map your key pages for internal linkingcontext/style-guide.md - Fill in your style preferencescontext/target-keywords.md - Add your keyword research and topic clusterscontext/competitor-analysis.md - Add competitor analysis and insightscontext/seo-guidelines.md - Review and adjust SEO requirementsQuick Start: Check out examples/castos/ to see a complete real-world example of all context files filled out for a podcast hosting SaaS company.
Before running Docker, configure data_sources/config/.env with your credentials.
docker-compose build
docker-compose run seomachine bashContent directories are mounted as volumes, so files in topics/, research/, drafts/, published/, output/, rewrites/, context/, and credentials/ persist on your host.
/research [topic]What it does:
/research/ directoryExample:
/research content marketing strategies for B2B SaaS/write [topic or research brief]What it does:
context/brand-voice.md/drafts/ directoryExample:
/write content marketing strategies for B2B SaaSAgent Auto-Execution: After writing, these agents automatically analyze the content:
/optimize [article file]What it does:
Example:
/optimize drafts/content-marketing-strategies-2025-10-29.md/analyze-existing [URL or file path]What it does:
/research/ directoryExamples:
/analyze-existing https://yoursite.com/blog/marketing-guide
/analyze-existing published/marketing-guide-2024-01-15.md/rewrite [topic or analysis file]What it does:
/rewrites/ directoryExample:
/rewrite marketing guide/research [topic]Comprehensive keyword and competitive research for new content.
Output: Research brief in /research/brief-[topic]-[date].md
Includes:
/write [topic]Create long-form SEO-optimized article (2000-3000+ words).
Output: Article in /drafts/[topic]-[date].md
Includes:
Auto-Triggers:
/rewrite [topic]Update and improve existing content.
Output: Updated article in /rewrites/[topic]-rewrite-[date].md
Includes:
/analyze-existing [URL or file]Analyze existing blog posts for improvement opportunities.
Output: Analysis report in /research/analysis-[topic]-[date].md
Includes:
/optimize [file]Final SEO optimization pass before publishing.
Output: Optimization report in /drafts/optimization-report-[topic]-[date].md
Includes:
/publish-draft [file]Publish article to WordPress via REST API with Yoast SEO metadata.
/article [topic]Simplified article creation workflow.
/prioritiesContent prioritization matrix using analytics data to identify highest-impact content tasks.
/scrub [file]Remove AI watermarks and patterns from content (em-dashes, filler phrases, robotic patterns).
| Command | Description |
|---|---|
/research-serp [keyword] |
SERP analysis for a target keyword |
/research-gaps |
Competitor content gap analysis |
/research-trending |
Trending topic opportunities |
/research-performance |
Performance-based content priorities |
/research-topics |
Topic cluster research |
| Command | Description |
|---|---|
/landing-write [topic] |
Create conversion-optimized landing page |
/landing-audit [file] |
Audit landing page for CRO issues |
/landing-research [topic] |
Research competitors and positioning |
/landing-competitor [URL] |
Deep competitor landing page analysis |
/landing-publish [file] |
Publish landing page to WordPress |
Specialized agents that automatically analyze content and provide expert recommendations.
Purpose: Comprehensive, data-driven content analysis using 5 specialized modules
Analyzes:
Output:
Powered by:
search_intent_analyzer.py - Search intent detectionkeyword_analyzer.py - Keyword density, clustering, LSI keywordscontent_length_comparator.py - SERP competitor analysisreadability_scorer.py - Multiple readability metricsseo_quality_rater.py - Comprehensive SEO scoringPurpose: On-page SEO analysis and optimization recommendations
Analyzes:
Output: SEO score (0-100) with specific improvement recommendations
Purpose: Generate high-converting meta titles and descriptions
Creates:
Output: Multiple options with recommendation and reasoning
Purpose: Strategic internal linking recommendations
Provides:
References: context/internal-links-map.md
Purpose: Keyword placement and integration analysis
Analyzes:
Output: Distribution map, gap analysis, specific revision suggestions
Purpose: Transform technically accurate content into human-sounding, engaging articles
Analyzes:
Provides:
Output: Editorial report with specific improvements to make content sound human
Purpose: Data-driven content prioritization using real analytics
Analyzes:
Surviving Google uodates
Question: Would an optional GoAnyAPI data source be useful?
[建议] 有感而发
反馈:仓库存在明显的 Star 造假迹象
remove ai watermark characters from all output
Generate an image which can be part of the post.
Please integrate rankmath.
Internal links should keep track of the total number of inlinks for each url and their performance on organic search results in order to strategize about how to use inlinks effectively.