report-bug
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseArguments
参数
[optional: brief description of the bug]
[可选:Bug的简要描述]
Report a Compounding Engineering Plugin Bug
上报Compound Engineering插件Bug
Report bugs encountered while using the compound-engineering plugin. This command gathers structured information and creates a GitHub issue for the maintainer.
上报使用compound-engineering插件时遇到的Bug。此命令会收集结构化信息并为维护者创建GitHub Issue。
Step 1: Gather Bug Information
步骤1:收集Bug信息
Use the AskUserQuestion tool to collect the following information:
Question 1: Bug Category
- What type of issue are you experiencing?
- Options: Agent not working, Command not working, Skill not working, MCP server issue, Installation problem, Other
Question 2: Specific Component
- Which specific component is affected?
- Ask for the name of the agent, command, skill, or MCP server
Question 3: What Happened (Actual Behavior)
- Ask: "What happened when you used this component?"
- Get a clear description of the actual behavior
Question 4: What Should Have Happened (Expected Behavior)
- Ask: "What did you expect to happen instead?"
- Get a clear description of expected behavior
Question 5: Steps to Reproduce
- Ask: "What steps did you take before the bug occurred?"
- Get reproduction steps
Question 6: Error Messages
- Ask: "Did you see any error messages? If so, please share them."
- Capture any error output
使用AskUserQuestion工具收集以下信息:
问题1:Bug类别
- 你遇到的是哪类问题?
- 选项:Agent无法工作、命令无法工作、Skill无法工作、MCP服务器问题、安装问题、其他
问题2:具体组件
- 哪个具体组件受到影响?
- 询问Agent、命令、Skill或MCP服务器的名称
问题3:实际发生情况
- 询问:“你使用该组件时发生了什么?”
- 获取实际行为的清晰描述
问题4:预期发生情况
- 询问:“你原本期望发生什么?”
- 获取预期行为的清晰描述
问题5:复现步骤
- 询问:“Bug发生前你执行了哪些步骤?”
- 获取复现步骤
问题6:错误信息
- 询问:“你是否看到任何错误信息?如果有,请分享。”
- 捕获所有错误输出
Step 2: Collect Environment Information
步骤2:收集环境信息
Automatically gather:
bash
undefined自动收集:
bash
undefinedGet plugin version
获取插件版本
cat ~/.claude/plugins/installed_plugins.json 2>/dev/null | grep -A5 "compound-engineering" | head -10 || echo "Plugin info not found"
cat ~/.claude/plugins/installed_plugins.json 2>/dev/null | grep -A5 "compound-engineering" | head -10 || echo "Plugin info not found"
Get Claude Code version
获取Claude Code版本
claude --version 2>/dev/null || echo "Claude CLI version unknown"
claude --version 2>/dev/null || echo "Claude CLI version unknown"
Get OS info
获取系统信息
uname -a
undefineduname -a
undefinedStep 3: Format the Bug Report
步骤3:格式化Bug报告
Create a well-structured bug report with:
markdown
undefined创建结构清晰的Bug报告,内容如下:
markdown
undefinedBug Description
Bug描述
Component: [Type] - [Name]
Summary: [Brief description from argument or collected info]
组件: [类型] - [名称]
摘要: [来自参数或收集到的信息的简要描述]
Environment
环境
- Plugin Version: [from installed_plugins.json]
- Claude Code Version: [from claude --version]
- OS: [from uname]
- 插件版本: [来自installed_plugins.json]
- Claude Code版本: [来自claude --version]
- 操作系统: [来自uname]
What Happened
实际发生情况
[Actual behavior description]
[实际行为描述]
Expected Behavior
预期行为
[Expected behavior description]
[预期行为描述]
Steps to Reproduce
复现步骤
- [Step 1]
- [Step 2]
- [Step 3]
- [步骤1]
- [步骤2]
- [步骤3]
Error Messages
错误信息
[Any error output][任何错误输出]Additional Context
额外上下文
[Any other relevant information]
Reported via command
/report-bugundefined[其他相关信息]
通过命令上报
/report-bugundefinedStep 4: Create GitHub Issue
步骤4:创建GitHub Issue
Use the GitHub CLI to create the issue:
bash
gh issue create \
--repo EveryInc/compound-engineering-plugin \
--title "[compound-engineering] Bug: [Brief description]" \
--body "[Formatted bug report from Step 3]" \
--label "bug,compound-engineering"Note: If labels don't exist, create without labels:
bash
gh issue create \
--repo EveryInc/compound-engineering-plugin \
--title "[compound-engineering] Bug: [Brief description]" \
--body "[Formatted bug report]"使用GitHub CLI创建Issue:
bash
gh issue create \
--repo EveryInc/compound-engineering-plugin \
--title "[compound-engineering] Bug: [简要描述]" \
--body "[步骤3中格式化后的Bug报告]" \
--label "bug,compound-engineering"注意: 如果标签不存在,无需标签直接创建:
bash
gh issue create \
--repo EveryInc/compound-engineering-plugin \
--title "[compound-engineering] Bug: [简要描述]" \
--body "[格式化后的Bug报告]"Step 5: Confirm Submission
步骤5:确认提交
After the issue is created:
- Display the issue URL to the user
- Thank them for reporting the bug
- Let them know the maintainer (Kieran Klaassen) will be notified
Issue创建完成后:
- 向用户展示Issue链接
- 感谢用户上报Bug
- 告知用户维护者Kieran Klaassen会收到通知
Output Format
输出格式
✅ Bug report submitted successfully!
Issue: https://github.com/EveryInc/compound-engineering-plugin/issues/[NUMBER]
Title: [compound-engineering] Bug: [description]
Thank you for helping improve the compound-engineering plugin!
The maintainer will review your report and respond as soon as possible.✅ Bug报告提交成功!
Issue:https://github.com/EveryInc/compound-engineering-plugin/issues/[编号]
标题:[compound-engineering] Bug: [描述]
感谢你帮助改进compound-engineering插件!
维护者会审核你的报告并尽快回复。Error Handling
错误处理
- If CLI is not authenticated: Prompt user to run
ghfirstgh auth login - If issue creation fails: Display the formatted report so user can manually create the issue
- If required information is missing: Re-prompt for that specific field
- 如果CLI未认证:提示用户先运行
ghgh auth login - 如果Issue创建失败:展示格式化后的报告,方便用户手动创建Issue
- 如果缺少必填信息:重新提示用户补充该字段
Privacy Notice
隐私说明
This command does NOT collect:
- Personal information
- API keys or credentials
- Private code from your projects
- File paths beyond basic OS info
Only technical information about the bug is included in the report.
此命令不会收集:
- 个人信息
- API密钥或凭证
- 项目中的私有代码
- 除基础系统信息外的文件路径
报告中仅包含与Bug相关的技术信息。