Phase 12c: Domain-aware /review-pr routing + domain label enforcement #101
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom#101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
plan-pal-e-agency→ Phase 12 (Agent Specialization) → Phase 12c (Domain label routing)Repo
forgejo_admin/claude-customUser Story
As Betty Sue
I want
/review-prto automatically route to the correct domain-expert QA agentSo that I don't have to manually remember which QA agent to spawn for each domain
Context
Phase 12b deployed 3 domain-specialized QA agents:
frontend-qa,dev-qa,devops-qa. Domain labels (domain:frontend,domain:backend,domain:devops) are deployed across all 36 Forgejo repos.The current
/review-prskill hascontext: fork+agent: qawhich statically routes to the now-deprecated generalist QA agent. This needs to become a smart router that:DORA Elite principle: if the system already has the data (domain label), the system makes the routing decision. No manual agent selection.
File Targets
Files to modify:
skills/review-pr/SKILL.md— Removecontext: fork,agent: qa, anddisable-model-invocation: true. Replace with model-invoked smart routing instructions that:mcp__forgejo__review_prto read the bodyCloses #Nin PR bodydomain:frontend→ spawnfrontend-qaagentdomain:backend→ spawndev-qaagentdomain:devops→ spawndevops-qaagentFiles to create:
hooks/check-domain-label.sh— PreToolUse hook onmcp__forgejo__create_issuethat warns (not blocks) when nodomain:label is mentioned in the issue creation context. This is a soft reminder, not hard enforcement — some issues (docs-only) may not need a domain label.Files NOT to touch:
agents/frontend-qa.md,agents/dev-qa.md,agents/devops-qa.md— already deployed in 12bhooks/check-issue-template.sh— existing hook, don't modifyAcceptance Criteria
/review-pr owner/repo#Nreads the PR, finds the parent issue, reads domain label, spawns the correct QA agent/review-prwith no domain label on the issue stops and tells the user to apply a domain labeldomain:frontendroutes tofrontend-qadomain:backendroutes todev-qadomain:devopsroutes todevops-qacheck-domain-label.shhook exists and warns on issue creation without domain contextTest Expectations
Closes #N, multipleClosesrefs, no domain labelConstraints
argument-hint: "[owner/repo#pr-number]"so the user knows the formatChecklist
Closes: n/a (Betty Sue will close after merge + deploy verification)
Related
plan-pal-e-agency— parent planphase-pal-e-agency-12-agent-specialization— phase note