بنقرة واحدة
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