بنقرة واحدة
rai-bugfix-plan
Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Decompose fix into atomic TDD tasks. Phase 4 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.
Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline.
Execute fix tasks with TDD and all validation gates. Phase 5 of bugfix pipeline.
Retrospective, pattern extraction, and process improvement. Phase 6 of bugfix pipeline.
| name | rai-bugfix-plan |
| description | Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline. |
| allowed-tools | ["Read","Write","Grep","Glob"] |
| license | MIT |
| metadata | {"raise.adaptable":"true","raise.fase":"4","raise.frequency":"per-bug","raise.gate":"","raise.next":"bugfix-fix","raise.prerequisites":"bugfix-analyse","raise.skillset":"raise-maintainability","raise.version":"2.4.0","raise.visibility":"public","raise.work_cycle":"bugfix","raise.inputs":"- bug_id: string, required, argument\n- analysis_md: file_path, required, from_previous\n","raise.outputs":"- plan_md: file_path, next_skill\n"} |
Decompose the fix into atomic, independently committable tasks in TDD order. The regression test task comes first — proving the bug exists before fixing it.
When to use: After /rai-bugfix-analyse has confirmed root cause and fix approach.
When to skip: Never — even a 1-task fix benefits from explicit planning (regression test + fix = 2 tasks minimum).
Inputs: Bug ID, work/bugs/RAISE-{N}/analysis.md with root cause and fix approach.
Expected state: On bug branch. Analysis artifact exists.
Write work/bugs/RAISE-{N}/plan.md: atomic tasks in TDD order.
Each task must have:
.raise/manifest.yaml (test, lint, type check)fix(RAISE-{N}): {description} conventionThe regression test task MUST be first:
## Tasks
### T1: Write regression test (RED)
- Write test that reproduces the bug
- Verify: `{test_command}` — test FAILS (proves bug exists)
- Commit: `test(RAISE-{N}): add regression test for {description}`
### T2: Fix {description} (GREEN)
- {specific change}
- Verify: `{test_command}` — test PASSES
- Commit: `fix(RAISE-{N}): {description}`
### T3: Refactor (if needed)
- {cleanup}
- Verify: all gates pass
- Commit: `refactor(RAISE-{N}): {description}`
Regression test task listed first. Each task independently committable.
Fix approach unclear → return to `/rai-bugfix-analyse` for deeper investigation.
git add work/bugs/RAISE-{N}/plan.md
git commit -m "bug(RAISE-{N}): plan — {N} tasks, TDD order
Co-Authored-By: Rai <rai@humansys.ai>"
| Item | Destination |
|---|---|
| Plan | work/bugs/RAISE-{N}/plan.md |
| Next | /rai-bugfix-fix |
/rai-bugfix-analyse/rai-bugfix-fix