agentleFS
TheCraigHewittTheCraigHewitt/seomachine/CLAUDE.md

seomachine

CLAUDE.md7.5k starsChanged 9 months agoMITView on GitHub

SEO Machine is an open-source Claude Code workspace for creating SEO-optimized blog content. It combines custom commands, specialized agents, and Python-based analytics to research, write, optimize, and publish articles for any business. API credentials are configured in data_sources/config/.env (GA4, GSC, DataForSEO, WordPress). GA4 service account credentials go in credentials/ga4-credentials.json. All commands are defined in .claude/commands/ and invoked as slash commands: Commands (.claude/commands/) orchestrate workflows. Agents (.claude/agents/) are specialized roles invoked by commands. After /write, these agents auto-run: SEO Optimizer, Meta…

  • Reads credentials
  • Installs packages

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 5 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the TheCraigHewitt/seomachine repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about TheCraigHewitt/seomachine

The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 9

Talked about on GitHub and Bluesky (9 times).

On GitHub · 5

On Bluesky · 4

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All commands are defined in .claude/commands/ and invoked as slash commands:

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

SEO Machine is an open-source Claude Code workspace for creating SEO-optimized blog content. It combines custom commands, specialized agents, and Python-based analytics to research, write, optimize, and publish articles for any business.

Setup

pip install -r data_sources/requirements.txt

API credentials are configured in data_sources/config/.env (GA4, GSC, DataForSEO, WordPress). GA4 service account credentials go in credentials/ga4-credentials.json.

Commands

All commands are defined in .claude/commands/ and invoked as slash commands:

  • /research [topic] - Keyword/competitor research, generates brief in research/
  • /write [topic] - Create full article in drafts/, auto-triggers optimization agents
  • /rewrite [topic] - Update existing content, saves to rewrites/
  • /optimize [file] - Final SEO polish pass
  • /analyze-existing [URL or file] - Content health audit
  • /performance-review - Analytics-driven content priorities
  • /publish-draft [file] - Publish to WordPress via REST API
  • /article [topic] - Simplified article creation
  • /cluster [topic] - Build complete topic cluster strategy with pillar + supporting articles + linking map
  • /priorities - Content prioritization matrix
  • /research-serp, /research-gaps, /research-trending, /research-performance, /research-topics - Specialized research commands
  • /research-ai-citations [topic] - AI citation audit: generates prompts, clusters them, audits which sources AI cites
  • /repurpose [file] - Adapts article for LinkedIn, Medium, Reddit, Quora distribution
  • /landing-write, /landing-audit, /landing-research, /landing-publish, /landing-competitor - Landing page commands

Architecture

Command-Agent Model

Commands (.claude/commands/) orchestrate workflows. Agents (.claude/agents/) are specialized roles invoked by commands. After /write, these agents auto-run: SEO Optimizer, Meta Creator, Internal Linker, Keyword Mapper.

Key agents: content-analyzer.md, seo-optimizer.md, meta-creator.md, internal-linker.md, keyword-mapper.md, editor.md, headline-generator.md, cro-analyst.md, performance.md, cluster-strategist.md.

Python Analysis Pipeline

Located in data_sources/modules/. The Content Analyzer chains:

  1. search_intent_analyzer.py - Query intent classification
  2. keyword_analyzer.py - Density, distribution, stuffing detection
  3. content_length_comparator.py - Benchmarks against top 10 SERP results
  4. readability_scorer.py - Flesch Reading Ease, grade level
  5. seo_quality_rater.py - Comprehensive 0-100 SEO score

Data Integrations

  • google_analytics.py - GA4 traffic/engagement data
  • google_search_console.py - Rankings and impressions
  • dataforseo.py - SERP positions, keyword metrics
  • data_aggregator.py - Combines all sources into unified analytics
  • wordpress_publisher.py - Publishes to WordPress with Yoast SEO metadata

Opportunity Scoring

opportunity_scorer.py uses 8 weighted factors: Volume (25%), Position (20%), Intent (20%), Competition (15%), Cluster (10%), CTR (5%), Freshness (5%), Trend (5%).

Running Python Scripts

# Research & analysis scripts (run from repo root)
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
python3 seo_baseline_analysis.py
python3 seo_bofu_rankings.py
python3 seo_competitor_analysis.py

# Test API connectivity
python3 test_dataforseo.py

Content Pipeline

topics/ (ideas) → research/ (briefs) → drafts/ (articles) → review-required/ (pending review) → published/ (final)

Rewrites go to rewrites/. Landing pages go to landing-pages/. Audits go to audits/. Repurposed content goes to repurposed/.

Context Files

context/ contains brand guidelines that inform all content generation:

  • brand-voice.md - Tone, messaging pillars
  • style-guide.md - Grammar, formatting standards
  • seo-guidelines.md - Keyword and structure rules
  • internal-links-map.md - Key pages for internal linking
  • features.md - Product features
  • competitor-analysis.md - Competitive intelligence
  • cro-best-practices.md - Conversion optimization guidelines
  • ai-citation-targets.md - Directories/platforms where your brand should be cited by AI tools
  • reddit-strategy.md - Reddit engagement strategy for AI SEO and community visibility

WordPress Integration

Publishing uses the WordPress REST API with a custom MU-plugin (wordpress/seo-machine-yoast-rest.php) that exposes Yoast SEO fields. Articles are published in WordPress block format (HTML comments in Markdown files).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.