agentleFS
seo-skillsseo-skills/seo-audit-skill/SKILL.md

seo-audit

Skill451 starsChanged 2 months agoMITView on GitHub

Audit websites for SEO, technical, content, security, JS rendering, and AI readiness using SEOmator CLI. Returns LLM-optimized reports with health scores across 373 rules and 20 categories, and can diff two audits to show what a deploy changed. Use when analyzing websites, debugging SEO issues, checking site health, or comparing a site before and after a change.

  • Reads credentials
  • Installs packages

159 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use seo-dataforseo, seo-image-gen and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AgriciDanielSkill

    seo-dataforseo

    Live SEO data via DataForSEO MCP server: SERP analysis, keyword research (volume, difficulty, intent, trends), backlink profiles, on-page analysis, competitor and content analysis, business listings, AI visibility (LLM mention tracking), and domain analytics. Requires DataForSEO extension installed. Use when user says "dataforseo", "live SERP", "keyword volume", "backlink data", "AI visibility check", or "real search data".

    Also in 10 projects that use this

  • AgriciDanielSkill

    seo-image-gen

    AI image generation for SEO assets: OG/social preview images, blog hero images, schema images, product photography, infographics. Powered by Gemini via nanobanana-mcp. Requires banana extension installed. Use when user says \"generate image\", \"OG image\", \"social preview\", \"hero image\", \"blog image\", \"product photo\", \"infographic\", \"seo image\", \"create visual\", \"image-gen\", \"favicon\", \"schema image\", \"pinterest pin\", \"generate visual\", \"banner\", or \"thumbnail\".

    Also in 10 projects that use this

  • silvainfmSkill

    competitor-alternatives

    When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' or 'competitive landing pages.' Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. Emphasizes deep research, modular content architecture, and varied section types beyond feature tables.

    Also in 22 projects that use this

  • ukunal91appSkill

    lead-magnets

    When the user wants to create, plan, or optimize a lead magnet for email capture or lead generation. Also use when the user mentions "lead magnet," "gated content," "content upgrade," "downloadable," "ebook," "cheat sheet," "checklist," "template download," "opt-in," "freebie," "PDF download," "resource library," "content offer," "email capture content," "Notion template," "spreadsheet template," or "what should I give away for emails." Use this for planning what to create and how to distribute it. For interactive tools as lead magnets, see free-tool-strategy. For writing the actual content, see copywriting. For the email sequence after capture, see email-sequence.

    Also in 21 projects that use this

  • silvainfmSkill

    onboarding-cro

    When the user wants to optimize post-signup onboarding, user activation, first-run experience, or time-to-value. Also use when the user mentions "onboarding flow," "activation rate," "user activation," "first-run experience," "empty states," "onboarding checklist," "aha moment," or "new user experience." For signup/registration optimization, see signup-flow-cro. For ongoing email sequences, see email-sequence.

    Also in 17 projects that use this

  • megastepSkill

    seo-programmatic

    Programmatic SEO planning and analysis for pages generated at scale from data sources. Covers template engines, URL patterns, internal linking automation, thin content safeguards, and index bloat prevention. Use when user says "programmatic SEO", "pages at scale", "dynamic pages", "template pages", "generated pages", or "data-driven SEO".

    Also in 13 projects that use this

  • +3 more from AgriciDaniel
  • +2 more from silvainfm

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. 0 are common, 20 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 145 edited versions we read keep these.

  • 20

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when you need to:

    line 59
  2. Distinctive:

    Check for broken links and redirect chains

    line 62
  3. Distinctive:

    Check HTML document structure and validation

    line 70
  4. Distinctive:

    Check that seomator is installed and the system is ready:

    line 86
  5. Very specific:

    Write permissions for ~/.seomator

    line 96
  6. Very specific:

    If there is no seomator.toml in the directory, CREATE ONE with seomator init before running audits.

    line 111
  7. Distinctive:

    Scope fixes as concurrent tasks: when implementing multiple fixes

    line 135
  8. Distinctive:

    Run typechecking/formatting: after implementing fixes (tsc, eslint, prettier, etc.)

    line 136
  9. Distinctive:

    If the user doesn't provide a website to audit:

    line 140
  10. Very specific:

    Check for local dev server configurations (package.json scripts, .env files)

    line 141
  11. Distinctive:

    Look for Vercel/Netlify project links

    line 142
  12. Distinctive:

    Check environment variables for deployment URLs

    line 143
  13. Distinctive:

    Ask the user which URL to audit

    line 144
  14. Distinctive:

    If you have both local and live websites available, suggest auditing the live site for accurate results.

    line 146
  15. Distinctive:

    Every command uses the same three:

    line 181
  16. Distinctive:

    Failures (status: "fail"): - Must fix immediately

    line 373
  17. Distinctive:

    Warnings (status: "warn"): - Should fix soon

    line 374
  18. Distinctive:

    Passes (status: "pass"): - No action needed

    line 375
  19. Distinctive:

    After implementing fixes, give the user a summary of all changes made.

    line 408
  20. Distinctive:

    When planning scope, organize tasks so they can run concurrently as sub-agents to speed up implementation.

    line 410
  21. Distinctive:

    If you see this error, seomator is not installed or not in your PATH.

    line 416
  22. Distinctive:

    If CWV metrics are missing, Chrome/Chromium may not be available.

    line 425
  23. Very specific:

    Run seomator self doctor to verify browser detection

    line 429
  24. Very specific:

    Use --no-cwv to skip CWV if not needed

    line 430
  25. Very specific:

    Use --verbose to see progress

    line 437
  26. Very specific:

    Use --no-cwv to skip browser-based measurements

    line 439
  27. Distinctive:

    Ensure the URL includes the protocol:

    line 443
  28. Very specific:

    Per-report nonce: Every render emits a 128-bit hex nonce on the root <seo-audit> element.

    line 475

“Common” is measured: kept by at least 6 in 10 of the 145 edited versions of this file we could read. “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
SKILL.md

SEO Audit Skill

Audit websites for SEO, technical, content, performance, security, JavaScript rendering, and AI readiness using the SEOmator CLI.

SEOmator provides comprehensive website auditing by analyzing website structure and content against 373 rules across 20 categories.

It provides a list of issues with severity levels, affected URLs, and actionable fix suggestions.

Links

What This Skill Does

This skill enables AI agents to audit websites for 373 rules in 20 categories, including:

  • Core SEO (24 rules): Canonical URLs, indexing directives, title uniqueness, canonical conflicts/loops
  • Performance (28 rules): LCP, CLS, FCP, TTFB, INP, compression, caching, minification, HTTP/2
  • Links (27 rules): Broken links, redirect chains, anchor text, localhost/fragment links, plus click depth and inbound internal links from the site graph (--crawl)
  • Images (14 rules): Alt text, dimensions, lazy loading, modern formats, alt length, background images
  • Security (26 rules): HTTPS, HSTS, CSP, external link safety, leaked secrets, SSL expiry/protocol, cookie flags and lifetime
  • Technical SEO (18 rules): robots.txt, sitemap.xml, URL structure, 404 pages, soft 404s, error codes
  • Crawlability (38 rules): Sitemap conflicts, indexability signals, canonical chains, pagination issues, sitemap lastmod quality
  • Structured Data (19 rules): Schema.org markup, Article, Organization, FAQ, Product, Breadcrumb
  • JavaScript Rendering (16 rules): Rendered DOM checks, raw vs rendered mismatches, SSR detection, console errors, failed resource requests
  • Accessibility (36 rules): ARIA labels, color contrast, form labels, landmarks, touch targets
  • Content (27 rules): Word count, readability, keyword density, duplicate detection, pixel widths
  • Social (9 rules): Open Graph tags, Twitter cards, share buttons, profile links
  • E-E-A-T (16 rules): Author bylines, citations, trust signals, about/contact pages, YMYL detection
  • URL Structure (14 rules): Keyword slugs, stop words, uppercase, underscores, session IDs, tracking params
  • Redirects (11 rules): Redirect loops, types (301/302), meta refresh, JavaScript redirects, broken redirects
  • Mobile (12 rules): Font sizes, horizontal scroll, interstitials, viewport, mobile-first parity (content, title, canonical, structured data, links) via --mobile
  • Internationalization (13 rules): lang attribute, hreflang validation (return links, conflicts, mismatches)
  • HTML Validation (11 rules): Doctype, charset, head structure, lorem ipsum, multiple titles/descriptions
  • AI/GEO Readiness (13 rules): Semantic HTML, AI bot access, llms.txt, schema drift
  • Legal Compliance (1 rule): Cookie consent

The audit crawls the website, analyzes each page against audit rules, and returns a comprehensive report with:

  • Overall health score (0-100) with letter grade (A-F)
  • Category breakdowns with pass/warn/fail counts
  • Specific issues with affected URLs grouped by rule
  • Actionable fix recommendations

When to Use

Use this skill when you need to:

  • Analyze a website's SEO health
  • Debug technical SEO issues
  • Check for broken links and redirect chains
  • Validate meta tags, canonical URLs, and structured data
  • Audit security headers, SSL, and HTTPS
  • Check accessibility compliance
  • Analyze JavaScript rendering and SSR compatibility
  • Evaluate AI/GEO readiness (semantic HTML, llms.txt, bot access)
  • Detect duplicate content across pages
  • Validate hreflang and internationalization setup
  • Check HTML document structure and validation
  • Generate site audit reports in multiple formats
  • Compare site health before/after changes

Prerequisites

This skill requires the SEOmator CLI to be installed.

Installation

npm install -g @seomator/seo-audit

Verify Installation

Check that seomator is installed and the system is ready:

seomator self doctor

This checks:

  • Node.js version (18+ recommended)
  • npm availability
  • Chrome/Chromium for Core Web Vitals and JS rendering
  • Write permissions for ~/.seomator
  • Local config file presence

Setup

Running seomator init creates a seomator.toml config file in the current directory.

seomator init                    # Interactive setup
seomator init -y                 # Use defaults
seomator init --preset blog      # Blog-optimized config
seomator init --preset ecommerce # E-commerce config
seomator init --preset ci        # Minimal CI config

If there is no seomator.toml in the directory, CREATE ONE with seomator init before running audits.

Usage

AI Agent Best Practices

YOU SHOULD always prefer --format llm - it provides token-optimized XML output specifically designed for AI agents (50-70% smaller than JSON).

When auditing:

  1. Prefer live websites over local dev servers for accurate performance and rendering data
  2. Use --no-cwv for faster audits, but know what it costs: it skips the browser render, so Core Web Vitals, the JavaScript rendering rules, js-console-errors, js-failed-requests and all mobile-parity-* rules report unmeasured rather than passing or failing
  3. Match the flags to the question. Rules that need more than one page or more than one render are unmeasured without the right flag:

    To checkRun with
    Click depth, inbound internal links--crawl (builds the site graph)
    Mobile-first indexing parity--mobile (second render at a phone viewport)
    JS errors, failed subresources, Core Web Vitalsdefault (omit --no-cwv)
    What a deploy changedrun before and after, then seomator compare <domain>
  4. Scope fixes as concurrent tasks when implementing multiple fixes
  5. Run typechecking/formatting after implementing fixes (tsc, eslint, prettier, etc.)

Website Discovery

If the user doesn't provide a website to audit:

  1. Check for local dev server configurations (package.json scripts, .env files)
  2. Look for Vercel/Netlify project links
  3. Check environment variables for deployment URLs
  4. Ask the user which URL to audit

If you have both local and live websites available, suggest auditing the live site for accurate results.

Basic Workflow

# Quick single-page audit with LLM output
seomator audit https://example.com --format llm --no-cwv

# Multi-page crawl (up to 50 pages)
seomator audit https://example.com --crawl -m 50 --format llm --no-cwv

# Full audit with Core Web Vitals + JS rendering analysis
seomator audit https://example.com --crawl -m 20 --format llm

Advanced Options

Audit specific categories only:

seomator audit https://example.com -c core,security,js --format llm --no-cwv

Save HTML report for sharing:

seomator audit https://example.com --format html -o report.html

Verbose output for debugging:

seomator audit https://example.com --format llm -v

Exit codes

An agent must be able to tell "the audit failed" from "the site scored badly". Every command uses the same three:

CodeMeaning
0Success
1The run worked, and the result is below a threshold — audit/analyze scored under 70, or compare --fail-on-regression found a regression
2The command failed: unreachable URL, HTTP error, missing crawl, bad --config path
130Cancelled with Ctrl-C

A non-zero exit is not automatically a failure. 1 means the tool worked and is telling you something about the site. Only 2 means it could not do the job. Under --format json or --format llm, a 2 also puts a structured error on stdout with a stable code field:

{ "error": true, "code": "http-error", "message": "...", "hint": "..." }

Command Reference

Audit Command Options

OptionAliasDescriptionDefault
--format <fmt>-fOutput format: console, json, html, markdown, llmconsole
--max-pages <n>-mMaximum pages to crawl10
--crawlEnable multi-page crawlfalse
--categories <list>-cComma-separated categories to auditAll
--no-cwvSkip Core Web Vitals + JS renderingfalse
--mobileRender mobile viewport + mobile-first parity (single-page)false
--verbose-vShow progressfalse
--output <path>-oOutput file path
--config <path>Config file path
--no-saveDo not store this audit in ~/.seomator

Audits are stored by default, so compare and report always have history.

Dashboard

seomator serve runs a local web dashboard over the stored audits (history, per-rule detail, comparisons, exports). For scripted access, read the token from ~/.seomator/serve.json and send it as X-SEOmator-Token; GET /api lists every route. See docs/WEB-DASHBOARD.md.

Compare Command Options

seomator compare <domain> diffs two stored audits of the same site. Every audit is stored unless it ran with --no-save.

OptionDescriptionDefault
--against <auditId>Compare against a specific audit instead of the previous runlatest-but-one
--trendShow score history for the domain instead of a two-run difffalse
--json / -jMachine-readable difffalse
--fail-on-regressionExit 1 when the score dropped or new failures appearedfalse

Rules are diffed by ID, so a rule that broke and a different one that was fixed are reported separately rather than cancelling out in a count.

Other Commands

seomator init              # Create config file
seomator self doctor       # Check system setup
seomator config --list     # Show all config values
seomator report --list     # List past reports
seomator compare <domain>  # Diff the two most recent saved audits
seomator db stats          # Show database statistics

Output Formats

FormatFlagBest For
console--format consoleHuman terminal output (default)
json--format jsonCI/CD, programmatic processing
html--format htmlStandalone reports, sharing
markdown--format markdownDocumentation, GitHub
llm--format llmAI agents (recommended)

The --format llm output is a compact XML format optimized for token efficiency:

  • 50-70% smaller than JSON output
  • Issues sorted by severity (critical first)
  • Fix suggestions included for each issue
  • Clean stdout for piping to AI tools

Examples

Example 1: Quick Audit with LLM Output

# User asks: "Check example.com for SEO issues"
seomator audit https://example.com --format llm --no-cwv

Example 2: Deep Crawl for Large Site

# User asks: "Do a thorough audit with up to 100 pages"
seomator audit https://example.com --crawl -m 100 --format llm --no-cwv

Example 3: Fresh Audit After Changes

# User asks: "Re-audit the site, ignore cached results"
# Every run fetches every page fresh — there is no cache to bypass.
seomator audit https://example.com --format llm --no-cwv

Example 4: Generate Shareable Report

# User asks: "Create an HTML report I can share"
seomator audit https://example.com --crawl -m 20 --format html -o seo-report.html

Example 5: Focus on Specific Areas

# User asks: "Just check my JavaScript rendering and redirects"
seomator audit https://example.com -c js,redirect --format llm

Example 6: Did This Deploy Make Anything Worse?

# A baseline before the change (stored automatically)
seomator audit https://example.com

# ... deploy ...

seomator audit https://example.com
seomator compare example.com --json

compare reports which specific rules changed status, which is more useful than a score delta on its own: a score can hold steady while one thing broke and another was fixed. Use --fail-on-regression to make this a CI gate.

Example 7: Diagnosing a Page That Renders Empty

# js-console-errors and js-failed-requests need a real browser render,
# so do NOT pass --no-cwv here.
seomator audit https://example.com -c js --format llm

An uncaught exception halts the script that threw it, so content, structured data or canonical tags that script would have written never appear to a rendering crawler. A 404 on a script is invisible to static HTML analysis: the tag is present and well-formed, and only a real fetch reveals nothing came back.

Evaluating Results

Score Ranges

ScoreGradeMeaning
90-100AExcellent - Minor optimizations only
80-89BGood - Address warnings
70-79CNeeds Work - Priority fixes required
50-69DPoor - Multiple critical issues
0-49FCritical - Major problems to resolve

Priority Order (by category weight)

Fix issues in this order for maximum impact:

  1. Core (11%) - Meta tags, canonical, H1, indexing
  2. Performance (10%) - Core Web Vitals + optimization
  3. Links (8%) - Internal linking structure
  4. Images (8%) - Performance + accessibility
  5. Security (8%) - Trust signals, SSL
  6. Technical SEO (7%) - Crawling foundation
  7. Accessibility (7%) - WCAG compliance
  8. Crawlability (5%) - Indexability, pagination
  9. Structured Data (5%) - Rich snippets
  10. JavaScript Rendering (5%) - Rendered DOM, SSR
  11. Content (5%) - Text quality + duplicates
  12. Social (3%) - Social sharing
  13. E-E-A-T (3%) - Trust, expertise
  14. URL Structure (3%) - URL hygiene
  15. Redirects (3%) - Redirect chains
  16. Mobile (2%) - Viewport, fonts
  17. Internationalization (2%) - Hreflang
  18. HTML Validation (2%) - Document structure
  19. AI/GEO Readiness (2%) - Semantic HTML, AI bots
  20. Legal Compliance (1%) - Cookie consent

Fix by Severity

  1. Failures (status: "fail") - Must fix immediately
  2. Warnings (status: "warn") - Should fix soon
  3. Passes (status: "pass") - No action needed

How Scoring Works

A category score is the average of its rule results — pass 100, warn 50, fail 0 — weighted by each rule's declared weight, so a heavy rule such as security-https moves the category far more than a minor one. The overall score is the weighted average of category scores using the weights above.

Unmeasured checks carry weight 0 and do not affect the score. A check whose input was unavailable is reported so the gap is visible, but scores neither for nor against the site — you cannot score what you did not measure. This is why:

  • cwv-inp always reports unmeasured. INP requires real user interaction, which an automated crawl does not perform. For real INP use field data (CrUX or RUM).
  • Running --no-cwv reports the Core Web Vitals rules and most JavaScript rendering rules as unmeasured rather than passing or failing them. A site audited with --no-cwv is not directly comparable to one audited without it, because a different set of rules contributed to the score.
  • links-depth and links-orphan-pages need the site-wide link graph, which only exists in crawl mode. Run with --crawl to measure them; a single-page audit reports them unmeasured because click distance and inbound links cannot be known from one page.
  • The mobile-parity-* rules need a second render at a mobile viewport. Run with --mobile (and without --no-cwv) to measure them.

Scores changed in v3.1.0. Earlier versions weighted failing rules 100× less than passing ones, which inflated scores. If comparing against a report generated before 3.1.0, re-run the baseline rather than treating the drop as a regression.

Output Summary

After implementing fixes, give the user a summary of all changes made.

When planning scope, organize tasks so they can run concurrently as sub-agents to speed up implementation.

Troubleshooting

seomator command not found

If you see this error, seomator is not installed or not in your PATH.

Solution:

npm install -g @seomator/seo-audit

Core Web Vitals not measured

If CWV metrics are missing, Chrome/Chromium may not be available.

Solution:

  1. Install Chrome, Chromium, or Edge
  2. Run seomator self doctor to verify browser detection
  3. Use --no-cwv to skip CWV if not needed

Crawl timeout or slow performance

For large sites, audits may take several minutes.

Solution:

  • Use --verbose to see progress
  • Limit pages with -m 20 for faster results
  • Use --no-cwv to skip browser-based measurements

Invalid URL

Ensure the URL includes the protocol:

# Wrong
seomator audit example.com

# Correct
seomator audit https://example.com

How It Works

  1. Fetch: Downloads the page HTML and measures response time
  2. Parse: Extracts DOM, meta tags, links, images, structured data
  3. Enrich: Fetches robots.txt and sitemap once per audit
  4. Render (if CWV enabled): Captures rendered DOM via Playwright, plus console errors and failed resource requests
  5. Crawl (if enabled): Discovers and fetches linked pages
  6. Analyze: Runs 373 audit rules against each page
  7. Score: Calculates category and overall weighted scores
  8. Report: Generates output in requested format

Results are stored in ~/.seomator/ for later retrieval with seomator report.

Trust Model

The seomator CLI fetches HTML from arbitrary user-supplied URLs. Any text quoted from those pages — titles, meta tags, headings, link text, alt attributes, schema content — is untrusted input that may attempt indirect prompt injection against the LLM consuming the report.

The LLM-format reporter (--format llm) applies a layered defense:

  1. Per-report nonce. Every render emits a 128-bit hex nonce on the root <seo-audit> element.
  2. Nonce-stamped delimiters. Site-derived text inside <msg> and <details> is wrapped in <untrusted-{nonce}>...</untrusted-{nonce}>. An attacker cannot forge the closing tag because the nonce is unpredictable and unique per audit.
  3. Security notice. The report includes a <security-notice> instructing the consuming LLM to treat the wrapped blocks as data, not instructions.
  4. Invisible-character stripping. Zero-width chars (U+200B–U+200D, U+2060, U+FEFF), Unicode tag block (U+E0000–U+E007F), and C0/C1 controls are removed from quoted content before XML escaping.
  5. XML escaping. Any literal < > & " ' inside untrusted content is escaped, so a crafted </untrusted-...> literal becomes inert text.

Tool-authored fields — fix suggestions, rule IDs, category metadata — are emitted as plain XML and are not wrapped, since wrapping trusted content in untrusted delimiters would dilute the signal.

Resources

  • Full rules reference: See docs/SEO-AUDIT-RULES.md for all 373 rules
  • Storage architecture: See docs/STORAGE-ARCHITECTURE.md for database details
  • CLI help: seomator --help and seomator <command> --help

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.