humansys/raise/rai-bugfix-fix-enterprise
Claude Code and agent skill by humansys/raise
- community
Checking that the SKILL.md file is still in the repository.
Execute fix tasks with TDD and all validation gates. Phase 5 of bugfix pipeline.
Install
npx vskill@latest install humansys/raise/rai-bugfix-fix-enterpriseSKILL.md
Bugfix Fix
Purpose
Execute the planned fix tasks in strict TDD order: RED (failing regression test) → GREEN (minimal fix) → REFACTOR. Each task verified and committed independently.
Mastery Levels (ShuHaRi)
- Shu: Follow plan tasks exactly, RED-GREEN-REFACTOR, run all 4 gates
- Ha: Combine related tasks when gates are stable
- Ri: Adaptive TDD (property tests, mutation testing)
Context
When to use: After /rai-bugfix-plan has decomposed the fix into atomic tasks.
When to skip: Never — even if the fix seems trivial, follow the plan.
Inputs: Bug ID, work/bugs/{issue_key}/plan.md with atomic tasks.
Expected state: On bug branch. Plan artifact exists. All current gates pass.
Steps
Step 1: Execute Tasks in Order
Per task from plan.md:
- RED — Write a failing test that defines expected behavior
- GREEN — Write minimal code to make the test pass
- REFACTOR — Clean up while keeping tests green
Run ALL four gates (test + lint + format + type check) after each task via the CLI — NEVER run the test command directly (keeps context clean):
Fall back to rai gate check gate-tests (unscoped) only when the scope path is ambiguous.
If verification fails: fix and re-verify (max 3 attempts before escalating).
Step 2: Commit & Present
Per completed task:
- Commit with the message from the plan
- Present to the human: what was completed, files changed, verification results
- Wait for acknowledgment before continuing
Step 3: Iterate or Finalize
| Condition | Action | |
|---|---|---|
| More tasks remain | Return to Step 1 | |
| All tasks complete | Run rai gate check --point before:bug:close, present summary | |
| Task blocked | Document blocker, escalate to human |
<verification> All tasks committed. All four gates pass. Bug no longer reproduces. </verification>
<if-blocked> 3 attempts without fix → document partial state, create follow-up issue. </if-blocked>
Step 4: Quality Review of Implementation
After all tasks complete and all four gates pass, invoke /rai-quality-review on the changed files:
| Verdict | Action | |
|---|---|---|
| PASS / PASS WITH RECOMMENDATIONS | Proceed to /rai-bugfix-review | |
| FAIL | Address critical findings, re-run gates, then proceed |
<verification> QR verdict is PASS or PASS WITH RECOMMENDATIONS. No critical semantic bugs in fix. </verification>
Output
| Item | Destination | |
|---|---|---|
| Code + commits | On bug branch |
STOP HERE. Return your summary to the orchestrator. Do NOT invoke any further skill.
Quality Checklist
- [ ] TDD cycle followed per Step 1 — RED proves bug, GREEN minimal fix, REFACTOR cleans up while keeping tests green
- [ ] Regression test not skipped; root cause addressed (not symptoms)
- [ ] All four gates pass after each task (test, lint, type check, format)
- [ ] Each task committed independently
- [ ] Human acknowledged each task before proceeding
- [ ] Bug no longer reproduces after fix
- [ ] QR verdict is PASS or PASS WITH RECOMMENDATIONS before handoff to review
References
- Gate:
gates/gate-code.md - Previous:
/rai-bugfix-plan - Next:
/rai-quality-review→/rai-bugfix-review
Backlog tracker
Engine behavior (RAISE-16987): The engine checks ExecutionContext to determine mode:
mode: pipeline— engine active;apply_phase_transitionmoves the tracker. No skill call required.mode: standalone— no active run; tracker is not moved automatically.
If standalone (mode == standalone via ExecutionContext):
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
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-fix-enterprise/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-fix-enterprise)