| name | controller |
| description | Top-level workflow controller that manages phase transitions for OCMUI bug resolution |
OCMUI Bugfix Workflow Controller
You are the workflow controller. Your job is to manage the OCMUI bugfix workflow by executing phases and handling transitions between them.
Phases
-
Scrub (/scrub) โ .claude/skills/scrub/SKILL.md
Evaluate unscrubbed bugs from the Defect Manager Dashboard. Determine if it's a bug, check reproducibility, verify priority, identify blockers.
-
Reproduce (/reproduce) โ .claude/skills/reproduce/SKILL.md
Systematically reproduce the bug in a controlled environment.
-
Diagnose (/diagnose) โ .claude/skills/diagnose/SKILL.md
Trace the root cause through code analysis, git history, and hypothesis testing.
-
Fix (/fix) โ .claude/skills/fix/SKILL.md
Implement the fix following UHC Portal standards (TypeScript, React, PatternFly).
-
Test (/test) โ .claude/skills/test/SKILL.md
Write unit tests (Jest/RTL), run yarn test-changes, create e2e tests (Playwright) if needed.
-
Document (/document) โ .claude/skills/document/SKILL.md
Create PR description using team template, recommend Jira updates.
-
PR (/pr) โ .claude/skills/pr/SKILL.md
Push to fork and create a draft pull request.
Phases can be skipped or reordered at the user's discretion.
How to Execute a Phase
- Announce the phase to the user before doing anything else. Include this file as the dispatcher so skills know where to return, e.g., "Starting the /scrub phase (dispatched by
.claude/skills/controller/SKILL.md)." This is very important so the user knows the workflow is working, learns about the available phases, and so skills can find their way back here.
- Read the skill file from the list above
- Execute the skill's steps directly โ the user should see your progress
- When the skill is done, it will report its findings and re-read this controller. Then use "Recommending Next Steps" below to offer options.
- Present the skill's results and your recommendations to the user
- Stop and wait for the user to tell you what to do next
Recommending Next Steps
After each phase completes, present the user with options โ not just one next step. Use the typical flow as a baseline, but adapt to what actually happened.
Typical Flow
scrub โ reproduce โ diagnose โ fix โ test โ document โ pr
What to Recommend
After presenting results, consider what just happened, then offer options that make sense:
Continuing to the next step โ often the next phase in the flow is the best option
Skipping forward โ sometimes phases aren't needed:
- Scrub identified a clear bug and root cause โ offer
/fix alongside /reproduce
- Bug is already well-documented โ skip
/scrub, go to /reproduce
- Blocker/Critical bug โ offer
/diagnose or /fix immediately
Going back โ sometimes earlier work needs revision:
- Test failures โ offer
/fix to rework the implementation
- Can't reproduce โ go back to
/scrub to reassess
- Diagnosis was wrong โ offer
/diagnose again with new information
Ending early โ not every bug needs the full pipeline:
- A trivial fix might go straight from
/fix โ /test โ /pr
- If the user already has their own PR process, they may stop after
/test
How to Present Options
Lead with your top recommendation, then list alternatives briefly:
Recommended next step: /test โ verify the fix with unit tests and coverage check.
Other options:
- /document โ if you've already tested manually and want to prepare the PR
- /pr โ if you're confident and want to submit immediately
Special Cases for OCMUI Workflow
After /scrub:
- If bug is Blocker/Critical โ recommend
/diagnose or /fix immediately
- If bug cannot be reproduced โ recommend adding comment to Jira asking for more info
- If bug is actually a story/task โ recommend changing Jira type
- If bug is blocked โ recommend setting blocked field and reason in Jira
After /fix:
- Always recommend
/test to run yarn test-changes and verify coverage
- Remind about PR size limits (1000 lines / 30 files)
After /test:
- If coverage is insufficient โ recommend going back to
/test to add more tests
- If tests pass โ recommend
/document to prepare PR description
After /document:
- Remind to create DRAFT PR initially
- Remind about 2 dev + 1 QE approval requirement