Skip to main content

create-a-404-page

Create a useful 404 page with a real not-found status, accessible navigation, safe search or recovery choices, and consistent site identity. Use when a requested web route does not exist.

Source facts

Repository
protosphinx/sphinxstack
Last source activity
July 29, 2026 at 13:55
Detected SKILL.md language
English
Stars
3
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
2 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
create-a-404-page
category
web
description
Create a useful 404 page with a real not-found status, accessible navigation, safe search or recovery choices, and consistent site identity. Use when a requested web route does not exist.
# create-a-404-page Return the correct HTTP status while helping the visitor recover. ## When to use - Use for missing public pages, removed routes, malformed paths, and client or server routing fallbacks. - Do not expose internal path guesses, stack traces, private route names, or a misleading success status. ## Procedure 1. Define server, edge, application, and client-router not-found behavior. 2. Return 404 for missing resources and preserve intentional 410, redirect, or authorization responses. 3. Provide a clear title, plain explanation, home link, relevant navigation, and safe search where available. 4. Keep layout, language, contrast, keyboard support, and focus consistent with the site. 5. Avoid auto-redirects and search suggestions that reveal private content. 6. Log normalized route and referrer safely without query secrets or personal data. 7. Test nested paths, assets, localized routes, authentication states, GET requests, and client navigation. 8. Verify robots and analytics do not index or count the page as success. ## Done - A 404 page file provides accessible recovery without exposing private route or error details - Status, routing, localization, authentication, analytics, logging, and GET behavior are tested
View on GitHub