quality-gate
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese[IMPORTANT] Useto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.TaskCreate
Prerequisites: MUST READ before executing.
.claude/skills/shared/understand-code-first-protocol.md[重要提示] 在开始所有工作之前,必须使用将所有工作拆分为小任务,包括读取每个文件的任务。这可以避免长文件导致的上下文丢失。对于简单任务,AI必须询问用户是否可以跳过。TaskCreate
前提条件: 执行前必须阅读
.claude/skills/shared/understand-code-first-protocol.mdQuick Summary
快速概览
Goal: Verify readiness criteria before proceeding to next phase.
Workflow:
- Identify — Determine gate type (pre-dev, pre-QA, pre-release)
- Check — Run gate-specific checklist items
- Report — PASS/FAIL with evidence per criterion
Key Rules:
- Output must be PASS or FAIL with specific evidence
- Never skip checklist items — mark as N/A if not applicable
- Block progression on FAIL — list blocking items
目标: 在进入下一阶段前验证就绪标准是否满足
工作流:
- 识别 —— 确定门禁类型(开发前、QA前、预发布)
- 检查 —— 运行对应门禁的检查清单项
- 报告 —— 按每个校验标准给出通过/不通过结果及佐证材料
核心规则:
- 输出必须明确给出PASS或FAIL结果,附带具体佐证
- 绝对不得跳过检查清单项——如果不适用请标记为N/A
- 若结果为FAIL则阻断后续流程推进——列出所有阻塞项
Gate Types & Checklists
门禁类型与检查清单
Pre-Development Gate
开发前门禁
- Acceptance criteria defined and clear
- Dependencies identified and available
- Design specs available (if UI work)
- No blocking questions unresolved
- Estimation complete
- 验收标准已定义且清晰
- 依赖项已识别且可用
- 设计规范已准备就绪(如果是UI相关工作)
- 无未解决的阻塞性问题
- 工作量估算已完成
Pre-QA Gate
QA前门禁
- All acceptance criteria implemented
- Unit tests passing
- Code review complete
- No known critical bugs
- Test data prepared
- 所有验收标准已实现
- 单元测试全部通过
- 代码评审已完成
- 无已知严重Bug
- 测试数据已准备就绪
Pre-Release Gate
预发布门禁
- All tests passing (unit + integration)
- Code review complete
- CHANGELOG.md up-to-date
- No critical/major open bugs
- Documentation up-to-date
- Rollback strategy defined
- 所有测试通过(单元测试+集成测试)
- 代码评审已完成
- CHANGELOG.md 已更新至最新版本
- 无未解决的严重/主要Bug
- 文档已更新至最新版本
- 回滚策略已定义
Output Format
输出格式
undefinedundefinedQuality Gate Result
Quality Gate Result
Gate Type: [Pre-Dev | Pre-QA | Pre-Release]
Verdict: PASS | FAIL
Date: {date}
Gate Type: [Pre-Dev | Pre-QA | Pre-Release]
Verdict: PASS | FAIL
Date: {date}
Checklist
Checklist
- [pass] [Item] — [evidence]
- [fail] [Item] — [reason for failure]
- N/A [Item] — [why not applicable]
- [pass] [Item] — [evidence]
- [fail] [Item] — [reason for failure]
- N/A [Item] — [why not applicable]
Blocking Items (if FAIL)
Blocking Items (if FAIL)
- [Specific item that must be resolved]
undefined- [Specific item that must be resolved]
undefinedIMPORTANT Task Planning Notes (MUST FOLLOW)
重要任务规划说明(必须遵守)
- Always plan and break work into many small todo tasks using
TaskCreate - Always add a final review todo task to verify work quality and identify fixes/enhancements
- 始终使用将工作拆分为多个小型待办任务
TaskCreate - 始终添加最终评审待办任务,用于验证工作质量,识别需要修复/优化的内容