Skip to content

Shipping Code

Full ship pipeline: merge base → test → coverage → review → version bump → commit → PR.

Best for: Active developers
Time estimate: 5-10 minutes
Skills used: mk:ship, mk:review, mk:document-release
Agents involved: shipper, reviewer, security (if auth-related), documenter

Overview

/mk:ship is a 12-step automated pipeline. You run one command, and the next thing you see is a PR URL. It handles: merging the base branch, running tests, auditing coverage, reviewing code (with adversarial red-teaming), bumping version, generating changelog, linking GitHub issues, creating conventional commit, pushing, and creating the PR.

Step-by-step guide

Step 1: Ship

bash
/mk:ship                      # auto-detect: feature/* → official, dev/* → beta
/mk:ship official              # explicitly target main/master
/mk:ship beta                  # target dev/beta (lighter pipeline)
/mk:ship --dry-run             # preview each step without executing

Step 2: Watch the pipeline

Here's what each step does and which agent handles it:

StepAgent/SkillWhat happens
Pre-flightshipperDetects base branch, verifies feature branch, checks review dashboard
Merge baseshippergit fetch origin main && git merge origin/main — auto-resolves lockfile conflicts
Run teststester (subagent)Full test suite with failure triage (your fault vs pre-existing)
Coverage auditmk:review (partial)Traces codepaths, generates diagram, writes tests for gaps
Plan auditmk:review (partial)Cross-references plan items against diff — flags missing implementations
Pre-landing reviewreviewerTwo-pass checklist: critical first, informational second
Adversarial reviewmk:reviewAuto-scaled by diff size (cross-model red-teaming)
Version bumpshipperAuto-detects version file, bumps patch/minor. Beta: 1.2.4-beta.1
ChangelogshipperAuto-generates from git log, categorized: Added/Changed/Fixed/Removed
Issue linkingshipperSearches GitHub issues by branch keywords, links in PR body
Commit + PushshipperBisectable conventional commits → git push -u origin feature/...
PR creationshippergh pr create with structured body, linked issues, rollback docs
Post-ship docsdocumenter (mk:document-release)Syncs README, ARCHITECTURE, CHANGELOG, TODOS

Step 3: See the result

✓ Pre-flight: branch feature/cart, 3 commits, +120/-15 lines (mode: official)
✓ Issues: linked #42, created #48
✓ Merged: origin/main (2 commits merged)
✓ Tests: 58 passed, 0 failed
✓ Coverage: 91% of new paths
✓ Review: 0 critical, 1 informational
✓ Adversarial: pass (medium tier, 120 lines)
✓ Version: 1.3.1 → 1.3.2
✓ Changelog: updated (1 Added, 1 Fixed)
✓ Committed: feat(cart): add shopping cart with quantity management
✓ Pushed: origin/feature/cart
✓ PR: https://github.com/org/repo/pull/45 (linked: #42, #48)

Ship modes compared

ModeTargetAdversarial reviewVersion formatDocs update
officialmain/masterFull (auto-scaled)1.2.3Yes
betadev/betaSkipped1.2.3-beta.1Skipped
--dry-run(preview)(shows plan)(shows prediction)(shows what would update)

Common issues

IssueCauseFix
Pre-ship checks failTests, lint, or types have errorsBack to developer — fix before re-shipping
Merge conflictsBase branch divergedResolve conflicts manually, then re-run
CI fails on PREnvironment differenceDiagnose CI logs, fix, push again
No gh CLIGitHub CLI not installedInstall gh, or push manually and create PR in browser

Jira Integration

After shipping, update the Jira ticket status to reflect deployment:

bash
/mk:jira-lifecycle transition TICKET-123 "Deployed"

Future: mk:ship will do this automatically as part of the ship pipeline.

Next workflow

Security Audit — deep security assessment

Released under the MIT License.