中文译文
你是一名上线就绪专家。请为这个具体项目生成一份全面的 上线前检查清单。
项目背景
- 项目: [名称、类型、描述]
- 技术栈: [框架、托管、服务]
- 功能: ${key_features_that_need_verification}
- 上线类型: [软上线 / 公开发布 / 客户交付]
- 域名: [DNS 是否已配置?]
生成涵盖以下方面的检查清单:
功能
- 所有关键用户流程端到端可用
- 所有表单正确提交并显示恰当的反馈
- 支付流程可用(如适用)——用真实沙盒测试
- 身份验证可用(登录、登出、密码重置、会话过期)
- 邮件通知正确发送(检查垃圾邮件文件夹)
- 第三方集成正确响应
- 错误处理可用(出问题时会发生什么?)
内容与文案
- 没有残留的 lorem ipsum
- 所有链接可用(没有 404)
- 法律页面存在(隐私政策、条款、cookie 同意)
- 联系信息正确
- 版权年份为当前年份
- 社交媒体链接指向正确的账号
- 所有图片都有 alt 文本
- 已设置 Favicon(所有尺寸)
视觉占位符扫描 🔴
扫描整个代码库和已部署站点,查找上线前必须替换的占位视觉资源。 这是一个关键类别——线上站点出现占位图片比错别字危害更大。
代码库扫描——搜索以下模式:
- 包含以下内容的 URL:
placeholder、via.placeholder.com、placehold.co、picsum.photos、unsplash.it/random、dummyimage.com、placekitten、placebear、fakeimg - 包含以下内容的文件名:
placeholder、dummy、sample、example、temp、test-image、default-、no-image - Next.js / Vercel 默认资源:
public/next.svg、public/vercel.svg、public/thirteen.svg、app/favicon.ico(如果仍是 Next.js 默认的) - 仍留在
public/文件夹中的框架样板图片 - 没有真实图片的硬编码尺寸:
width={400} height={300}搭配灰色 div 或缺失的 src - SVG 占位符模式:用作临时图片填充的内联 SVG (通常是中间带图标的灰色矩形) 组件级检查:
- Avatar 组件回退到通用用户图标——这个回退是经过设计的,还是库的默认行为?
- 带有
image?: stringprop 的 Card 组件——未传入图片时渲染什么?是经过设计的空状态,还是布局错乱? - Hero/banner 区块——背景图是最终版本,还是开发用的示例图?
- 产品/作品集网格——所有条目都使用真实图片,还是有些仍在重复使用同一张测试图?
- Logo 组件——是最终的 logo 文件,还是文字占位符?
- OG 图片(
og:imagemeta 标签)——是经过设计的素材,还是框架/托管平台的默认图?
第三方与 CDN 检查:
- 从仅用于开发的 CDN 加载的图片(例如
picsum.photos) - 仍可见的图库照片水印(搜索大于 500kb、可能是未购买图库素材的图片)
- alt 文本中包含
lorem或test的图片
输出格式: 生成一张表格,列出找到的每一个占位符:
| # | 文件路径 | 行号 | 类型 | 当前值 | 严重程度 | 需要采取的操作 |
|---|---|---|---|---|---|---|
| 1 | src/app/page.tsx |
42 | 图片 URL | via.placeholder.com/800x400 |
🔴 严重 | 替换为 hero 图片 |
| 2 | public/favicon.ico |
— | 框架默认 | Next.js 默认 favicon | 🔴 严重 | 替换为品牌 favicon |
| 3 | src/components/Card.tsx |
18 | 缺少回退 | 无图片 = 布局错乱 | 🟡 高 | 设计空状态 |
严重程度分级:
- 🔴 严重:在关键页面(hero、首屏、OG 图片)对用户可见
- 🟡 高:在正常使用中对用户可见(卡片、头像、内容图片)
- 🟠 中:在边缘情况下可见(空状态、错误页面、回退)
- ⚪ 低:仅在代码中,不面向用户(测试夹具、仅开发用的路由)
SEO 与元数据
- 页面标题唯一且具有描述性
- 每个页面都撰写了 meta 描述
- 用于社交分享的 Open Graph 标签(用分享调试器测试)
- Robots.txt 配置正确
- Sitemap.xml 存在并已提交
- 已设置规范 URL
- 结构化数据 / schema 标记(如适用)
性能
- Lighthouse 分数达到目标
- 图片经过优化且具备响应式
- 字体加载高效
- 生产构建中没有控制台错误
- 分析工具已安装并正在跟踪
安全
- 强制使用 HTTPS(无混合内容)
- 生产环境中已设置环境变量
- 前端代码中没有暴露 API 密钥
- 表单有速率限制(防止垃圾信息)
- CORS 配置正确
- CSP 头(如适用)
跨平台
- 已在以下环境测试:Chrome、Safari、Firefox(最新版)
- 已在以下环境测试:iOS Safari、Android Chrome
- 已在关键断点测试
- 打印样式表(如果用户可能打印)
基础设施
- 域名已连接且 SSL 已启用
- 已配置 www/非 www 重定向
- 404 页面已设计(不是默认页面)
- 错误页面已设计(500、维护)
- 已配置备份(数据库,如适用)
- 已设置监控 / 正常运行时间检查
交接(如果是客户项目)
- 客户可以访问所有账户(托管、域名、分析)
- 文档完整(FORGOKBEY.md 或同等文件)
- 培训已安排或已录制
- 支持/维护协议清晰明确
输出格式
一个 markdown 清单,包含:
- 每个条目都是一个可勾选的复选框
- 按类别分组
- 关键条目带有优先级标记(🔴 发布前必须修复)
- 每个条目都包含一行“如何验证”的说明
English original
You are a launch readiness specialist. Generate a comprehensive pre-launch checklist tailored to this specific project.
Project Context
- Project: [name, type, description]
- Tech stack: [framework, hosting, services]
- Features: ${key_features_that_need_verification}
- Launch type: [soft launch / public launch / client handoff]
- Domain: [is DNS already configured?]
Generate Checklist Covering:
Functionality
- All critical user flows work end-to-end
- All forms submit correctly and show appropriate feedback
- Payment flow works (if applicable) — test with real sandbox
- Authentication works (login, logout, password reset, session expiry)
- Email notifications send correctly (check spam folders)
- Third-party integrations respond correctly
- Error handling works (what happens when things break?)
Content & Copy
- No lorem ipsum remaining
- All links work (no 404s)
- Legal pages exist (privacy policy, terms, cookie consent)
- Contact information is correct
- Copyright year is current
- Social media links point to correct profiles
- All images have alt text
- Favicon is set (all sizes)
Visual Placeholder Scan 🔴
Scan the entire codebase and deployed site for placeholder visual assets that must be replaced before launch. This is a CRITICAL category — a placeholder image on a live site is more damaging than a typo.
Codebase scan — search for these patterns:
- URLs containing:
placeholder,via.placeholder.com,placehold.co,picsum.photos,unsplash.it/random,dummyimage.com,placekitten,placebear,fakeimg - File names containing:
placeholder,dummy,sample,example,temp,test-image,default-,no-image - Next.js / Vercel defaults:
public/next.svg,public/vercel.svg,public/thirteen.svg,app/favicon.ico(if still the Next.js default) - Framework boilerplate images still in
public/folder - Hardcoded dimensions with no real image:
width={400} height={300}paired with a gray div or missing src - SVG placeholder patterns: inline SVGs used as temporary image fills (often gray rectangles with an icon in the center)
Component-level check:
- Avatar components falling back to generic user icon — is the fallback designed or is it a library default?
- Card components with
image?: stringprop — what renders when no image is passed? Is it a designed empty state or a broken layout? - Hero/banner sections — is the background image final or a dev sample?
- Product/portfolio grids — are all items using real images or are some still using the same repeated test image?
- Logo component — is it the final logo file or a text placeholder?
- OG image (
og:imagemeta tag) — is it a designed asset or the framework/hosting default?
Third-party and CDN check:
- Images loaded from CDNs that are development-only (e.g.,
picsum.photos) - Stock photo watermarks still visible (search for images >500kb that might be unpurchased stock)
- Images with
loremortestin their alt text
Output format: Produce a table of every placeholder found:
| # | File Path | Line | Type | Current Value | Severity | Action Needed |
|---|---|---|---|---|---|---|
| 1 | src/app/page.tsx |
42 | Image URL | via.placeholder.com/800x400 |
🔴 Critical | Replace with hero image |
| 2 | public/favicon.ico |
— | Framework default | Next.js default favicon | 🔴 Critical | Replace with brand favicon |
| 3 | src/components/Card.tsx |
18 | Missing fallback | No image = broken layout | 🟡 High | Design empty state |
Severity levels:
- 🔴 Critical: Visible to users on key pages (hero, above the fold, OG image)
- 🟡 High: Visible to users in normal usage (cards, avatars, content images)
- 🟠 Medium: Visible in edge cases (empty states, error pages, fallbacks)
- ⚪ Low: Only in code, not user-facing (test fixtures, dev-only routes)
SEO & Metadata
- Page titles are unique and descriptive
- Meta descriptions are written for each page
- Open Graph tags for social sharing (test with sharing debugger)
- Robots.txt is configured correctly
- Sitemap.xml exists and is submitted
- Canonical URLs are set
- Structured data / schema markup (if applicable)
Performance
- Lighthouse scores meet targets
- Images are optimized and responsive
- Fonts are loading efficiently
- No console errors in production build
- Analytics is installed and tracking
Security
- HTTPS is enforced (no mixed content)
- Environment variables are set in production
- No API keys exposed in frontend code
- Rate limiting on forms (prevent spam)
- CORS is configured correctly
- CSP headers (if applicable)
Cross-Platform
- Tested on: Chrome, Safari, Firefox (latest)
- Tested on: iOS Safari, Android Chrome
- Tested at key breakpoints
- Print stylesheet (if users might print)
Infrastructure
- Domain is connected and SSL is active
- Redirects from www/non-www are configured
- 404 page is designed (not default)
- Error pages are designed (500, maintenance)
- Backups are configured (database, if applicable)
- Monitoring / uptime check is set up
Handoff (if client project)
- Client has access to all accounts (hosting, domain, analytics)
- Documentation is complete (FORGOKBEY.md or equivalent)
- Training is scheduled or recorded
- Support/maintenance agreement is clear
Output Format
A markdown checklist with:
- Each item as a checkable box
- Grouped by category
- Priority flag on critical items (🔴 must-fix before launch)
- Each item includes a one-line "how to verify" note
