원클릭으로
controller
// Orchestrates the Quay bug-fix workflow through 9 phases with confidence-based gating. Reads confidence from phase artifacts to advance automatically, post JIRA comments, or escalate to the user.
// Orchestrates the Quay bug-fix workflow through 9 phases with confidence-based gating. Reads confidence from phase artifacts to advance automatically, post JIRA comments, or escalate to the user.
| name | controller |
| description | Orchestrates the Quay bug-fix workflow through 9 phases with confidence-based gating. Reads confidence from phase artifacts to advance automatically, post JIRA comments, or escalate to the user. |
| allowed-tools | ["Bash(bash .claude/scripts/session-setup.sh)","Bash(bash .claude/scripts/jira-ops.sh *)","Bash(bash .claude/scripts/tick-state.sh *)","Bash(bash .claude/scripts/format-and-lint.sh *)","Bash(bash .claude/scripts/poll-pr.sh *)","Bash(bash .claude/scripts/validate-pr-title.sh *)","Bash(bash .claude/scripts/validate-commit-msg.sh *)","Bash(bash .claude/scripts/check-ci.sh *)","Bash(git *)","Bash(gh *)","Bash(make *)","Bash(pytest *)","Bash(python *)","Bash(pre-commit *)","Bash(alembic *)","Bash(npm *)","Bash(npx *)","Bash(docker *)","Bash(podman *)","Bash(curl *)","Bash(cat *)","Bash(echo *)","Bash(find *)","Bash(ls *)","Read","Write","Edit","Glob","Grep","Agent","AskUserQuestion","TodoWrite","CronCreate","CronDelete","CronList"] |
You manage a 9-phase bug-fix workflow with confidence-based gating. After each phase, read the confidence assessment from the phase artifact and use it to decide whether to advance, comment, or escalate.
On first run, ensure Lola plugins are installed:
bash .claude/scripts/session-setup.sh
Assess — the assess skill
Read the bug report, summarize understanding, identify gaps, propose a plan.
Reproduce — the reproduce skill
Confirm the bug exists by reproducing it in a controlled environment.
Diagnose — the diagnose skill
Trace the root cause through code analysis, git history, and hypothesis testing.
Fix — the /dev:code skill (from dev plugin)
Read the root cause analysis, create a feature branch, then implement
the minimal fix using /dev:code. Write implementation notes afterward.
Test — the test skill
Write regression tests, run the full suite, and verify the fix holds.
Review — the review skill
Critically evaluate the fix and tests — look for gaps, regressions, and missed edge cases.
Document — the document skill
Create release notes, changelog entries, JIRA updates, and PR description.
PR — the /dev:pr skill (from dev plugin), then /dev:poll
Create a pull request using /dev:pr, then start CI polling with
/dev:poll <PR#>.
Summary — the summary skill
Scan all artifacts and present a synthesized summary.
Each phase skill writes a ## Confidence Assessment section at the bottom
of its artifact:
## Confidence Assessment
- **Level**: high | medium | low
- **Score**: <0-100 integer>
- **Score rationale**: <1-2 sentences>
- **Open questions**: <bullet list, or "None">
After each phase completes, read the confidence level from the artifact:
| Confidence | Threshold | Action |
|---|---|---|
| High | >=90% | Advance to next phase silently |
| Medium | 70-89% | Post JIRA comment with findings and open questions, then advance |
| Low | <70% | Post JIRA comment, then stop and escalate via AskUserQuestion |
When confidence is medium or low, post a structured comment:
bash .claude/scripts/jira-ops.sh comment <TICKET_KEY> "<comment_text>"
Format the comment as:
[Phase: <phase_name>] Automated Analysis Update
Confidence: <Level> (Score: <score>/100)
Findings:
- <key finding 1>
- <key finding 2>
Open Questions:
- <question 1>
- <question 2>
Next: <what the agent will do next, or "Stopping for human input">
The controller needs a JIRA ticket key to post comments. The ticket key comes from:
If no ticket key is available, skip JIRA comments entirely and use
AskUserQuestion for medium-confidence escalations too.
After each phase, log the natural next step. These are informational — the agent advances automatically based on confidence, not user choice.
These conditions always trigger escalation via AskUserQuestion,
regardless of the phase confidence level:
When the user provides a bug report, issue URL, or JIRA ticket:
If the user invokes a specific skill directly, execute that phase — don't force them through earlier phases.
Understand a Quay bug report from JIRA or GitHub. Fetches ticket details, checks for existing work, classifies as UI vs backend, and proposes an investigation plan. No code changes.
Root cause analysis for a Quay bug. Traces code paths through Quay subsystems, analyzes git history, forms and tests hypotheses, and enumerates complete state space.
Create comprehensive documentation for a Quay bug fix: JIRA ticket update, release notes, changelog entry, PR description, and team communication.
Systematically reproduce a Quay bug using project-specific tooling. Documents environment, reproduction steps, and observable behavior.
Critically evaluate a bug fix and its tests. Forms a verdict (inadequate / tests incomplete / solid) and recommends next steps.
Verify a bug fix with comprehensive testing using Quay's test infrastructure. Creates regression tests, runs the full suite, and documents results.