Ship

From epicsagas/epic-harness · View interactive version

Ship is an AI agent skill from the GitHub repository epicsagas/epic-harness. Ship phase. Runs isolated integration test in a fresh worktree, creates a PR with full spec + audit report in the body, watches CI, and auto-fixes failures.

How to use this skill

Skill file

Ship — Ship It

CRITICAL: Run HARNESS_DIR=$(epic-harness path) first. NEVER use .harness/ in the project directory.

Process

Step 0: Prerequisites

Load the spec for PR content:

ls -t $HARNESS_DIR/specs/SPEC-*.md | head -1

Gate: audit must have passed. If no audit report exists, invoke the audit skill before continuing.

Step 1: Pre-ship Verification

1a. Isolated Integration Test

Launch an agent with isolation: "worktree" to verify in a clean environment:

Gate: If isolated test fails → STOP. "Fix with /go, then re-run /audit before shipping."

Step 2: Git Hygiene

Step 3: Create PR

gh pr create --title "<goal from spec>" --body "$(cat <<'EOF'
## Summary
<Goal from spec — what and why, not how>

## Spec
- Spec ID: SPEC-{timestamp}
- Requirements: R1, R2, ...

## Changes
<bullet list of key changes>

## Acceptance Criteria Verified
- AC1: ✅
- AC2: ✅

## Audit Report
<paste full Audit Report>

## Test Plan
- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Manual verification done
EOF
)"

Register the PR in the merge-outcome ledger (orbit pipelines are picked up

automatically; standalone ships need this one-liner):

epic-harness evolve record-pr <PR_URL> [--goal <goal_slug>] [--branch <branch>]

Step 4: CI Verification

gh pr checks <PR_NUMBER> --json name,state

```bash

HEAD=$(gh pr view <PR_NUMBER> --json headRefOid --jq .headRefOid)

gh run list --commit "$HEAD" --json databaseId,name,status,conclusion,url

```

Step 5: Report

## Ship Report
- Spec: SPEC-{timestamp} ({goal_slug})
- PR: <URL>
- CI: [PASS/FAIL/BLOCKED/N/A]
- Ready to merge: [YES/NO]
- Action needed: <if any>

If inside /orbit: Return control to orbit — it will run evolve automatically.

If standalone: Suggest "Run /evolve to analyze this session."

Anti-Rationalization

| Excuse | Rebuttal | What to do instead |

|--------|----------|-------------------|

| "CI will catch it" | CI doesn't catch everything | Run isolated test locally first |

| "The PR description doesn't matter" | It's the permanent record of why | Include spec + audit report |

| "I'll merge without CI" | CI is a safety net | Wait for CI, fix failures |

Evidence Required

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.