Skill423 estrellas del repoactualizado 6d ago
seo-audit
This Claude Code skill audits websites against 251 rules across 20 categories including SEO, performance, security, JavaScript rendering, and AI readiness using the SEOmator CLI. Use it to analyze site health, identify technical issues, debug SEO problems, and receive severity-ranked findings with actionable fix suggestions for each affected URL.
Instalar en Claude Code
Copiargit clone --depth 1 https://github.com/seo-skills/seo-audit-skill /tmp/seo-audit && cp -r /tmp/seo-audit/skill ~/.claude/skills/seo-auditDespués abre una sesión nueva de Claude Code; el skill carga automáticamente.
Definición
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 **287 rules** across **20 categories**. It provides a list of issues with severity levels, affected URLs, and actionable fix suggestions. ## Links * SEOmator npm package: [npmjs.com/package/@seomator/seo-audit](https://www.npmjs.com/package/@seomator/seo-audit) * GitHub repository: [github.com/seo-skills/seo-audit-skill](https://github.com/seo-skills/seo-audit-skill) * Web UI: [seomator.com/free-seo-audit-tool](https://seomator.com/free-seo-audit-tool) ## What This Skill Does This skill enables AI agents to audit websites for **287 rules** in **20 categories**, including: - **Core SEO** (19 rules): Canonical URLs, indexing directives, title uniqueness, canonical conflicts/loops - **Performance** (22 rules): LCP, CLS, FCP, TTFB, INP, compression, caching, minification, HTTP/2 - **Links** (19 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** (18 rules): HTTPS, HSTS, CSP, external link safety, leaked secrets, SSL expiry/protocol, cookie flags and lifetime - **Technical SEO** (13 rules): robots.txt, sitemap.xml, URL structure, 404 pages, soft 404s, error codes - **Crawlability** (19 rules): Sitemap conflicts, indexability signals, canonical chains, pagination issues, sitemap lastmod quality - **Structured Data** (13 rules): Schema.org markup, Article, Organization, FAQ, Product, Breadcrumb - **JavaScript Rendering** (15 rules): Rendered DOM checks, raw vs rendered mismatches, SSR detection, console errors, failed resource requests - **Accessibility** (12 rules): ARIA labels, color contrast, form labels, landmarks, touch targets - **Content** (17 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** (14 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** (8 rules): Redirect loops, types (301/302), meta refresh, JavaScript redirects, broken redirects - **Mobile** (10 rules): Font sizes, horizontal scroll, interstitials, viewport, mobile-first parity (content, title, canonical, structured data, links) via `--mobile` - **Internationalization** (10 rules): lang attribute, hreflang validation (return links, conflicts, mismatches) - **HTML Validation** (9 rules): Doctype, charset, head structure, lorem ipsum, multiple titles/descriptions - **AI/GEO Readiness** (5 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 ```bash npm install -g @seomator/seo-audit ``` ### Verify Installation Check that seomator is installed and the system is ready: ```bash 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. ```bash 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 check | Run 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 Vitals | default (omit `--no-cwv`) | | What a deploy changed | `--save`