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.

来源信息

仓库
protosphinx/sphinxstack
最近来源活动
2026年7月29日 13:55
检测到的 SKILL.md 语言
英语
星标
3
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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
在 GitHub 查看