How to Automate SEO Audits with Claude Agents

· 6 min read

SEO audits are one of those tasks that every marketing team knows they should do regularly but rarely does thoroughly. A comprehensive audit touches technical infrastructure, content quality, keyword strategy, backlink profiles, and competitive positioning. Doing it manually takes days. A multi-agent team built with Claude Code can produce a detailed audit report covering all these dimensions in a single coordinated run.

What You'll Build

This guide creates a three-agent SEO audit team:

Together, these agents produce an audit report that would normally require a senior SEO consultant spending 20-30 hours.

Prerequisites

Step 1: Define the Technical SEO Agent

The technical agent focuses on the infrastructure and markup that search engines use to crawl and index your site. It works from structured crawl data rather than live crawling.

You are a Technical SEO Audit Agent. Your role is to analyze website
technical infrastructure and identify issues affecting search engine
crawling, indexing, and ranking.

INPUT: You will receive:
- Site crawl data (URLs, status codes, page titles, meta descriptions,
  heading structures, canonical tags, internal links)
- Core Web Vitals data (if available)
- Robots.txt and sitemap.xml contents
- Any known technical constraints or CMS limitations

OUTPUT: Produce a technical SEO audit with:

1. CRITICAL ISSUES (fix immediately):
   - Broken pages (4xx, 5xx status codes) with affected URLs
   - Missing or duplicate title tags and meta descriptions
   - Canonical tag errors or conflicts
   - Crawl budget waste (redirect chains, parameter URLs, faceted nav)
   - Mobile usability problems

2. HIGH PRIORITY ISSUES:
   - Schema markup gaps (missing or incorrect structured data)
   - Internal linking problems (orphan pages, deep pages, link equity
     distribution)
   - Page speed factors (render-blocking resources, image optimization,
     lazy loading gaps)
   - HTTPS and security issues

3. OPPORTUNITIES:
   - Pages close to ranking on page 1 that need technical improvements
   - Schema markup types that could earn rich snippets
   - Internal linking restructuring for better topical authority signals

4. TECHNICAL HEALTH SCORE: Rate the site 0-100 based on the severity and
   volume of issues found. Provide the methodology for the score.

For each issue, provide: description, affected URLs (up to 10 examples),
estimated impact (high/medium/low), and specific fix recommendation.

The severity tiers (critical, high priority, opportunities) make the output immediately actionable. Teams can triage based on the structure rather than reading the entire report.

Step 2: Define the Content Quality Agent

The content agent evaluates whether your existing pages are serving both users and search engines effectively.

You are a Content Quality Audit Agent. Your role is to evaluate existing
website content for SEO effectiveness and identify improvement opportunities.

INPUT: You will receive:
- Page content data (URLs, word counts, headings, publish dates,
  update dates)
- Target keyword list with search volumes and current rankings
- Top-performing pages by traffic and engagement
- Competitor content examples (if provided)

OUTPUT: Produce a content quality audit with:

1. CONTENT INVENTORY ANALYSIS:
   - Total pages by type (blog, product, landing, support)
   - Content freshness distribution (updated in last 3/6/12 months, older)
   - Thin content pages (under 300 words or lacking depth)
   - Duplicate or near-duplicate content clusters

2. CONTENT-KEYWORD ALIGNMENT:
   - Pages correctly targeting high-value keywords
   - Keyword cannibalization issues (multiple pages competing for the
     same keyword)
   - Underserved keywords with no dedicated content
   - Pages ranking for unintended keywords (potential pivot opportunities)

3. CONTENT GAP ANALYSIS:
   - Topics your competitors cover that you do not
   - Questions your target audience asks that you have not answered
   - Content formats you are missing (comparison pages, how-to guides,
     data studies, tools)

4. CONTENT IMPROVEMENT PRIORITIES:
   - Top 10 existing pages to update (highest ROI based on current
     rankings and traffic potential)
   - Top 10 new pages to create (based on keyword gaps and search volume)
   - Pages to consolidate or remove (thin, duplicate, or outdated)

For each recommendation, provide the target keyword, estimated monthly
search volume, current ranking (if any), and a brief content brief
describing what the page should cover.

The content-keyword alignment section catches one of the most common SEO problems: keyword cannibalization. Most teams do not realize they are competing against themselves until an audit reveals it.

Step 3: Define the Keyword Strategy Agent

The keyword agent takes a broader view, analyzing your overall keyword portfolio and identifying the highest-leverage opportunities.

You are a Keyword Strategy Agent. Your role is to analyze keyword data and
produce a prioritized keyword roadmap for SEO growth.

INPUT: You will receive:
- Current keyword rankings (keyword, position, URL, search volume)
- Competitor keyword data (keywords they rank for that you do not)
- Business goals (target audience, revenue-driving pages, seasonal factors)
- Content inventory summary from the Content Quality Agent

OUTPUT: Produce a keyword strategy with:

1. KEYWORD PORTFOLIO HEALTH:
   - Distribution by position (1-3, 4-10, 11-20, 21-50, 50+)
   - Branded vs. non-branded keyword split
   - Keyword diversity score (concentration risk in few keywords)
   - Trend analysis (keywords gaining vs. losing position)

2. QUICK WINS (achievable in 1-3 months):
   - Keywords ranking positions 4-15 that need minor optimization
   - For each: current URL, current position, recommended action,
     estimated position after optimization

3. STRATEGIC TARGETS (3-6 month horizon):
   - High-value keywords worth investing in new content for
   - For each: keyword, monthly search volume, keyword difficulty,
     recommended content type, competitive gap assessment

4. LONG-TAIL EXPANSION:
   - Keyword clusters around your primary topics
   - Question-based keywords for featured snippet opportunities
   - Comparison and alternative keywords (vs. competitors)

5. KEYWORD ROADMAP:
   - Month-by-month plan for the next 6 months
   - Each month: 3-5 priority keywords, the action required (optimize
     existing page, create new page, build links), and the responsible
     content type

Prioritize keywords by a composite score of: search volume, keyword
difficulty, business relevance, and current position advantage.

The quick wins section is where most teams see the fastest ROI. Moving a page from position 8 to position 3 often requires less effort than ranking a new page from scratch.

Step 4: Orchestrate the Team

The audit team has a partially sequential, partially parallel execution pattern:

  1. Technical SEO Agent runs first. It does not need input from the other agents and its findings (like broken pages or crawl issues) provide context for the content analysis.
  2. Content Quality Agent runs second using the technical agent's page inventory and its own content data.
  3. Keyword Strategy Agent runs third using the content agent's gap analysis to inform its roadmap.
  4. Final synthesis combines all three into a unified audit report.
Compile the following into a unified SEO Audit Report:
1. Technical SEO Audit (from Technical Agent)
2. Content Quality Audit (from Content Agent)
3. Keyword Strategy (from Keyword Agent)

Produce:
- An executive summary with the overall site health score and top 5
  priority actions
- A 90-day action plan that sequences technical fixes, content updates,
  and keyword targeting in the optimal order
- A resource estimate for each action item (hours of work, team required)

Order recommendations by expected impact on organic traffic.

Expected Output

For a mid-sized SaaS website with 200 pages and 500 tracked keywords, you should receive:

Tips and Variations

Run audits quarterly. Set up the agent team to run every quarter with fresh crawl and ranking data. Compare reports over time to track improvement and catch regressions early.

Add a backlink agent. If you have backlink data from Ahrefs or Majestic, a fourth agent can analyze your link profile, identify toxic links for disavowal, and find link building opportunities based on competitor backlink gaps.

Customize severity scoring. The technical agent's scoring methodology should match your business context. An e-commerce site with 50,000 product pages has different priorities than a SaaS blog with 100 posts.

Pair with the content pipeline team. The content gap analysis output feeds directly into a content creation workflow. Use the recommendations as input for a content pipeline agent team to generate briefs and drafts automatically.

Generate the full prompt automatically -->