Seo rank

From wpgaurav/WordPress-skills · View interactive version

Seo rank is an AI agent skill from the GitHub repository wpgaurav/WordPress-skills. Comprehensive 2026 SEO audit and optimization. Use when user runs `/seo-rank`, asks to "audit SEO", "check SEO", "optimize for Google", "fix technical SEO", "improve rankings", "check Core Web Vitals", "audit site structure", "fix crawlability", or needs SEO analysis for any web page or site. Comple

How to use this skill

Skill file

SEO Rank Optimizer (2026 Standards)

Audit and optimize web content for traditional search engines (Google, Bing) covering content quality, technical performance, architecture, crawlability, and off-page signals.

Companion skill: Use /ai-rank for LLM answer engine and AI agent optimization. Use both together for complete search visibility across traditional and AI-powered search.

Two Frameworks

SEARCH Framework (Content SEO)

Everything about the content itself — what humans and crawlers read.

TECH Framework (Technical SEO)

Everything about the infrastructure — how crawlers access, parse, and index.


SEARCH Framework (Content SEO)

S - Search Intent Alignment

E - E-E-A-T Signals

A - Audience-Centered Quality

R - Relevance & Keywords

C - CTR Optimization

H - Heading Hierarchy & Structure


TECH Framework (Technical SEO)

T - Time to Interactive (Core Web Vitals)

The three metrics Google uses as ranking signals (measured at 75th percentile):

Business impact: Sites passing all three CWV thresholds see 24% lower bounce rates. Pages loading under 2s have 9% bounce rate; over 5s reaches 38%.

Audit commands:

# Full Lighthouse performance audit
npx lighthouse <url> --output=json --only-categories=performance --chrome-flags="--headless"

# Quick CWV via PageSpeed Insights API (no install)
curl -s "https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=<encoded-url>&strategy=mobile"

E - Efficient Crawling

Audit commands:

# Fetch robots.txt
curl -s <domain>/robots.txt

# Fetch sitemap
curl -s <domain>/sitemap.xml | head -100

# Check redirect chain
curl -sIL <url> | grep -E 'HTTP/|Location:'

# Check canonical
curl -s <url> | grep -i 'rel="canonical"'

# Check for noindex
curl -s <url> | grep -i 'noindex'
curl -sI <url> | grep -i 'x-robots-tag'

C - Code & Rendering

H - HTTPS & Security

HTTPS is table stakes. Security headers provide indirect SEO benefit through performance, trust, and reduced bounce from browser warnings.

| Header | Recommended Value |

|--------|-------------------|

| Strict-Transport-Security | max-age=31536000; includeSubDomains |

| Content-Security-Policy | Restrict to known sources |

| X-Frame-Options | DENY or SAMEORIGIN |

| X-Content-Type-Options | nosniff |

| Referrer-Policy | strict-origin-when-cross-origin |

| Permissions-Policy | Restrict unnecessary APIs |

Audit command:

# Check all security headers
curl -sI <url> | grep -iE 'strict-transport|content-security|x-frame|x-content-type|referrer-policy|permissions-policy'

N - Navigation & Architecture

I - International & Localization

Audit command:

# Check hreflang tags
curl -s <url> | grep -i 'hreflang'

C - Compliance & Accessibility (SEO Overlap)

WCAG-compliant sites gain 23% more organic traffic and rank for 27% more keywords (2026 studies). Key overlaps with SEO:

Audit command:

# Lighthouse accessibility audit
npx lighthouse <url> --output=json --only-categories=accessibility --chrome-flags="--headless"

A - AI & Structured Data

JSON-LD schema on every page. Match schema type to page type:

| Page Type | Schema Types |

|-----------|-------------|

| Homepage | Organization, WebSite (with SearchAction) |

| Blog post | Article, BreadcrumbList |

| Product page | Product (with Offer), BreadcrumbList |

| FAQ page | FAQPage, BreadcrumbList |

| How-to guide | HowTo, BreadcrumbList |

| Author page | Person |

| Local business | LocalBusiness (with geo) |

Validation: Google Rich Results Test or npx structured-data-testing-tool <url>

For AI/SGE readiness: Run /ai-rank for LLM answer engine optimization, discovery files (llms.txt, agents.txt), and AI crawler access configuration. Do not duplicate that work here.

Audit command:

# Extract JSON-LD from page
curl -s <url> | grep -oP '<script type="application/ld\+json">.*?</script>' | sed 's/<[^>]*>//g'

L - Local SEO (If Applicable)

Skip this section for purely online businesses with no physical presence.


Scoring Matrices

Page-Level SEO Score

| Category | Weight | Criteria | Score 0-5 |

|----------|--------|----------|-----------|

| Search Intent | 15% | Intent match, format match, SERP feature alignment | |

| E-E-A-T | 15% | Author signals, citations, trust, experience evidence | |

| Content Quality | 15% | Originality, depth, readability, multimedia | |

| Keywords & Relevance | 10% | Primary in H1/title/URL, semantic cluster, no stuffing | |

| CTR Elements | 10% | Title tag, meta description, URL slug, rich results | |

| Structure & Headings | 10% | Heading hierarchy, ToC, FAQ, scannable format | |

| Core Web Vitals | 10% | LCP, INP, CLS within thresholds | |

| Technical (per page) | 10% | Canonical, schema, mobile-friendly, images | |

| Accessibility | 5% | Alt text, tap targets, contrast, semantic HTML | |

Scoring guide:

Compute the weighted score: sum of (score x weight). Max = 5.0

| Range | Rating | Action |

|-------|--------|--------|

| 4.5-5.0 | Excellent | Minor polish only |

| 3.5-4.4 | Good | Targeted improvements |

| 2.5-3.4 | Needs Work | Significant gaps to address |

| 1.5-2.4 | Poor | Major overhaul needed |

| 0-1.4 | Critical | Fundamental issues |

Site-Level SEO Score

| Category | Weight | Criteria | Score 0-5 |

|----------|--------|----------|-----------|

| Crawlability | 20% | robots.txt, sitemap, canonical, no crawl traps | |

| Architecture | 20% | URL structure, internal linking, breadcrumbs, depth | |

| Performance | 15% | CWV across sample pages, TTFB, caching, compression | |

| Security | 10% | HTTPS, HSTS, CSP, X-Frame-Options | |

| Structured Data | 10% | JSON-LD coverage, validation, correct schema types | |

| International | 10% | hreflang, localization, canonical coordination | |

| Accessibility | 10% | Site-wide a11y patterns, landmark roles, alt text | |

| Off-Page | 5% | Backlink quality, brand mentions, citations | |

Compute both weighted scores, then the combined SEO Rank Score: (SEARCH score + TECH score) / 2

Always present the final score prominently at the top of every audit report. This is mandatory.


Master Checklists

Page-Level Checklist

Content & Intent
Title & Meta
Technical (Per Page)
Structured Data (Per Page)
Accessibility (Per Page)
International (If Multi-Language)

Site-Level Checklist

Crawlability
Architecture
Performance
Security
Structured Data (Site-Wide)
International (Site-Wide)
Off-Page

CLI Commands Reference

Quick reference for all audit commands Claude Code can run:

Performance

# Full Lighthouse audit (all categories)
npx lighthouse <url> --output=json --only-categories=performance,accessibility,seo,best-practices --chrome-flags="--headless"

# CWV only
npx lighthouse <url> --output=json --only-categories=performance --chrome-flags="--headless"

# PageSpeed Insights API (no install needed)
curl -s "https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=<encoded-url>&strategy=mobile"

Crawlability

# robots.txt
curl -s <domain>/robots.txt

# sitemap.xml
curl -s <domain>/sitemap.xml | head -100

# Redirect chain
curl -sIL <url> | grep -E 'HTTP/|Location:'

# Canonical tag
curl -s <url> | grep -i 'rel="canonical"'

# Noindex check
curl -s <url> | grep -i 'noindex'
curl -sI <url> | grep -i 'x-robots-tag'

# Hreflang tags
curl -s <url> | grep -i 'hreflang'

Security Headers

curl -sI <url> | grep -iE 'strict-transport|content-security|x-frame|x-content-type|referrer-policy|permissions-policy'

Structured Data

# Extract JSON-LD
curl -s <url> | grep -oP '<script type="application/ld\+json">.*?</script>' | sed 's/<[^>]*>//g'

Meta Tags & Content

# Extract key meta tags
curl -s <url> | grep -iE '<title>|meta name="description"|<h1|og:|twitter:'

# Count headings by level
curl -s <url> | grep -oiE '<h[1-6][^>]*>' | sort | uniq -c | sort -rn

# Images missing alt text
curl -s <url> | grep -oiE '<img [^>]*>' | grep -v 'alt=' | wc -l

# Total images
curl -s <url> | grep -oiE '<img [^>]*>' | wc -l

# Viewport meta tag
curl -s <url> | grep -i 'viewport'

Local Source Analysis (SSG/Astro Sites)

# Check for missing alt text in source
grep -rn '<img' src/ | grep -v 'alt=' | head -20

# Missing meta descriptions in frontmatter
grep -rL 'description:' src/content/posts/

# Validate heading hierarchy in markdown
grep -n '^#' src/content/posts/<file>.md

Workflow

Phase 1: Gather Context

Ask user for:

  1. Scope: Single page URL/file, or full site audit?
  2. Target keywords: 3-10 primary queries to rank for
  3. Content type: Blog / Landing page / Product / Docs / E-commerce
  4. Competitors: Top 2-3 competing URLs (optional, for gap analysis)
  5. International: Multi-language? Which languages?
  6. Local: Is local SEO relevant? (physical location, service area)
  7. Access: Can I run CLI commands against the live URL, or local files only?
  8. Known issues: Any existing penalties, ranking drops, or known problems?

Phase 2: Technical Audit

Run automated checks first (fast, objective):

  1. Fetch and inspect robots.txt and sitemap.xml
  2. Run Lighthouse for CWV, performance, accessibility, SEO scores
  3. Check security headers via curl
  4. Extract structured data and validate
  5. Check meta tags, canonical, hreflang
  6. Check HTTP status codes and redirect chains

Output: TECH Framework scorecard with specific findings per pillar.

Phase 3: Content Audit

Analyze content quality (requires reading the page):

  1. Identify search intent for target keywords
  2. Evaluate E-E-A-T signals in content
  3. Analyze keyword usage — H1, title, meta description, body, URL
  4. Check heading hierarchy and content structure
  5. Assess content quality — originality, depth, accuracy
  6. Review CTR elements — title tag, meta description, URL slug

Output: SEARCH Framework scorecard with specific findings per pillar.

Phase 4: Generate Recommendations

Prioritize by impact and effort:

Quick Wins (fix today)
Medium Effort (this week)
Strategic (this month)

Phase 5: Implementation

For each recommendation:

  1. Show current state (what's wrong)
  2. Show target state (what it should be)
  3. Provide the exact code/content change
  4. For content: produce rewritten text preserving voice (reference /tone-of-voice if available)
  5. For technical: produce code snippet or config change

Phase 6: Site-Level Review

After page-level work, assess site-wide:

  1. Run Site-Level Checklist
  2. Cross-check with /ai-rank site-level items (discovery files, AI crawler access)
  3. Generate missing structured data templates
  4. Identify site architecture improvements
  5. Produce sitemap.xml or robots.txt improvements if needed
  6. Review off-page signals and recommend actions

Audit Report Template

## SEO Audit Report — [URL or Site Name]
**Date:** [date]
**Audited by:** Claude Code (seo-rank skill)

### Score

**You MUST compute and present this score. It is not optional.**

SEO RANK SCORE: X.X / 5.0 (Rating)
├── SEARCH Score: X.X / 5.0 (Content SEO)
└── TECH Score:   X.X / 5.0 (Technical SEO)

### Executive Summary
- Critical issues: [count]
- Quick wins available: [count]
- Estimated impact: [high/medium/low]

### SEARCH Framework Scores (Content SEO)
| Principle | Score 0-5 | Key Issues |
|-----------|-----------|------------|
| S - Search Intent | | |
| E - E-E-A-T | | |
| A - Audience Quality | | |
| R - Relevance & Keywords | | |
| C - CTR Elements | | |
| H - Heading & Structure | | |
| **Weighted Average** | **X.X** | |

### TECH Framework Scores (Technical SEO)
| Pillar | Score 0-5 | Key Issues |
|--------|-----------|------------|
| T - Core Web Vitals | | |
| E - Efficient Crawling | | |
| C - Code & Rendering | | |
| H - HTTPS & Security | | |
| N - Navigation & Architecture | | |
| I - International | | |
| C - Compliance & Accessibility | | |
| A - AI & Structured Data | | |
| L - Local SEO | | |
| **Weighted Average** | **X.X** | |

### Core Web Vitals
| Metric | Value | Threshold | Status |
|--------|-------|-----------|--------|
| LCP | Xs | < 2.5s | PASS/FAIL |
| INP | Xms | < 200ms | PASS/FAIL |
| CLS | X.XX | < 0.1 | PASS/FAIL |

### Security Headers
| Header | Status | Value |
|--------|--------|-------|
| HSTS | PRESENT/MISSING | |
| CSP | PRESENT/MISSING | |
| X-Frame-Options | PRESENT/MISSING | |
| X-Content-Type-Options | PRESENT/MISSING | |
| Referrer-Policy | PRESENT/MISSING | |

### Prioritized Recommendations

#### Quick Wins (fix today)
1. ...

#### Medium Effort (this week)
1. ...

#### Strategic (this month)
1. ...

### Cross-Reference
- Run `/ai-rank audit` for LLM answer engine and AI agent optimization
- Run `/ai-rank discovery` to generate llms.txt, agents.txt

Examples

Example 1: Blog Post SEO Audit (Markdown/Astro)

Input: User runs /seo-rank on a markdown blog post

Before (frontmatter):

---
title: "Flag Theory Guide"
description: "A guide about flag theory"
publishDate: 2026-01-15
tags: ["flag-theory"]
---

Issues found:

After (optimized):

---
title: "Flag Theory for Digital Nomads: The 2026 Practical Guide"
description: "Learn flag theory basics: residency, banking, incorporation across jurisdictions. Step-by-step for online entrepreneurs saving 30-45% on taxes legally."
publishDate: 2026-01-15
updatedDate: 2026-03-30
tags: ["flag-theory", "tax-optimization", "digital-nomad", "international-business"]
---

Why this works:


Example 2: Technical Quick Audit

Input: /seo-rank tech https://example.com

Claude runs:

curl -sI https://example.com | grep -iE 'strict-transport|content-security|x-frame|x-content-type|referrer-policy'
curl -s https://example.com/robots.txt
curl -s https://example.com/sitemap.xml | head -50
curl -s https://example.com | grep -i 'rel="canonical"'
npx lighthouse https://example.com --output=json --only-categories=performance --chrome-flags="--headless"

Output: TECH scorecard with CWV numbers, security header status, crawlability findings, and prioritized fixes with exact code.


Example 3: International SEO Audit (Multi-Language Astro Site)

Input: /seo-rank i18n on an Astro site with /en/, /es/, /fr/, /it/ routes

Checks performed:

  1. hreflang tag presence on every page variant
  2. hreflang return links (bidirectional verification)
  3. x-default set correctly
  4. Canonical URLs self-referencing within each language (not cross-language)
  5. Content localization quality (not just machine translation)
  6. Language attribute on <html> tag per route
  7. sitemap.xml includes all language variants
  8. URL structure consistency across languages

Common findings:


Example 4: Content vs Competitor Gap Analysis

Input: /seo-rank compare https://mysite.com/guide https://competitor.com/guide

Analysis:

  1. Extract both pages' H1, H2 structure, word count, schema types
  2. Compare keyword coverage (which terms competitor covers that we don't)
  3. Compare E-E-A-T signals (author bios, citations, dates)
  4. Compare structured data (schema types, completeness)
  5. Compare CWV scores (Lighthouse both URLs)
  6. Produce gap report with specific additions to close gaps

Safety & Quality Rules


Quick Commands

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.