Ship Current Branch
Assumes code is already committed and pushed. Handles: PR creation, CI monitoring, code review, security review, fixing all issues.
IMPORTANT: NEVER include Co-Authored-By, "Generated with Claude Code", or any Claude/AI attribution in commit messages, PR descriptions, or any other artifacts.
Phase 1: Create PR
- Determine the current branch:
git branch --show-current
- Check if a PR already exists:
gh pr list --head <branch> --json number,url
- If no PR exists, create one:
gh pr create --base dev --title "<concise title>" --body "<description>"
- Note the PR number.
Phase 2: CI Monitor
- Find the latest workflow run:
gh run list --branch <branch> --limit 1 --json status,conclusion,databaseId
- If the run is in progress, watch it:
gh run watch <id>
- If it failed:
- Get failed logs:
gh run view <id> --log-failed
- Diagnose and fix the issue.
git add, git commit, git push.
- Go back to step 1.
- If it succeeded, proceed.
Phase 3: Code Review
CRITICAL: You MUST use the Skill tool to invoke the built-in review skill.
- Merge dev into the current branch:
git fetch origin dev && git merge origin/dev
- If there are merge conflicts, resolve them, commit, and push.
- Call the Skill tool with
skill="review" to invoke the real built-in code review.
- After the review completes, fix ALL issues it identified.
- Do NOT defer ANY issues.
- Do NOT categorize issues as "low priority" to avoid work.
- You are an LLM. You have no time constraints. Fix everything.
- The ONLY reason to stop and escalate to the user is if a fix requires
a significant architectural change touching 5+ files outside the
current feature scope.
- After fixing, re-read all findings and confirm each one was addressed.
Phase 4: Security Review
CRITICAL: You MUST use the Skill tool to invoke the built-in security-review skill.
- Call the Skill tool with
skill="security-review" to invoke the real built-in security review.
- After the review completes, fix ALL issues it identified.
- Same rules as Phase 3: fix everything, defer nothing.
- After fixing, confirm all findings were addressed.
Phase 5: Final Commit & CI
If ANY fixes were made in Phases 3-4:
git add all changed files.
git commit -m "Fix code review and security review findings"
git push
- Re-run Phase 2 (CI Monitor).
Phase 6: Report (DO NOT MERGE)
You MUST NOT merge the PR. You MUST NOT run gh pr merge. The user reviews and merges.
- Summary of all changes made during the ship process
- Review findings and what was fixed
- Security review findings and what was fixed
- Confirmation: CI green, PR ready for user review
- PR URL
Source: KeplerOps/keplerops-template — distributed by TomeVault.
1---2name: ship-123description: Ship current branch — CI, code review, security review, fix all issues. Assumes code is already committed and pushed. Use when this capability is needed.4---56# Ship Current Branch78Assumes code is already committed and pushed. Handles: PR creation, CI monitoring, code review, security review, fixing all issues.910**IMPORTANT:** NEVER include Co-Authored-By, "Generated with Claude Code", or any Claude/AI attribution in commit messages, PR descriptions, or any other artifacts.1112## Phase 1: Create PR13141. Determine the current branch: `git branch --show-current`152. Check if a PR already exists: `gh pr list --head <branch> --json number,url`163. If no PR exists, create one:17 ```18 gh pr create --base dev --title "<concise title>" --body "<description>"19 ```204. Note the PR number.2122## Phase 2: CI Monitor23241. Find the latest workflow run: `gh run list --branch <branch> --limit 1 --json status,conclusion,databaseId`252. If the run is in progress, watch it: `gh run watch <id>`263. If it failed:27 - Get failed logs: `gh run view <id> --log-failed`28 - Diagnose and fix the issue.29 - `git add`, `git commit`, `git push`.30 - Go back to step 1.314. If it succeeded, proceed.3233## Phase 3: Code Review3435**CRITICAL: You MUST use the Skill tool to invoke the built-in review skill.**36371. Merge dev into the current branch: `git fetch origin dev && git merge origin/dev`382. If there are merge conflicts, resolve them, commit, and push.393. Call the Skill tool with `skill="review"` to invoke the real built-in code review.404. After the review completes, fix ALL issues it identified.41 - Do NOT defer ANY issues.42 - Do NOT categorize issues as "low priority" to avoid work.43 - You are an LLM. You have no time constraints. Fix everything.44 - The ONLY reason to stop and escalate to the user is if a fix requires45 a significant architectural change touching 5+ files outside the46 current feature scope.475. After fixing, re-read all findings and confirm each one was addressed.4849## Phase 4: Security Review5051**CRITICAL: You MUST use the Skill tool to invoke the built-in security-review skill.**52531. Call the Skill tool with `skill="security-review"` to invoke the real built-in security review.542. After the review completes, fix ALL issues it identified.55 - Same rules as Phase 3: fix everything, defer nothing.563. After fixing, confirm all findings were addressed.5758## Phase 5: Final Commit & CI5960If ANY fixes were made in Phases 3-4:611. `git add` all changed files.622. `git commit -m "Fix code review and security review findings"`633. `git push`644. Re-run Phase 2 (CI Monitor).6566## Phase 6: Report (DO NOT MERGE)6768**You MUST NOT merge the PR. You MUST NOT run `gh pr merge`. The user reviews and merges.**6970- Summary of all changes made during the ship process71- Review findings and what was fixed72- Security review findings and what was fixed73- Confirmation: CI green, PR ready for user review74- PR URL7576---77> Source: [KeplerOps/keplerops-template](https://github.com/KeplerOps/keplerops-template) — distributed by [TomeVault](https://tomevault.io).78<!-- tomevault:4.0:skill_md:2026-05-22 -->