快速缺陷
GhassenAZZOUZ2026-10-25查看 546复制 249
WAY 3 — 根据一行描述快速生成缺陷报告。当用户说 "report it"、"log this"、"raise this"、"file this issue" 并附带类似 "[Area], [Precondition], [Step 1 > Step 2 > Observe: what you saw]" 的输入时使用。提交缺陷并为其编写回归测试。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md1154 chars
---
name: quick-bug
description: 'WAY 3 — quick bug report from a one-line description. Use when the user says "report it", "log this", "raise this", "file this issue" with input like "[Area], [Precondition], [Step 1 > Step 2 > Observe: what you saw]". Files the bug and writes a regression test for it.'
---
# WAY 3 — Quick Bug Report
1. Apply the `bug-report` skill. It parses `[Area], [Precondition], [Step 1 > Step 2 > Observe: …]` and derives the title, expected result, severity × priority and labels. It asks you if the Observe part or the expected result is missing
2. File the issue with those labels (`issue.create`, per the `tracker` skill). If the user gave a screenshot path, attach it (`file.attach`)
3. Run `test-writer` to write a regression test that reproduces the steps, tagged `@regression`, saved to `./qa-artifacts/test-cases/regression/bug-<ref>/Test#01.{md,feature,steps.ts}`. The test asserts the **expected** behavior, so it fails now and passes once the fix lands. `verify-fix` (WAY 9) runs it later
4. Print: issue ref, title, severity, URL, regression test path, and the hint "run `verify it <ref>` once a fix is deployed"