spec-test-bug
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSpec 缺陷报告(Vx:Bug Report Drafting)
Spec Defect Report (Vx: Bug Report Drafting)
本技能用于在 verification 阶段生成 结构化缺陷报告正文(面向 Jira/禅道/Linear/GitHub Issue 等外部系统),并确保缺陷信息可以回流到 Spec Pack 的 (作为交付阻断与风险证据)。
report-*.md重要边界:
- 禁止在 Spec Pack 内新增
或任何 bug 文件/目录。verification/bugs/**- 本技能的输出主要是“对话输出”,用于粘贴到外部缺陷系统;外部缺陷创建后,需把编号/链接等信息回写到
的“缺陷清单”。report-*.md
This skill is used to generate structured defect report content (for external systems like Jira/禅道/Linear/GitHub Issue) during the verification phase, and ensure that defect information can be fed back to the in the Spec Pack (as evidence of delivery blockages and risks).
report-*.mdImportant Boundaries:
- Prohibited: Do not add
or any bug files/directories within the Spec Pack.verification/bugs/**- The output of this skill is mainly "conversation output" for pasting into external defect systems; after creating the external defect, write information such as the number/link back to the "Defect List" in
.report-*.md
输入与门禁(必须遵守)
Input and Access Control (Mandatory Compliance)
REQUIRED SUB-SKILL:先满足 门禁并在对话中回显 (允许 )。
spec-contextFEATURE_DIR=...(reuse)- 先定位再回写:若需要把缺陷编号/链接回写到 ,必须先通过
report-*.md获取spec-context;失败即停止,禁止猜路径。FEATURE_DIR - 必读项目级 memory:、
project/memory/product.md、project/memory/tech.md;缺失必须写project/memory/glossary.md。CONTEXT GAP - 最小事实输入(用户需提供,或从上下文提取):
- 现象描述(实际 vs 期望)
- 复现步骤(可由他人复现)
- 环境信息(OS/浏览器/设备/环境/版本或构建)
- 影响评估(用户影响/频率/业务影响/数据影响/安全影响)
- 证据(截图/录屏/日志/网络请求摘要;可为空但需说明原因)
- 关联用例编号:至少 1 条 (来自
TC-*)verification/usecase.md
REQUIRED SUB-SKILL: First meet the access control and echo in the conversation (allow ).
spec-contextFEATURE_DIR=...(reuse)- Locate first, then write back: If you need to write defect numbers/links back to , you must first obtain
report-*.mdthroughFEATURE_DIR; stop immediately if it fails, and do not guess the path.spec-context - Mandatory project-level memory: ,
project/memory/product.md,project/memory/tech.md; writeproject/memory/glossary.mdif any are missing.CONTEXT GAP - Minimum factual input (to be provided by the user or extracted from context):
- Phenomenon description (actual vs expected)
- Reproduction steps (reproducible by others)
- Environment information (OS/browser/device/environment/version or build)
- Impact assessment (user impact/frequency/business impact/data impact/security impact)
- Evidence (screenshots/screen recordings/logs/network request summaries; can be empty but the reason must be explained)
- Associated use case ID: At least one (from
TC-*)verification/usecase.md
输出(对话输出,不落盘 bug 文件)
Output (Conversation Output, No Bug Files Saved)
本技能输出两部分:
- 缺陷报告正文(Markdown):按模板生成,可直接粘贴到外部缺陷系统。
- Report 回写片段(Markdown):用于粘贴到 的“缺陷清单 / 阻断项”区,字段包含:
{FEATURE_DIR}/verification/report-{date}-{version}.md- 外部缺陷编号 + 链接 + 状态 + 严重程度/优先级
- 关联
TC-* - 是否阻断交付(与 的 Exit Criteria 对齐)
test-plan.md
模板来源(强制使用):
assets/bug_report_templates.md
This skill outputs two parts:
- Defect Report Content (Markdown): Generated according to the template, can be directly pasted into external defect systems.
- Report Write-back Snippet (Markdown): Used to paste into the "Defect List / Block Items" section of , including the following fields:
{FEATURE_DIR}/verification/report-{date}-{version}.md- External defect number + link + status + severity/priority
- Associated
TC-* - Whether delivery is blocked (aligned with the Exit Criteria in )
test-plan.md
Template Source (Mandatory Use):
assets/bug_report_templates.md
执行要点(强制)
Execution Key Points (Mandatory)
- 标题必须具体:(避免“有 bug/不行了”)。
[模块/能力] 在 [条件/操作] 下出现 [错误] - 复现步骤必须可执行:每一步都应具体,避免“点击按钮然后报错”。
- 环境必须可追溯:至少包含 OS、浏览器/设备、环境(Dev/Staging/Prod)与版本/构建。
- 敏感信息处理:日志/截图必须脱敏;安全类问题避免给出可直接利用的攻击代码。
- 与用例绑定:缺陷必须关联到至少一个 ,否则会导致
TC-*无法可追溯。report
- Title must be specific: (avoid vague phrases like "has bug/not working").
[Module/Capability] [Error] occurs under [Condition/Operation] - Reproduction steps must be executable: Each step should be specific, avoid "click the button then an error occurs".
- Environment must be traceable: At least include OS, browser/device, environment (Dev/Staging/Prod) and version/build.
- Sensitive information handling: Logs/screenshots must be desensitized; for security-related issues, avoid providing directly exploitable attack code.
- Bind to use cases: Defects must be associated with at least one , otherwise the
TC-*will be untraceable.report
DoD 自检
DoD Self-Check
- 标题具体且可检索
- 复现步骤可由第三方复现
- 期望 vs 实际清晰
- 环境信息完整且可追溯
- 已给出 Severity / Priority
- 已关联
TC-* - 已提供证据或写明缺失原因
- 已给出对交付的影响与是否阻断
- Title is specific and searchable
- Reproduction steps can be reproduced by a third party
- Expected vs actual is clear
- Environment information is complete and traceable
- Severity / Priority is provided
- Associated with
TC-* - Evidence is provided or the reason for absence is stated
- Impact on delivery and whether it is blocked is specified