一键导入
rai-bugfix-close
Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Interactive adapter setup for Jira and Confluence. Detects available backends, discovers projects/spaces, generates validated YAML config. 3-4 questions max.
Evaluate design proportionality using Beck's four rules. Use after implementation.
Root cause analysis using the method best suited to the bug. Phase 3 of bugfix pipeline.
Execute fix tasks with TDD and all validation gates. Phase 5 of bugfix pipeline.
Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline.
Retrospective, pattern extraction, and process improvement. Phase 6 of bugfix pipeline.
| name | rai-bugfix-close |
| description | Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline. |
| allowed-tools | ["Read","Bash(git:*)","Bash(glab:*)"] |
| license | MIT |
| metadata | {"raise.adaptable":"true","raise.fase":"7","raise.frequency":"per-bug","raise.gate":"","raise.next":"","raise.prerequisites":"bugfix-review","raise.skillset":"raise-maintainability","raise.version":"2.4.0","raise.visibility":"public","raise.work_cycle":"bugfix","raise.inputs":"- bug_id: string, required, argument\n- dev_branch: string, required, config\n","raise.outputs":"- mr_url: string, terminal\n"} |
Push the bug branch, create a merge request targeting the development branch, and clean up the local branch. All artifacts must exist before closing.
When to use: After /rai-bugfix-review has produced the retrospective artifact.
When to skip: Never — closing is how bug work becomes visible to the team.
Inputs: Bug ID, {dev_branch} from .raise/manifest.yaml.
Expected state: On bug branch. All artifacts exist (scope.md, analysis.md, plan.md, retro.md). Gates passed in fix phase.
Check all required artifacts exist and working tree is clean:
for f in scope.md analysis.md plan.md retro.md; do
[ -f "work/bugs/RAISE-{N}/$f" ] && echo "✓ $f" || echo "ERROR: Missing $f"
done
git status --short
| Condition | Action |
|---|---|
| All 4 artifacts + clean tree | Continue |
| Any artifact missing | STOP — run the missing phase skill first |
| Uncommitted changes | Commit them before push |
Never merge locally to {dev_branch}.
git push origin bug/raise-{N}/{slug} -u
glab mr create \
--source-branch bug/raise-{N}/{slug} \
--target-branch {dev_branch} \
--title "fix(RAISE-{N}): {summary}" \
--description "Root cause: {one line}
Co-Authored-By: Rai <rai@humansys.ai>" \
--no-editor
If glab is not available, provide the GitLab URL from git push output for manual MR creation.
git checkout {dev_branch}
git branch -D bug/raise-{N}/{slug}
Local branch deleted.
Close is a merge-request-only operation:
{dev_branch}If something looks wrong, return it as a finding — do not act on it.
| Item | Destination |
|---|---|
| Merge request | GitLab MR: bug branch → {dev_branch} |
| Next | — (pipeline complete) |
{dev_branch}{dev_branch} — always via MR/rai-bugfix-review/rai-bugfix-startCLAUDE.md § Branch Model