handbook-delete-page
SKILL.md
Handbook: delete page or section
Scope
Applies to cortex-hub handbook/ — Nuxt Content collection docs (content.config.ts: source.include: 'docs/**', prefix: '/docs').
Skills under content/skills/** use /skills/… paths; use a separate workflow for those.
Map URL ↔ file
- Public path (with trailing slash in the browser):
/docs/<segments>/<slug>/ - On disk:
handbook/content/docs/<ordered-folder>/<ordered-file>.md - Ordering prefixes (
\d+.) on folder and file names are stripped for routing. Example:- File:
content/docs/2.infrastructure/6.terraform-repository-layout.md - URL:
/docs/infrastructure/terraform-repository-layout/
- File:
Index-style pages often use 0.overview.md → last segment overview (e.g. /docs/infrastructure/overview/).
If the user gives a full URL (e.g. http://localhost:3000/docs/...), strip origin and optional locale segment; normalize to /docs/... for searching.