ivankuznetsov

agent-seo

0
0
# Install this skill:
npx skills add ivankuznetsov/claude-seo

Or install specific skill: npx add-skill https://github.com/ivankuznetsov/claude-seo

# Description

This skill provides a complete SEO content workflow for creating, analyzing, and optimizing long-form blog content. Use when the user wants to research topics, write SEO-optimized articles, humanize AI content, fact-check claims, or analyze content performance. Triggers on /seo:research, /seo:write, /seo:humanize, /seo:fact-check, /seo:optimize, /seo:rewrite, /seo:analyze-existing, /seo:scrub, /seo:data, or /seo:performance-review commands.

# SKILL.md


name: agent-seo
description: This skill provides a complete SEO content workflow for creating, analyzing, and optimizing long-form blog content. Use when the user wants to research topics, write SEO-optimized articles, humanize AI content, fact-check claims, or analyze content performance. Triggers on /seo:research, /seo:write, /seo:humanize, /seo:fact-check, /seo:optimize, /seo:rewrite, /seo:analyze-existing, /seo:scrub, /seo:data, or /seo:performance-review commands.


Agent SEO

A comprehensive SEO content workflow for creating, analyzing, and optimizing long-form blog content with web search integration, AI humanization, and Ruby-based analysis tools.

Quick Start

To install dependencies:

cd data_sources/ruby && bundle install

Commands

/seo:research [topic]

Conduct keyword research and competitive analysis with web search.

Process:
1. Search the topic for current landscape, statistics, and trends
2. Analyze search intent using LLM (Haiku model)
3. Research competitor content ranking for target keywords
4. Identify content gaps and opportunities
5. Save research brief to research/ directory

/seo:write [topic]

Create SEO-optimized long-form articles (2000-3000+ words).

Process:
1. Review research brief if available from /seo:research
2. Load context files (brand voice, style guide, SEO guidelines)
3. Web search for statistics, examples, and authoritative sources
4. Write structured content with proper keyword placement
5. Run analysis agents (keyword, readability, SEO quality)
6. Apply AI humanization to remove telltale patterns
7. Save to drafts/ directory

/seo:humanize [file]

Remove AI writing patterns for natural-sounding content.

Detects and removes:
- Inflated language ("pivotal", "testament", "crucial")
- AI vocabulary ("Additionally", "landscape", "delve", "multifaceted")
- Em-dash overuse
- Copula avoidance ("serves as" instead of "is")
- Sycophantic tone and chatbot artifacts
- Filler phrases and excessive hedging

/seo:fact-check [file]

Verify claims and statistics using web search.

Process:
1. Extract factual claims and statistics from content
2. Web search to verify each claim
3. Evaluate source credibility
4. Generate correction suggestions with citations
5. Save fact-check report to drafts/

/seo:optimize [file]

Final SEO optimization before publishing.

/seo:rewrite [topic]

Update and improve existing content.

/seo:analyze-existing [URL or file]

Analyze content for improvement opportunities.

/seo:scrub [file]

Remove AI watermarks (invisible Unicode characters, zero-width spaces).

/seo:data [type]

Fetch live performance data from configured sources (GA4, GSC, DataForSEO).

Types: priority, opportunities, quick-wins, declining, page [url]

/seo:performance-review [file or URL]

Comprehensive content performance analysis.

Ruby Analysis Tools

CLI tools available in data_sources/ruby/bin/:

# Keyword analysis
seo-keywords --file article.md --keyword "podcast tips" --json

# Readability scoring
seo-readability --file article.md --json

# SEO quality rating (0-100)
seo-quality --file article.md --keyword "podcast tips" --json

# Search intent analysis
seo-intent --keyword "how to start a podcast"

# Content scrubbing (remove AI watermarks)
seo-scrub --file article.md --output cleaned.md

Or via Ruby:

require_relative 'data_sources/ruby/lib/agent_seo'

# Keyword analysis
analyzer = AgentSeo::KeywordAnalyzer.new
result = analyzer.analyze(content, 'primary keyword')

# Readability scoring
scorer = AgentSeo::ReadabilityScorer.new
result = scorer.score(content)

# SEO quality rating
rater = AgentSeo::SeoQualityRater.new
result = rater.rate(content: content, primary_keyword: 'keyword')

# Content scrubbing
scrubber = AgentSeo::ContentScrubber.new
cleaned, stats = scrubber.scrub(content)

Context Files

Customize templates in context/ directory:

File Purpose
brand-voice.md Brand voice and messaging guidelines
writing-examples.md 3-5 exemplary blog posts for style reference
style-guide.md Editorial standards and formatting rules
seo-guidelines.md SEO requirements and best practices
target-keywords.md Keyword clusters and priorities
internal-links-map.md Key pages for internal linking

Data Source Configuration

Google Analytics 4

export GA4_PROPERTY_ID="your-property-id"
export GA4_CREDENTIALS_PATH="path/to/credentials.json"

Google Search Console

export GSC_SITE_URL="https://yoursite.com"
export GSC_CREDENTIALS_PATH="path/to/credentials.json"

DataForSEO

export DATAFORSEO_LOGIN="your-login"
export DATAFORSEO_PASSWORD="your-password"

Content Quality Standards

SEO Requirements

  • Primary keyword density: 1-2%
  • Keyword placement: H1, first 100 words, 2-3 H2s
  • Internal links: 3-5 with descriptive anchor text
  • External links: 2-3 authoritative sources
  • Meta title: 50-60 characters
  • Meta description: 150-160 characters

Readability Targets

  • Reading level: 8th-10th grade
  • Sentence length: 15-20 words average
  • Paragraphs: 2-4 sentences
  • Subheadings: Every 300-400 words

Humanization Checklist

  • No AI vocabulary ("Additionally", "landscape", "delve")
  • No excessive em-dashes
  • Natural sentence variation
  • Specific examples over generic statements
  • First-person perspective where appropriate

Typical Workflow

Creating New Content

/seo:research podcast monetization     # Research with web search
/seo:write podcast monetization        # Write with analysis
/seo:humanize drafts/podcast-*.md      # Remove AI patterns
/seo:fact-check drafts/podcast-*.md    # Verify claims
/seo:optimize drafts/podcast-*.md      # Final optimization

Updating Existing Content

/seo:analyze-existing https://site.com/old-article
/seo:rewrite old article topic
/seo:humanize rewrites/old-article-rewrite.md
/seo:fact-check rewrites/old-article-rewrite.md

# README.md

Agent SEO

A Claude Code skill for creating, analyzing, and optimizing SEO content. Features web search integration, AI humanization, fact-checking, and comprehensive Ruby-based analysis tools.

Installation

One-Liner

git clone https://github.com/ivankuznetsov/claude-seo.git && cd claude-seo && ./install.sh && claude .

Step by Step

# 1. Clone the repository
git clone https://github.com/ivankuznetsov/claude-seo.git
cd claude-seo

# 2. Run installer (installs Ruby gems, creates directories)
./install.sh

# 3. Open in Claude Code
claude .

Requirements

Commands

Command Description
/seo:research [topic] Keyword research with web search
/seo:write [topic] Write SEO-optimized article (2000-3000+ words)
/seo:humanize [file] Remove AI writing patterns
/seo:fact-check [file] Verify claims using web search
/seo:optimize [file] Final SEO optimization
/seo:rewrite [topic] Update existing content
/seo:analyze-existing [URL] Analyze content for improvements
/seo:scrub [file] Remove AI watermarks
/seo:data [type] Fetch GA4/GSC/DataForSEO data
/seo:performance-review Content performance analysis

Features

Web Search Integration

  • Real-time data for research and writing
  • Automatic fact verification
  • Current statistics and trends
  • Authoritative source discovery

AI Humanization

Removes 24 AI writing patterns based on Wikipedia's AI Cleanup guidelines:
- Inflated language ("pivotal", "testament", "crucial")
- AI vocabulary ("Additionally", "landscape", "delve")
- Em-dash overuse
- Copula avoidance
- Sycophantic tone

Ruby Analysis Tools

# Keyword analysis
seo-keywords --file article.md --keyword "podcast tips" --json

# Readability scoring
seo-readability --file article.md --json

# SEO quality rating (0-100)
seo-quality --file article.md --keyword "podcast tips" --json

# Search intent analysis
seo-intent --keyword "how to start a podcast"

# Content scrubbing
seo-scrub --file article.md --output cleaned.md

Configuration

Context Files

Customize templates in context/ for your brand:

File Purpose
brand-voice.md Brand voice and messaging
writing-examples.md Style reference articles
style-guide.md Editorial standards
seo-guidelines.md SEO requirements
target-keywords.md Keyword priorities
internal-links-map.md Internal linking targets

Data Sources (Optional)

# Google Analytics 4
export GA4_PROPERTY_ID="your-property-id"
export GA4_CREDENTIALS_PATH="path/to/credentials.json"

# Google Search Console
export GSC_SITE_URL="https://yoursite.com"
export GSC_CREDENTIALS_PATH="path/to/credentials.json"

# DataForSEO
export DATAFORSEO_LOGIN="your-login"
export DATAFORSEO_PASSWORD="your-password"

# Ahrefs (via MCP server)
export AHREFS_API_KEY="your-api-key"

Ideal Article Writing Workflow

The complete workflow for creating publish-ready SEO content:

Step 1: Research

/seo:research [topic]
  • Searches the web for current statistics, trends, and market data
  • Analyzes search intent (informational, transactional, commercial)
  • Identifies competitor content and gaps
  • Saves research brief to research/brief-[topic]-[date].md

Output: Research brief with keywords, intent analysis, content outline, and sources

Step 2: Write

/seo:write [topic]
  • Loads research brief and context files (brand voice, style guide)
  • Searches web for additional statistics and examples
  • Writes 2,500+ word article with proper keyword placement
  • Runs keyword, readability, and SEO quality analysis
  • Saves to drafts/[topic]-[date].md

Output: Full article with meta elements, SEO checklist, and analysis scores

Step 3: Humanize

/seo:humanize drafts/[article].md
  • Removes 24 AI writing patterns (inflated language, AI vocabulary, em-dashes)
  • Adds natural voice and conversational tone
  • Preserves technical accuracy and SEO optimization
  • Overwrites file with humanized version

Output: Natural-sounding content that passes AI detection

Step 4: Fact-Check

/seo:fact-check drafts/[article].md
  • Extracts all statistics, dates, and factual claims
  • Verifies each claim with web search
  • Flags incorrect or outdated information
  • Applies corrections automatically
  • Saves report to drafts/fact-check-[topic]-[date].md

Output: Verified article with corrected facts and source citations

Step 5: Optimize (Optional)

/seo:optimize drafts/[article].md
  • Final SEO polish and keyword optimization
  • Internal linking suggestions
  • Meta element refinement
  • Move to published/ when ready

Quick Reference

# Full workflow - new content
/seo:research cloud storage
/seo:write cloud storage
/seo:humanize drafts/cloud-storage-*.md
/seo:fact-check drafts/cloud-storage-*.md

# Update existing content
/seo:analyze-existing https://site.com/old-article
/seo:rewrite old article topic
/seo:humanize rewrites/[article].md
/seo:fact-check rewrites/[article].md

What Each Step Produces

Step Input Output Time
Research Topic Research brief with keywords, intent, outline 2-3 min
Write Topic + brief 2,500+ word article with meta elements 3-5 min
Humanize Draft article Natural-sounding content 1-2 min
Fact-check Article Verified content + correction report 2-3 min
Optimize Article Publish-ready content 1-2 min

Total time: ~10-15 minutes for a complete, fact-checked, SEO-optimized article

Quality Standards

SEO

  • Keyword density: 1-2%
  • Keyword in: H1, first 100 words, 2-3 H2s
  • Internal links: 3-5
  • External links: 2-3 authoritative sources
  • Meta title: 50-60 chars
  • Meta description: 150-160 chars

Readability

  • Reading level: 8th-10th grade
  • Sentence length: 15-20 words
  • Paragraphs: 2-4 sentences
  • Subheadings: every 300-400 words

Directory Structure

agent-seo/
β”œβ”€β”€ SKILL.md                 # Skill definition
β”œβ”€β”€ install.sh               # Installation script
β”œβ”€β”€ .claude/
β”‚   β”œβ”€β”€ commands/            # Namespaced slash commands (seo:*)
β”‚   └── agents/              # Analysis agents
β”œβ”€β”€ data_sources/
β”‚   └── ruby/
β”‚       β”œβ”€β”€ lib/agent_seo/   # Ruby modules (keyword analyzer, readability, etc.)
β”‚       β”œβ”€β”€ bin/             # CLI tools (seo-keywords, seo-quality, etc.)
β”‚       └── test/            # Minitest test suite
β”œβ”€β”€ context/                 # Brand configuration
β”œβ”€β”€ drafts/                  # Work in progress
β”œβ”€β”€ published/               # Final content
β”œβ”€β”€ rewrites/                # Updated content
└── research/                # Research briefs

Running Tests

cd data_sources/ruby
bundle exec ruby -Ilib:test test/*_test.rb

License

MIT License


Built with Claude Code

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.