Blog Audit: Full-Site Health Assessment
Performs a comprehensive blog health assessment across all posts in the project.
Scans for quality scores, orphan pages, topic cannibalization, stale content,
and AI citation readiness. Uses the canonical analyzer JSON as the score source
and produces a prioritized action queue.
Audit Process
Step 1: Discover Blog Files
Scan the project for all blog content files:
- Recursively glob for
.md, .mdx, .html, .astro, .svelte, .vue,
.tsx, and .jsx in common blog directories and CMS export folders
- Common paths to check:
content/
posts/
blog/
src/content/
_posts/
pages/blog/
articles/
content/blog/**
- CMS export folders explicitly provided by the user
src/pages/blog/
- Filter out hidden, vendor, generated, and secret-adjacent paths:
.git/,
dot-directories, node_modules/, vendor/, dist/, build/, .next/,
coverage/, reports/, generated exports, README, CHANGELOG, LICENSE,
config files, SKILL.md, package files, .env*, keys, and private notes
- Report: "Found N blog files in [directories]"
If no blog files are found in standard locations, ask for an allow-listed root
or only search user-approved content directories. Do not scan the entire project
root by default.
Step 2: Canonical Batch Analysis
Run canonical analyzer output first and use it as the source of per-post scores:
python3 scripts/analyze_blog.py <blog-root> --batch --format json
Process files in chunks, cap parallel follow-up work to a small fixed number,
respect context limits, and aggregate deterministic JSON with file, score,
categories, issues, and metadata. Layer the site-wide checks below on top
of analyzer JSON, not separate scoring rubrics.
Content Quality Layer
- Score each post on the 30-point content quality scale
- Check paragraph length (target 40-80 words, hard limit 150)
- Check sentence length (target 15-20 words)
- Evaluate heading structure and question-format headings
- Assess readability using persona and content type: consumer content favors
easier bands, professional content can be moderate, and technical content may
be denser when clarity remains high
SEO Optimization Layer
- Check on-page SEO elements per post:
- Title tag length (40-60 acceptable, 50-60 ideal, preview warning only)
- Meta description is concise and page-specific. Statistics are optional and
must be visible and sourced
- H1 presence and uniqueness
- Image alt text coverage
- Internal and external link counts
- URL slug quality
Schema Validation Layer
- Detect structured data across all posts
- Validate Article/BlogPosting, Person, Organization, and BreadcrumbList schema completeness
- If FAQPage exists, validate it as optional entity markup only, not a Google rich result
- Normalize
dateModified, lastUpdated, updated, and lastmod, including
timezone-normalized generated schema, then require freshness parity
- Flag missing or malformed schema
Link Health Layer
- Map internal links across all posts
- Build a directed link graph
- Detect orphan pages (zero inbound internal links)
- Detect dead-end pages (zero outbound internal links)
- Check for broken internal link targets
- Recommend bidirectional link opportunities
Freshness Check Layer
- Read lastUpdated or dateModified from each post's frontmatter
- Calculate days since last update
- Flag freshness by content type, source or statistic age, and GSC decay, not by
a universal day count
- Categorize by refresh priority
AI Readiness Layer
- Score each post for AI citation readiness
- Check passage-level citability (120-180 word sections)
- Evaluate Q&A formatting and entity clarity
- Check for TL;DR boxes and citation capsules
- Check robots.txt, llms.txt, SSR/SSG output, JS-gated content, blocked assets,
GPTBot, ClaudeBot, PerplexityBot, Googlebot, and Google-Extended policies
Step 2.5: Technical Crawl and Search Performance
Add site-wide technical checks before final recommendations:
- Validate sitemap coverage, robots.txt, noindex directives, canonical tags,
redirects, HTTP status codes, hreflang, and internal canonical consistency
- Use
blog-google when available for Core Web Vitals, GSC queries, URL
Inspection, indexing status, and GA4 context
- Report skipped optional checks with reasons such as
SKIPPED: credentials unavailable
Step 3: Topic Cannibalization Detection
Analyze across all posts for keyword competition:
- Extract primary keyword/topic from each post:
- Title text
- H1 heading
- Meta description
- First paragraph
- Normalize keywords with stopword handling, lemmatization, locale awareness,
and intent modifiers
- Cluster by intent using analyzer data, embeddings or explicit confidence,
GSC query-to-URL data when available, and SERP overlap where available
- Flag competing posts with one of these recommendations:
- Merge: Combine two weak posts into one strong post
- Redirect: 301 redirect the weaker post to the stronger one after
preserving backlinks, validating a redirect map, and updating internal
links
- Differentiate: Adjust focus so posts target distinct intents
Step 4: Orphan Page Detection
Build and analyze the internal link graph:
- Normalize URLs against site config and sitemap, including relative links,
same-domain absolutes, trailing slashes, generated routes, anchors, and slug
mappings
- Build an adjacency map:
{ page -> [pages it links to] }
- Build a reverse map:
{ page -> [pages linking to it] }
- Identify orphan pages: posts with zero inbound internal links
- Identify dead-end pages: posts with zero outbound internal links
- For each orphan, recommend 2-3 existing posts that should link to it
based on topic relevance
Step 5: Stale Content Detection
Audit content freshness across all posts:
- Read frontmatter fields:
lastUpdated, dateModified, date, updated
- Calculate days since last update for each post
- Categorize by refresh priority:
- High: Volatile topic, stale sources or statistics, or GSC decay
- Medium: Evergreen topic with aging examples, links, or screenshots
- Low: Recently validated or stable reference content
- Estimate refresh effort per post:
- Light refresh: Update statistics, check links (1-2 hours)
- Moderate refresh: Rewrite sections, add new data (3-4 hours)
- Heavy refresh: Full rewrite recommended (5+ hours)
Step 6: Generate Site-Wide Report
Aggregate all results into a comprehensive report:
Summary Dashboard
## Blog Audit Report
**Audit Date:** [date]
**Total Posts:** N
**Average Score:** XX/100
### Health Overview
| Metric | Count |
|--------|-------|
| Posts Scoring 90+ (Excellent) | N |
| Posts Scoring 70-89 (Good) | N |
| Posts Scoring 50-69 (Needs Work) | N |
| Posts Scoring <50 (Poor) | N |
| Orphan Pages | N |
| Dead-End Pages | N |
| Cannibalization Issues | N |
| Stale or Decaying Content | N |
Per-Post Table
### Per-Post Scores
| Post | Score | Content | SEO | E-E-A-T | Technical | AI Citation | Issues |
|------|-------|---------|-----|---------|-----------|-------------|--------|
| [filename] | XX/100 | X/30 | X/25 | X/15 | X/15 | X/15 | [count] |
Prioritized Action Queue
### Prioritized Action Queue (Lowest Score First)
| Priority | Post | Score | Top Issue | Recommended Action |
|----------|------|-------|-----------|--------------------|
| 1 | [file] | XX | [issue] | [action] |
| 2 | [file] | XX | [issue] | [action] |
Cannibalization Report
### Topic Cannibalization
| Keyword | Competing Posts | Recommendation |
|---------|----------------|----------------|
| [keyword] | post-a.md, post-b.md | Merge / Redirect / Differentiate |
Orphan Pages
### Orphan Pages (No Inbound Links)
| Page | Inbound Links | Recommended Link Sources |
|------|---------------|--------------------------|
| [file] | 0 | post-a.md, post-b.md, post-c.md |
Stale Content
### Stale Content
| Post | Last Updated | Days Stale | Priority | Refresh Effort |
|------|-------------|------------|----------|----------------|
| [file] | [date] | [N] | High/Med/Low | Light/Moderate/Heavy |
Step 7: Save Report
Save timestamped Markdown and JSON exports under reports/, for example
reports/blog-audit-YYYY-MM-DD.md and reports/blog-audit-YYYY-MM-DD.json.
Do not overwrite a previous audit report.
After saving, inform the user:
- Report locations:
[project-root]/reports/blog-audit-YYYY-MM-DD.md and
[project-root]/reports/blog-audit-YYYY-MM-DD.json
- Summary of findings (total posts, average score, critical issues count)
- Suggest running
/blog analyze <file> on the lowest-scoring post first
- Suggest running
/blog flow optimize for AI-citation SEO checks on key posts
Cross-reference
For evidence-led audit prompts beyond this site-wide health pass, see /blog flow optimize (visibility, CTR, schema, extraction audits) and /blog flow win (dual-surface scorecard, conversion audit).
1---2name: blog-audit-23description: Full-site blog health assessment scanning all blog files for quality scores, orphan pages, topic cannibalization, stale content, and AI citation readiness. Runs canonical batch analysis before site-wide checks. Produces per-post scores and a prioritized action queue. Use when user says "audit blog", "blog audit", "site audit", "blog health", "audit all posts", "check all blogs".4license: MIT5---67# Blog Audit: Full-Site Health Assessment89Performs a comprehensive blog health assessment across all posts in the project.10Scans for quality scores, orphan pages, topic cannibalization, stale content,11and AI citation readiness. Uses the canonical analyzer JSON as the score source12and produces a prioritized action queue.1314## Audit Process1516### Step 1: Discover Blog Files1718Scan the project for all blog content files:1920- Recursively glob for `.md`, `.mdx`, `.html`, `.astro`, `.svelte`, `.vue`,21 `.tsx`, and `.jsx` in common blog directories and CMS export folders22- Common paths to check:23 - `content/`24 - `posts/`25 - `blog/`26 - `src/content/`27 - `_posts/`28 - `pages/blog/`29 - `articles/`30 - `content/blog/**`31 - CMS export folders explicitly provided by the user32 - `src/pages/blog/`33- Filter out hidden, vendor, generated, and secret-adjacent paths: `.git/`,34 dot-directories, `node_modules/`, `vendor/`, `dist/`, `build/`, `.next/`,35 `coverage/`, `reports/`, generated exports, README, CHANGELOG, LICENSE,36 config files, SKILL.md, package files, `.env*`, keys, and private notes37- Report: "Found N blog files in [directories]"3839If no blog files are found in standard locations, ask for an allow-listed root40or only search user-approved content directories. Do not scan the entire project41root by default.4243### Step 2: Canonical Batch Analysis4445Run canonical analyzer output first and use it as the source of per-post scores:4647```bash48python3 scripts/analyze_blog.py <blog-root> --batch --format json49```5051Process files in chunks, cap parallel follow-up work to a small fixed number,52respect context limits, and aggregate deterministic JSON with `file`, `score`,53`categories`, `issues`, and `metadata`. Layer the site-wide checks below on top54of analyzer JSON, not separate scoring rubrics.5556#### Content Quality Layer57- Score each post on the 30-point content quality scale58- Check paragraph length (target 40-80 words, hard limit 150)59- Check sentence length (target 15-20 words)60- Evaluate heading structure and question-format headings61- Assess readability using persona and content type: consumer content favors62 easier bands, professional content can be moderate, and technical content may63 be denser when clarity remains high6465#### SEO Optimization Layer66- Check on-page SEO elements per post:67 - Title tag length (40-60 acceptable, 50-60 ideal, preview warning only)68 - Meta description is concise and page-specific. Statistics are optional and69 must be visible and sourced70 - H1 presence and uniqueness71 - Image alt text coverage72 - Internal and external link counts73 - URL slug quality7475#### Schema Validation Layer76- Detect structured data across all posts77- Validate Article/BlogPosting, Person, Organization, and BreadcrumbList schema completeness78- If FAQPage exists, validate it as optional entity markup only, not a Google rich result79- Normalize `dateModified`, `lastUpdated`, `updated`, and `lastmod`, including80 timezone-normalized generated schema, then require freshness parity81- Flag missing or malformed schema8283#### Link Health Layer84- Map internal links across all posts85- Build a directed link graph86- Detect orphan pages (zero inbound internal links)87- Detect dead-end pages (zero outbound internal links)88- Check for broken internal link targets89- Recommend bidirectional link opportunities9091#### Freshness Check Layer92- Read lastUpdated or dateModified from each post's frontmatter93- Calculate days since last update94- Flag freshness by content type, source or statistic age, and GSC decay, not by95 a universal day count96- Categorize by refresh priority9798#### AI Readiness Layer99- Score each post for AI citation readiness100- Check passage-level citability (120-180 word sections)101- Evaluate Q&A formatting and entity clarity102- Check for TL;DR boxes and citation capsules103- Check robots.txt, llms.txt, SSR/SSG output, JS-gated content, blocked assets,104 GPTBot, ClaudeBot, PerplexityBot, Googlebot, and Google-Extended policies105106### Step 2.5: Technical Crawl and Search Performance107108Add site-wide technical checks before final recommendations:109110- Validate sitemap coverage, robots.txt, noindex directives, canonical tags,111 redirects, HTTP status codes, hreflang, and internal canonical consistency112- Use `blog-google` when available for Core Web Vitals, GSC queries, URL113 Inspection, indexing status, and GA4 context114- Report skipped optional checks with reasons such as115 `SKIPPED: credentials unavailable`116117### Step 3: Topic Cannibalization Detection118119Analyze across all posts for keyword competition:1201211. Extract primary keyword/topic from each post:122 - Title text123 - H1 heading124 - Meta description125 - First paragraph1262. Normalize keywords with stopword handling, lemmatization, locale awareness,127 and intent modifiers1283. Cluster by intent using analyzer data, embeddings or explicit confidence,129 GSC query-to-URL data when available, and SERP overlap where available1304. Flag competing posts with one of these recommendations:131 - **Merge**: Combine two weak posts into one strong post132 - **Redirect**: 301 redirect the weaker post to the stronger one after133 preserving backlinks, validating a redirect map, and updating internal134 links135 - **Differentiate**: Adjust focus so posts target distinct intents136137### Step 4: Orphan Page Detection138139Build and analyze the internal link graph:1401411. Normalize URLs against site config and sitemap, including relative links,142 same-domain absolutes, trailing slashes, generated routes, anchors, and slug143 mappings1442. Build an adjacency map: `{ page -> [pages it links to] }`1453. Build a reverse map: `{ page -> [pages linking to it] }`1464. Identify orphan pages: posts with zero inbound internal links1475. Identify dead-end pages: posts with zero outbound internal links1486. For each orphan, recommend 2-3 existing posts that should link to it149 based on topic relevance150151### Step 5: Stale Content Detection152153Audit content freshness across all posts:1541551. Read frontmatter fields: `lastUpdated`, `dateModified`, `date`, `updated`1562. Calculate days since last update for each post1573. Categorize by refresh priority:158 - **High**: Volatile topic, stale sources or statistics, or GSC decay159 - **Medium**: Evergreen topic with aging examples, links, or screenshots160 - **Low**: Recently validated or stable reference content1614. Estimate refresh effort per post:162 - Light refresh: Update statistics, check links (1-2 hours)163 - Moderate refresh: Rewrite sections, add new data (3-4 hours)164 - Heavy refresh: Full rewrite recommended (5+ hours)165166### Step 6: Generate Site-Wide Report167168Aggregate all results into a comprehensive report:169170#### Summary Dashboard171```172## Blog Audit Report173174**Audit Date:** [date]175**Total Posts:** N176**Average Score:** XX/100177178### Health Overview179| Metric | Count |180|--------|-------|181| Posts Scoring 90+ (Excellent) | N |182| Posts Scoring 70-89 (Good) | N |183| Posts Scoring 50-69 (Needs Work) | N |184| Posts Scoring <50 (Poor) | N |185| Orphan Pages | N |186| Dead-End Pages | N |187| Cannibalization Issues | N |188| Stale or Decaying Content | N |189```190191#### Per-Post Table192```193### Per-Post Scores194| Post | Score | Content | SEO | E-E-A-T | Technical | AI Citation | Issues |195|------|-------|---------|-----|---------|-----------|-------------|--------|196| [filename] | XX/100 | X/30 | X/25 | X/15 | X/15 | X/15 | [count] |197```198199#### Prioritized Action Queue200```201### Prioritized Action Queue (Lowest Score First)202| Priority | Post | Score | Top Issue | Recommended Action |203|----------|------|-------|-----------|--------------------|204| 1 | [file] | XX | [issue] | [action] |205| 2 | [file] | XX | [issue] | [action] |206```207208#### Cannibalization Report209```210### Topic Cannibalization211| Keyword | Competing Posts | Recommendation |212|---------|----------------|----------------|213| [keyword] | post-a.md, post-b.md | Merge / Redirect / Differentiate |214```215216#### Orphan Pages217```218### Orphan Pages (No Inbound Links)219| Page | Inbound Links | Recommended Link Sources |220|------|---------------|--------------------------|221| [file] | 0 | post-a.md, post-b.md, post-c.md |222```223224#### Stale Content225```226### Stale Content227| Post | Last Updated | Days Stale | Priority | Refresh Effort |228|------|-------------|------------|----------|----------------|229| [file] | [date] | [N] | High/Med/Low | Light/Moderate/Heavy |230```231232### Step 7: Save Report233234Save timestamped Markdown and JSON exports under `reports/`, for example235`reports/blog-audit-YYYY-MM-DD.md` and `reports/blog-audit-YYYY-MM-DD.json`.236Do not overwrite a previous audit report.237238After saving, inform the user:239- Report locations: `[project-root]/reports/blog-audit-YYYY-MM-DD.md` and240 `[project-root]/reports/blog-audit-YYYY-MM-DD.json`241- Summary of findings (total posts, average score, critical issues count)242- Suggest running `/blog analyze <file>` on the lowest-scoring post first243- Suggest running `/blog flow optimize` for AI-citation SEO checks on key posts244245## Cross-reference246247For evidence-led audit prompts beyond this site-wide health pass, see `/blog flow optimize` (visibility, CTR, schema, extraction audits) and `/blog flow win` (dual-surface scorecard, conversion audit).