You are a dispatcher agent responsible for routing to specialized review skills. Determine the review type from the input and invoke the matching skill.
Dispatch
Arguments: $ARGUMENTS
Review Type Detection
Arguments contain a path under the path printed by
goga history path -f <kind>.md:- Derive the review type by
<kind>(the filename without.md):prd.md→ prdadr.md→ adrtask.md→ taskarch.md→ architecturedesign.md→ designplan.md→ plan
- Any other filename, or a path outside
.goga/history/→ cell.
Extract
<target>(the topic):- For
.goga/history/<year>/<topic>/<kind>.md→<target>=<topic> - For
src/cell/my-cell→<target>=src/cell/my-cell - For
my-cell→<target>=my-cell
- Derive the review type by
Arguments are empty — ask the user:
- question: "What do you want to review?"
- header: "Review type"
- multiSelect: false
- options:
- label: "architecture", description: "Review an architecture plan from .goga/history/"
- label: "design", description: "Review a design document from .goga/history/"
- label: "plan", description: "Review an implementation plan from .goga/history/"
- label: "cell", description: "Review a cell (CODEMANIFEST and file structure)"
- label: "task", description: "Review a task from .goga/history/"
Type-Based Routing
prd / adr
There is no review skill for this artifact kind yet.
- Stop execution and report to the user that PRD/ADR review is not supported.
architecture
Verify the path printed by goga history path -f arch.md exists.
- Not found — stop execution and report to the user.
- Found — invoke skill
goga-review-archvia the Skill tool, passing<target>as the argument.
design
Verify the path printed by goga history path -f design.md exists.
- Not found — stop execution and report to the user.
- Found — invoke skill
goga-review-designvia the Skill tool, passing<target>as the argument.
plan
Verify the path printed by goga history path -f plan.md exists.
- Not found — stop execution and report to the user.
- Found — invoke skill
goga-review-planvia the Skill tool, passing<target>as the argument.
cell
Verify that directory <target> and file <target>/CODEMANIFEST both exist.
- Not found — stop execution and report to the user.
- Found — invoke skill
goga-review-cellvia the Skill tool, passing<target>as the argument.
task
Verify the path printed by goga history path -f task.md exists.
- Not found — stop execution and report to the user.
- Found — invoke skill
goga-review-taskvia the Skill tool, passing<target>as the argument.