TheCraigHewitt / seomachine
- пятница, 6 марта 2026 г. в 00:00:02
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.
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/[your-username]/seomachine.git
cd seomachinepip 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.
/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 SaaS
Agent 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
Comprehensive keyword and competitive research for new content.
Output: Research brief in /research/brief-[topic]-[date].md
Includes:
Create long-form SEO-optimized article (2000-3000+ words).
Output: Article in /drafts/[topic]-[date].md
Includes:
Auto-Triggers:
Update and improve existing content.
Output: Updated article in /rewrites/[topic]-rewrite-[date].md
Includes:
Analyze existing blog posts for improvement opportunities.
Output: Analysis report in /research/analysis-[topic]-[date].md
Includes:
Final SEO optimization pass before publishing.
Output: Optimization report in /drafts/optimization-report-[topic]-[date].md
Includes:
Publish article to WordPress via REST API with Yoast SEO metadata.
Simplified article creation workflow.
Content prioritization matrix using analytics data to identify highest-impact content tasks.
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:
Provides:
Output: Comprehensive performance report with actionable priorities
Purpose: Generate high-converting headline variations and A/B testing recommendations
Provides:
Purpose: Conversion rate optimization analysis for landing pages
Analyzes:
Purpose: Comprehensive landing page optimization recommendations
Provides:
SEO Machine includes 26 marketing skills accessible as slash commands:
| Category | Skills |
|---|---|
| Copywriting | /copywriting, /copy-editing |
| CRO | /page-cro, /form-cro, /signup-flow-cro, /onboarding-cro, /popup-cro, /paywall-upgrade-cro |
| Strategy | /content-strategy, /pricing-strategy, /launch-strategy, /marketing-ideas |
| Channels | /email-sequence, /social-content, /paid-ads |
| SEO | /seo-audit, /schema-markup, /programmatic-seo, /competitor-alternatives |
| Analytics | /analytics-tracking, /ab-test-setup |
| Other | /referral-program, /free-tool-strategy, /marketing-psychology |
SEO Machine integrates with real-time data sources to inform content strategy:
Google Analytics 4:
Google Search Console:
DataForSEO:
SEO Machine includes 5 specialized Python modules for comprehensive content analysis:
Search Intent Analyzer (search_intent_analyzer.py):
Keyword Analyzer (keyword_analyzer.py):
SEO Quality Rater (seo_quality_rater.py):
Content Length Comparator (content_length_comparator.py):
Readability Scorer (readability_scorer.py):
All modules can be used directly in Python or through the Content Analyzer agent.
Six Python modules for landing page conversion optimization:
above_fold_analyzer.py - Above-the-fold content analysis (headline, value prop, CTA, trust)cta_analyzer.py - CTA effectiveness scoring (quality, distribution, goal alignment)trust_signal_analyzer.py - Trust signal detection (testimonials, social proof, risk reversals)landing_page_scorer.py - Overall landing page scoring (0-100 with category breakdowns)landing_performance.py - Landing page performance tracking via GA4/GSCcro_checker.py - CRO best practices checklist validationopportunity_scorer.py - 8-factor opportunity scoring for content prioritizationcontent_scorer.py - 5-dimension content quality scoring (humanity, specificity, structure, SEO, readability)engagement_analyzer.py - Content engagement pattern analysiscompetitor_gap_analyzer.py - Competitive content gap identificationarticle_planner.py - Data-driven article planningsection_writer.py - Section-level content guidancesocial_research_aggregator.py - Social media research aggregationRun from repo root:
# Content research
python3 research_quick_wins.py
python3 research_competitor_gaps.py
python3 research_performance_matrix.py
python3 research_priorities_comprehensive.py
python3 research_serp_analysis.py
python3 research_topic_clusters.py
python3 research_trending.py
# SEO analysis (config-driven - set up config/competitors.json first)
python3 seo_baseline_analysis.py
python3 seo_bofu_rankings.py
python3 seo_competitor_analysis.py
# Test API connectivity
python3 test_dataforseo.pyNote: SEO analysis scripts load competitor lists and keywords from config/competitors.json. Copy config/competitors.example.json and customize for your business.
Publishing uses the WordPress REST API with a custom MU-plugin that exposes Yoast SEO fields.
Setup:
wordpress/seo-machine-yoast-rest.php as an MU-plugin on your WordPress sitewordpress/functions-snippet.php to your theme's functions.php.env:
WP_URL=https://yoursite.com
WP_USERNAME=your_username
WP_APP_PASSWORD=your_application_password
See wordpress/README.md for detailed setup instructions.
See data_sources/README.md for analytics setup instructions.
seomachine/
├── .claude/
│ ├── commands/ # Custom workflow commands
│ │ ├── analyze-existing.md
│ │ ├── research.md
│ │ ├── write.md
│ │ ├── rewrite.md
│ │ ├── optimize.md
│ │ ├── scrub.md
│ │ ├── performance-review.md
│ │ ├── publish-draft.md
│ │ ├── article.md
│ │ ├── priorities.md
│ │ ├── research-serp.md
│ │ ├── research-gaps.md
│ │ ├── research-trending.md
│ │ ├── research-performance.md
│ │ ├── research-topics.md
│ │ ├── landing-write.md
│ │ ├── landing-audit.md
│ │ ├── landing-research.md
│ │ ├── landing-competitor.md
│ │ └── landing-publish.md
│ ├── agents/ # Specialized analysis agents
│ │ ├── content-analyzer.md
│ │ ├── seo-optimizer.md
│ │ ├── meta-creator.md
│ │ ├── internal-linker.md
│ │ ├── keyword-mapper.md
│ │ ├── editor.md
│ │ ├── performance.md
│ │ ├── headline-generator.md
│ │ ├── cro-analyst.md
│ │ └── landing-page-optimizer.md
│ └── skills/ # 26 marketing skills
├── data_sources/ # Analytics integrations
│ ├── modules/ # Python analysis modules
│ │ ├── google_analytics.py
│ │ ├── google_search_console.py
│ │ ├── dataforseo.py
│ │ ├── data_aggregator.py
│ │ ├── search_intent_analyzer.py
│ │ ├── keyword_analyzer.py
│ │ ├── seo_quality_rater.py
│ │ ├── content_length_comparator.py
│ │ ├── readability_scorer.py
│ │ ├── opportunity_scorer.py
│ │ ├── content_scorer.py
│ │ ├── engagement_analyzer.py
│ │ ├── social_research_aggregator.py
│ │ ├── competitor_gap_analyzer.py
│ │ ├── article_planner.py
│ │ ├── section_writer.py
│ │ ├── wordpress_publisher.py
│ │ ├── above_fold_analyzer.py
│ │ ├── cro_checker.py
│ │ ├── cta_analyzer.py
│ │ ├── landing_page_scorer.py
│ │ ├── landing_performance.py
│ │ └── trust_signal_analyzer.py
│ ├── config/ # API credentials (not in git)
│ ├── utils/ # Helper functions
│ ├── cache/ # Cached API responses
│ └── README.md # Setup instructions
├── config/ # Configuration files
│ └── competitors.example.json # Competitor config template
├── context/ # Configuration and guidelines
│ ├── brand-voice.md
│ ├── writing-examples.md
│ ├── style-guide.md
│ ├── seo-guidelines.md
│ ├── target-keywords.md
│ ├── internal-links-map.md
│ ├── competitor-analysis.md
│ └── cro-best-practices.md
├── wordpress/ # WordPress integration
│ ├── seo-machine-yoast-rest.php
│ ├── functions-snippet.php
│ └── README.md
├── topics/ # Raw topic ideas
├── research/ # Research briefs and analysis reports
├── drafts/ # Work in progress articles
├── review-required/ # Articles pending review
├── published/ # Final versions ready to publish
├── rewrites/ # Updated existing content
├── landing-pages/ # Landing page content
├── audits/ # Audit reports
└── README.md # This file
The quality of your content depends on well-configured context files:
Defines your brand voice, tone, and messaging framework.
Must include:
Purpose: Ensures all content sounds like your brand
Contains 3-5 exemplary blog posts from your site.
Must include:
Purpose: Teaches AI your specific writing style through examples
Editorial and formatting standards.
Must include:
Purpose: Maintains consistency across all content
SEO best practices and requirements.
Includes:
Purpose: Ensures all content meets SEO standards
Keyword research organized by topic cluster.
Must include:
Purpose: Guides keyword targeting for new content
Catalog of key pages from your site for internal linking.
Must include:
Purpose: Enables strategic internal linking in every article
Competitive intelligence and content gaps.
Must include:
Purpose: Informs content strategy and competitive positioning
Every article must meet these requirements:
/research before /writebrand-voice.md and relevant writing-examples.mdtarget-keywords.mdinternal-links-map.md for linking opportunities/optimize for final polish/analyze-existing to understand scope# Step 1: Add topic idea
# Create file in topics/ directory with initial thoughts
# Step 2: Research the topic
/research content marketing strategies
# Step 3: Review research brief
# Read research/brief-content-marketing-strategies-[date].md
# Step 4: Write article
/write content marketing strategies
# Step 5: Review agent feedback
# Read all agent reports in drafts/
# Step 6: Make improvements
# Edit article based on agent recommendations
# Step 7: Final optimization
/optimize drafts/content-marketing-strategies-[date].md
# Step 8: Publish to WordPress (optional)
/publish-draft drafts/content-marketing-strategies-[date].md
# Step 1: Analyze existing post
/analyze-existing https://yoursite.com/blog/product-comparison
# Step 2: Review analysis
# Read research/analysis-product-comparison-2025-10-29.md
# Check content health score and priority level
# Step 3: Rewrite content
/rewrite product comparison
# Step 4: Review changes
# Read rewrites/product-comparison-rewrite-2025-10-29.md
# Review change summary
# Step 5: Optimize
/optimize rewrites/product-comparison-rewrite-2025-10-29.md
# Step 6: Publish
# Move to published/ when ready
# Analyze multiple existing posts to prioritize updates
/analyze-existing https://yoursite.com/blog/post-1
/analyze-existing https://yoursite.com/blog/post-2
/analyze-existing https://yoursite.com/blog/post-3
# Review content health scores
# Prioritize rewrites based on:
# - Lowest scores
# - Highest traffic potential
# - Strategic importance
writing-examples.md before each writing session/write command/topics/target-keywords.md with new keyword opportunitiesinternal-links-map.mdwriting-examples.md if better examples emergeinternal-links-map.mdcompetitor-analysis.mdtarget-keywords.mdcontext/brand-voice.md with more specific guidancecontext/writing-examples.md/write commandseo-guidelines.md target density (1-2%)/optimize to get specific keyword placement suggestionscontext/internal-links-map.md with current pagescompetitor-analysis.md with differentiation opportunitiesbrand-voice.md and features.md/research command[Add your license information]
Built with Claude Code by Anthropic.
Originally developed for Castos, now available as an open-source tool for any business to streamline long-form SEO content creation.
See It In Action: Check out examples/castos/ for a complete real-world example of how a podcast hosting SaaS company uses SEO Machine.
Contributions Welcome: Found a bug? Have a feature request? Want to share your own industry example? Contributions and PRs are welcome!
Ready to start creating?
/research [your topic]/write [your topic]Happy writing! 📝