humansys/raise/rai-bugfix-plan
Claude Code and agent skill by humansys/raise
- community
Checking that the SKILL.md file is still in the repository.
Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline.
Install
npx vskill@latest install humansys/raise/rai-bugfix-planSKILL.md
Bugfix Plan
Purpose
Decompose the fix into atomic, independently committable tasks in TDD order. The regression test task comes first — proving the bug exists before fixing it.
Mastery Levels (ShuHaRi)
- Shu: Follow template, regression test first, explicit verification per task
- Ha: Collapse plan for XS bugs (2 tasks: test + fix)
- Ri: Adaptive task granularity based on complexity signals
Context
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/{issue_key}/analysis.md with root cause and fix approach.
Expected state: On bug branch. Analysis artifact exists.
Steps
Step 1: Decompose into Tasks
Publish work/bugs/{issue_key}/plan.md via CLI: atomic tasks in TDD order.
Each task must have:
- Description: What to do
- Verification: Command from
.raise/manifest.yaml(test, lint, type check) - Commit message: Following
fix({issue_key}): {description}convention
The regression test task MUST be first:
Use raise_docs_write MCP tool with doc_type="bugfix-plan", title="{issue_key}: plan", content="## Tasks\n\n### T1: Write regression test (RED)\n...\n\n### T2: Fix {description} (GREEN)\n...\n\n### T3: Refactor (if needed)\n...", output_path="work/bugs/{issue_key}/plan.md", cwd="{project_or_worktree_path}". If MCP tools are not available, fall back to:
<verification> Regression test task listed first. Each task independently committable. </verification>
<if-blocked> Fix approach unclear → return to /rai-bugfix-analyse for deeper investigation. </if-blocked>
Step 2: Commit Plan
Step 3: Architecture Review of Proposed Fix
Invoke /rai-architecture-review with bugfix scope before any code is written:
- Load
work/bugs/{issue_key}/analysis.mdas the design intent (root cause + proposed approach) - Identify the files at the change points from
analysis.md - Read those files — evaluate whether the proposed fix is minimum and proportional
- Apply heuristics H1–H12 and L1–L5; skip Step 7 (H13–H16, epic scope only)
| Verdict | Action | |
|---|---|---|
| PASS / PASS WITH QUESTIONS | Proceed to /rai-bugfix-fix | |
| SIMPLIFY | Revise plan.md, re-commit, re-run AR until PASS |
<verification> AR verdict is PASS or PASS WITH QUESTIONS. Plan reflects minimum proportional fix. </verification>
Output
| Item | Destination | |
|---|---|---|
| Plan | work/bugs/{issue_key}/plan.md |
STOP HERE. Return your summary to the orchestrator. Do NOT invoke any further skill.
Quality Checklist
- [ ] Regression test is task #1
- [ ] Each task independently committable
- [ ] Verification command specified per task
- [ ] Commit message specified per task
- [ ] NEVER start fixing without a plan
- [ ] AR verdict is PASS or PASS WITH QUESTIONS before proceeding to fix
References
- Previous:
/rai-bugfix-analyse - Next:
/rai-architecture-review→/rai-bugfix-fix
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/raise-cli/src/raise_cli/skills_base/rai-bugfix-plan/SKILL.md
Popularity
- Repository stars
- 71
- Repository forks
- 8
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/humansys/raise/rai-bugfix-plan)