Agents & Skills / Webmaster / /fix-routes
skillWebmasterby stackbrief

/fix-routes

Audit all content files for broken internal links, missing tool slugs, frontmatter errors, and route mismatches. Returns a checklist of issues and fixes them inline.

site-maintenancelinksseonextjscontent-quality

Usage

/fix-routes
/fix-routes <slug>

Run without arguments to audit everything. Pass a slug to audit a single article.

What it checks

| Check | Auto-fix | |---|---| | Internal links in articles point to existing slugs | Yes — removes or corrects broken links | | Tool slugs in tools frontmatter have matching JSON files | No — reports missing JSONs (run /build-tool) | | category value is a valid CATEGORIES entry | Yes — flags invalid values | | reviewFrequency is quarterly or annual | Yes — corrects typos | | Article slugs in content/social/ match articles in content/articles/ | No — reports orphaned social files | | Social post article: frontmatter field matches an existing article | No — reports mismatches |

Route map

/article/[slug]     → content/articles/<slug>.mdx
/tools/[id]         → content/tools/<id>.json
/agents/[slug]      → content/agents/<slug>.md
/agents/[slug]/[skill] → content/skills/<skill>.md (agent field must match)
/category/[slug]    → CATEGORIES in lib/articles.ts

Output format

FIXED (2)
- what-is-mcp.mdx line 34: /article/firecrawl-mcp → /article/how-to-use-firecrawl-mcp-with-claude-code

NEEDS MANUAL ACTION (1)
- cursor-vs-claude-code-beginners.mdx: tools frontmatter includes "trae" — content/tools/trae.json exists ✓

ALL CLEAR (37 articles checked)
Part of the Webmaster agent

Audits and fixes site-wide technical issues — broken internal links, missing slugs, incorrect routes, frontmatter errors, and mismatched tool references across all content files.

View agent →