SEO Machine Documentation

repository·main·Indexed 27 days ago

https://github.com/thecraighewitt/seomachine

A specialized Claude Code workspace designed to automate the creation of long-form, SEO-optimized blog content. It integrates research, writing, and optimization workflows using specialized agents and data source modules for Google Analytics 4, Google Search Console, and DataForSEO. The system includes commands for keyword research, content generation, existing content analysis, and landing page optimization, supported by a configurable context system for brand voice and SEO guidelines.

Tokens
28.7K
Snippets
33
Records
156
Agent score
87%

What's inside SEO Machine

  1. Integrate Analytics Data Sources

    main

    SEO Machine integrates with the following data sources to inform strategy:

    • Google Analytics 4 (GA4): Provides traffic, engagement, conversion, and trend analysis.
    • Google Search Console (GSC): Provides keyword rankings, impressions, clicks, and CTR analysis.
    • DataForSEO: Provides competitive rankings, SERP features, and keyword metrics.
  2. Quickstart: Create SEO content

    main

    Follow these steps to start creating content with SEO Machine:

    1. Configure your context files (use the provided templates as a guide).
    2. Run /research [your topic] to generate a brief.
    3. Review the generated brief.
    4. Run /write [your topic] to generate the content.
    5. Publish your content.
  3. Quickstart monetization with Castos

    main

    For the easiest setup with no minimum download requirements, zero transaction fees, and immediate monetization of your entire catalog (including old episodes), use Castos:

    1. Sign up for a Castos hosting account (includes a 14-day free trial).
    2. Enable Castos Ads with one click.
    3. Utilize dynamic ad insertion to manage your revenue.
  4. Workflow: Performing a quick content audit

    main

    To prioritize updates across your site, analyze multiple posts sequentially and review their content health scores to identify which ones have the lowest scores or highest traffic potential.

    /analyze-existing https://yoursite.com/blog/post-1
    /analyze-existing https://yoursite.com/blog/post-2
    /analyze-existing https://yoursite.com/blog/post-3
  5. Configure writing-examples.md for brand voice

    main

    The writing-examples.md file is used to provide Claude with exemplary blog posts that demonstrate your brand voice, style, and quality standards. This context allows the AI to replicate your specific writing tone and structure when generating new content.

    To set this up, add 3-5 complete blog post examples. Each example should ideally be at least 1,500+ words to provide sufficient stylistic data.

    ## Example 1: [ARTICLE TITLE]
    
    **URL**: [https://yoursite.com/article-url/]
    **Primary Keyword**: [target keyword phrase]
    **Word Count**: [~X,XXX words]
    **Publication Date**: [Month Day, Year]
    
    **What Makes It Great**:
    - [Reason 1]
    - [Reason 2]
    - [Reason 3]
    
    **Full Content**:

    [PASTE YOUR COMPLETE ARTICLE TEXT HERE]

  6. Configure API credentials for Google Analytics 4 and Search Console

    main

    Follow these steps to set up Google Cloud credentials:

    Google Analytics 4 (GA4)

    1. Enable the Google Analytics Data API in the Google Cloud Console.
    2. Create service account credentials and download the JSON key file.
    3. Save the file as data_sources/config/ga4_credentials.json.
    4. Add the service account email to your GA4 property with View access.

    Google Search Console

    1. Enable the Search Console API in the same Google Cloud project.
    2. Use the same service account or create OAuth 2.0 credentials.
    3. Save the credentials as data_sources/config/gsc_credentials.json.
    4. Add the service account to your Search Console property with Owner or Full access.
  7. Setup WordPress Integration

    main

    To enable direct publishing to WordPress via the REST API:

    1. Install MU-Plugin: Copy wordpress/seo-machine-yoast-rest.php to your WordPress site's wp-content/mu-plugins/ directory to expose Yoast SEO fields.
    2. Application Password: In WordPress admin, go to Users > Profile, enter a name under Application Passwords, and click Add New Application Password. Copy the generated password.
    3. Configure: Add the following to your .env file:
      • WP_URL: Your site URL.
      • WP_USERNAME: Your WordPress admin username.
      • WP_APP_PASSWORD: The generated application password.
    WP_URL=https://yoursite.com
    WP_USERNAME=your_admin_username
    WP_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx
  8. Perform Competitor Analysis for Content Strategy

    main

    Use the Competitor Analysis template to track key competitors and analyze their content strategies. This process helps identify content gaps, SEO opportunities, and differentiation points for your brand.

    Analysis Workflow

    1. Primary Competitor Profiling For each main competitor, document:

    • Company Overview: Website, primary offering, target audience, pricing, and market position.
    • Content Strategy: Blog URL, publishing frequency, content types, and average article length.
    • Top Performing Content: Identify their highest traffic/ranking articles, including keywords and why they work.
    • SEO Assessment: Note their strengths (e.g., domain authority), weaknesses (e.g., thin content), and specific content gaps you can exploit.
    • Differentiation: Define how you can stand out against them.

    2. Secondary Competitor/Publisher Tracking Track content publishers that compete for visibility even if they aren't direct product competitors. Note their focus, why they matter, and how to compete with their content approach.

    3. Competitive Keyword Analysis Identify keywords where competitors dominate but you do not rank in the top 10. For each keyword, track:

    • Difficulty and Volume
    • Who ranks (positions 1-3)
    • Their content type and why they rank
    • Your strategy to compete (e.g., new content, optimization)

    4. Content Pattern & Quality Benchmarking

    • Patterns: Identify common topics, emerging topics, and unique topics covered by competitors.
    • Quality: Benchmark word counts, content depth (guides vs. tips), visual content usage (graphics, video), and update frequency.
    • Authority: Compare Domain Rating (DR) and analyze their backlink/link-building strategies.

    5. SERP & UX Analysis

    • SERP Features: Monitor who holds Featured Snippets and 'People Also Ask' (PAA) answers.
    • UX: Evaluate their use of Table of Contents, jump links, formatting, and CTAs.

    6. Opportunity Mapping Categorize topics into a matrix:

    • High Opportunity: Low competition, high value.
    • Medium Opportunity: Moderate competition, good value.
    • Long-term Play: High competition, high value.

    Maintenance Schedule

    • Weekly: Monitor top 3 competitors for new content.
    • Monthly: Check ranking changes for key terms.
    • Quarterly: Full competitive audit and strategy review.
    • Annually: Comprehensive competitor landscape assessment.
  9. Apply Castos capitalization and number rules

    main

    Capitalization

    • Product Names: 'Castos' is always capitalized.
    • Industry Terms: Use 'RSS' (always caps).

    Numbers

    • Spell out: One through nine.
    • Use numerals: 10 and above.
    • Exceptions (Always use numerals):
      • Percentages (e.g., 5%, 50%)
      • Money (e.g., $5, $500)
      • Measurements (e.g., 5 GB, 50 MB)
      • Lists/stats for scannability
    • Large Numbers: Use commas for 1,000+; spell out 'million' or 'billion' (e.g., 1 million).
  10. Manage the Keyword Opportunity Pipeline

    main

    Prioritize content creation by categorizing keywords into a pipeline:

    • High Priority (Create Soon): Keywords with high volume, achievable difficulty, and strong business value. Include the strategic reason and specific action (e.g., "Create pillar content").
    • Medium Priority (Next Quarter): Keywords to target within the next 3 months.
    • Low Priority (Future Consideration): Keywords for long-term planning.
  11. Technical Best Practices for Podcast Ads

    main

    Maintain professional standards for ad delivery using these technical guidelines:

    • Audio Quality: Ensure ads match the audio quality of your main content. Maintain consistent audio levels, remove background noise, and match the tone/energy of the show.
    • Ad Markers: If using dynamic ad insertion, place "ad marker" indicators at specific timestamps during production to tell the hosting platform where to insert ads.
    • Ad Zone Configuration:
      • Pre-roll zone: First 5-10% of the episode.
      • Mid-roll zones: 40-60% (for the first mid-roll) and 75-85% (for a second mid-roll).
      • Post-roll zone: Final 90-95% of the episode.