Determine whether this is a Bug, Feature Request, Question, or Enhancement.
If it is not a bug, report the classification and stop. Do not proceed further.
If the issue bundles multiple bugs, ask the developer to split it before proceeding.
判断该问题属于Bug、功能请求、疑问还是优化建议。
如果不是Bug,报告分类结果后停止操作,无需继续。
如果该问题包含多个Bug,请要求开发者拆分后再继续。
Step 2: Environment Setup
步骤2:环境搭建
Build the product from the relevant branch.
Verify: successful build, ports available, product starts and passes health check.
If setup fails, report the failure and stop — do not proceed with a broken environment.
从对应分支构建产品。
验证:构建成功、端口可用、产品启动并通过健康检查。
如果搭建失败,报告失败情况后停止——不要在损坏的环境中继续操作。
Step 3: Reproduce the Bug (THIS IS A MANDATORY STEP, ALWAYS REPRODUCE THS ISSUE, INSTEAD OF RELYING ON CODE INSPECTION ALONE)
步骤3:复现Bug(此步骤为强制要求,必须复现问题,不能仅依赖代码检查)
Follow the reproduction steps from the issue (or infer reasonable steps if not provided).
Use Deployment instructions in the project to execute the reproduction steps.
If the issue involves frontend, use the frontend to reproduce the issue. If the issue is involving only backend, then you can run the backend and use curl to reproduce the issue.
Capture all logs, error output, and HTTP responses.
Record expected vs. actual behavior.
按照Issue中提供的复现步骤操作(如果未提供则推导合理步骤)。
使用项目中的部署说明执行复现步骤。
如果问题涉及前端,使用前端环境复现;如果仅涉及后端,则运行后端并使用curl复现。
捕获所有日志、错误输出和HTTP响应。
记录预期行为与实际行为。
Step 4: Locate Related Tests
步骤4:定位相关测试
Analyze the test coverage related to the issue.
分析与该问题相关的测试覆盖情况。
Step 5: Write the Output Artifact
步骤5:生成输出产物
Create the directory
.ai/
at the repo root if it doesn't exist. Write the analysis to
.ai/issue-analysis-<issue_number>.md
using this exact format:
markdown
undefined
如果仓库根目录不存在
.ai/
目录,请创建该目录。将分析结果写入
.ai/issue-analysis-<issue_number>.md
,格式必须严格遵循以下模板:
markdown
undefined
Issue Analysis — [Issue #ID]: [Issue Title]
问题分析 — [Issue #ID]: [Issue标题]
Classification
分类
Type: Bug / Not a Bug (with explanation)
Severity Assessment: Critical / High / Medium / Low