/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.
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)