with one click
delete-doc
Delete documentation pages interactively with confirmation.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Delete documentation pages interactively with confirmation.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Analyze documentation for duplicates, outdated content, and discrepancies with codebase
Expert-level documentation bootstrap using Diátaxis framework and audience-driven planning.
Quick health check for documentation issues. Verifies content against actual source files.
Commit documentation changes to git after reviewing and confirming.
Create new documentation pages interactively. Searches codebase to ensure accuracy.
Import and configure API specification (OpenAPI, GraphQL, AsyncAPI) for documentation
| name | delete-doc |
| description | Delete documentation pages interactively with confirmation. |
When user wants to delete documentation:
Ask the user:
"What would you like to delete?
Based on their choice:
guides/old-feature.mdx)"Scan for orphan pages:
Compare:
- All .mdx files in docs/
- Pages referenced in docs.json
Orphan pages (not in navigation):
- docs/drafts/unused.mdx
- docs/old/deprecated-guide.mdx
Search for deprecation markers:
Files with deprecation notices:
- docs/api/legacy-auth.mdx (marked deprecated in v1.5)
- docs/guides/old-workflow.mdx (marked deprecated in v2.0)
Before deletion, check for:
Show analysis:
"Deletion Analysis for guides/old-feature.mdx:
Incoming links (2 pages reference this):
quickstart.mdx:45 → links to /guides/old-featureapi/overview.mdx:23 → links to /guides/old-feature#setupNavigation:
Recommended actions:
"Ready to delete guides/old-feature.mdx?
This will:
Options:
{new-page}Based on user choice:
// Before
See the [old feature guide](/guides/old-feature).
// After
See the [new feature guide](/guides/new-feature).
// or remove the sentence entirely
{
"redirects": [
{ "from": "/guides/old-feature", "to": "/guides/new-feature" }
]
}
"Deleted:
docs/guides/old-feature.mdxquickstart.mdx, api/overview.mdx/guides/old-feature → /guides/new-featureWant me to commit these changes? Use /commit when ready."
For multiple pages:
"Found 5 orphan pages not in navigation:
| File | Last Modified | Size |
|---|---|---|
drafts/test.mdx | 6 months ago | 2kb |
old/legacy-api.mdx | 1 year ago | 15kb |
temp/scratch.mdx | 3 months ago | 1kb |
guides/draft-feature.mdx | 2 months ago | 8kb |
archive/v1-docs.mdx | 1 year ago | 20kb |
Options: