Complete the full safe shipping workflow for the current changes.
jj workspace note: You may be in a non-default jj workspace with no
.gitdirectory. Ifghcommands fail, setGIT_DIRto point to the default workspace:GIT_DIR=/path/to/default/.git gh ...
Prerequisites: This workflow uses /analyze, /push-pr, /code-review-jj:code-review, and /watch-ci-merge. Ensure these are available.
Phase 1: Pre-Push Analysis
- •Check for changes:
jj status— if no changes, report and stop - •Run
/analyzeto check type safety, bugs, and code simplification - •Address all critical and high severity issues found
- •Re-run
/analyze(max 3 iterations) - •If critical/high issues persist after 3 rounds, stop and ask for guidance
- •Track any medium and low priority suggestions for later
Phase 2: Push and Create PR
- •Run
/push-prto push changes and create a pull request - •If PR already exists, just push the updated changes
Phase 3: Code Review
- •Run
/code-review-jj:code-reviewon the PR - •Also fetch Copilot/bot review comments:
gh api repos/{owner}/{repo}/pulls/{number}/comments - •Address all critical and high severity issues from either source
- •Re-run code review (max 3 iterations)
- •If critical/high issues persist after 3 rounds, stop and ask for guidance
- •Track any medium and low priority suggestions for later
Phase 4: CI and Merge
- •Run
/watch-ci-mergeto monitor CI, fix failures, and merge - •This handles: CI monitoring, failure fixing, rebasing, and merging
- •If blocked,
/watch-ci-mergewill stop and report
Phase 5: Track Deferred Issues
Only if there are deferred items, create a GitHub issue after merging:
bash
gh issue create --title "Follow-up: [brief description] cleanup" --body "..."
The issue body should include:
- •Source of each suggestion (analyze, code-reviewer, Copilot)
- •Link to the original PR comment if applicable (e.g.,
https://github.com/{owner}/{repo}/pull/{number}#discussion_r{id}) - •File and line number where applicable
- •The specific suggestion or improvement
- •Priority level (medium/low)
Important:
- •Do NOT skip the analyze loop — quality gates matter
- •Do NOT merge with unaddressed critical/high issues
- •DO track all deferred items — nothing should be forgotten
- •If blocked at any phase, report progress and stop
Done when: PR is merged and any deferred issues are tracked.