review-and-ship ยท diff
git:20260217.b21ab16 to git:20260430.bca6129
10 added, 7 removed. Audit A to A.
---
name: review-and-ship
- description: Run a structured review, close key issues, and ship changes via PR
+ description: Review the current branch for bugs, intent fit, and test coverage; run or write tests; commit focused work; open or update a PR.
---
# Review and ship
## Trigger
- Reviewing changes before shipping. Close key issues and open/update PR.
+ Reviewing changes before shipping. Close key issues, verify behavior, and open or update a PR.
## Workflow
- 1. Review diff against base branch and identify behavior-impacting risks.
- 2. Run or update tests for changed behavior.
- 3. Fix critical issues before finalizing.
- 4. Commit selective files with a concise message.
- 5. Push branch and open or update a PR.
+ 1. Gather context: diff against base branch, uncommitted changes, recent commits, changed files, and user intent from recent relevant chats if useful.
+ 2. Run targeted tests for changed behavior. If no focused tests exist, decide whether to add them or document the gap.
+ 3. Review for correctness, regressions, security, and intent fit. Use parallel subagents for larger diffs.
+ 4. Fix critical issues before finalizing and re-run affected tests.
+ 5. Commit selective files with a concise message.
+ 6. Push branch and open or update a PR.
## Suggested Checks
```bash
git fetch origin main
git diff origin/main...HEAD
git status
+ gh pr checks --json name,bucket,state,workflow,link
```
## Guardrails
- Prioritize correctness, security, and regressions over style-only comments.
- Keep commits focused and avoid unrelated file changes.
- If pre-commit checks fail, fix the issues rather than bypassing hooks.
+ - Use `gh pr checks` instead of GitHub Actions-only commands when judging PR readiness.
## Output
- Findings summary (critical, warning, note)
- Tests run and outcomes
- PR URL