Arguments
The user invoked this with: $ARGUMENTS
Parse the PR number from $ARGUMENTS. If no number is given, use the PR associated with the current branch:
gh pr view --json number -q .number
If no PR exists, tell the user and stop.
Instructions
Fetch the current PR metadata:
gh pr view <N> --json title,number,urlSpin up all four agents in parallel:
agent-change-summarizer— produces## Summaryand## Componentsagent-security-auditor— produces## Securityagent-test-planner— produces## Test planagent-sdet— writes any missingtests/**/test-*.shfiles; returns a brief summary (not a PR body section)
Assemble the final PR body in this order:
## Summary <from agent-change-summarizer> ## Components <from agent-change-summarizer, omit if empty> ## Security <from agent-security-auditor> ## Test plan <from agent-test-planner> 🤖 Generated with [Claude Code](https://claude.com/claude-code)Update the PR:
gh pr edit <N> --body "..."Output the PR URL.