Skip to content
Skills Library
Programming · Automation

ship

/ship

Full deployment pipeline — tests, coverage audit, CHANGELOG generation, bisectable commits, and PR creation. Use when a change is verified and ready to ship as a pull request.

Licence
MIT
Last repository change
21.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Full deployment pipeline — tests, coverage audit, CHANGELOG generation, bisectable commits, and PR creation. Use when a change is verified and ready to ship as a pull request.

Original author description

Full deployment pipeline — tests, coverage audit, CHANGELOG generation, bisectable commits, and PR creation. Use when a change is verified and ready to ship as a pull request.

How it works

  1. Core Rule
  2. When to Use
  3. Process
  4. Output Format
  5. Run Mode
  6. Common Rationalizations
  7. Notes
Original SKILL.md headings · 179 lines, 1,218 words
SKILL.md preview
---
name: ship
description: Full deployment pipeline — tests, coverage audit, CHANGELOG generation, bisectable commits, and PR creation. Use when a change is verified and ready to ship as a pull request.
user-invocable: true
---

# Ship

## Core Rule

Block deployment when CHANGELOG, tests, or coverage gates fail. Preserve rollback capability at every step. Never ship from a dirty working tree.

## When to Use

Invoke with `/ship` when:

- Feature is complete and ready for merge
- All local verification has passed
- You want an automated ship pipeline instead of manual steps
- Preparing a clean, bisectable PR from a feature branch

## Process

### Phase 1: Pre-flight Checks

Before anything else, verify readiness:

1. **Working tree clean** — no uncommitted changes (stash or commit first)
2. **On a feature branch** — never ship directly from main/master
3. **Base branch up to date** — rebase or merge latest main
4. **Run full verification suite** in order. If `.claude/commands.json` exists, use the **declared** commands (`typecheck`, `lint`, `test`, `build`) verbatim — that file is the project's single source of truth, the same commands the quality gate runs. A key that is **absent** → fall back to guessing. A key set to `""` → the project declares no such check: report that step as *not applicable* — never as passed, and don't substitute a guessed command. If the file is invalid (`./scripts/doctor.sh` names the problem), stop and fix it first:
   - Typecheck — declared `typecheck`, else `tsc` / `mypy` / `go vet` / `cargo check`
   - Lint — declared `lint`, else the project's configured linter
   - Tests — declared `test` (full suite, not just changed files)
   - Build — declared `build`, else the project's production build

If any check fails, stop and report. Do not proceed with a failing pipeline.

### Phase 2: Coverage Audit

Trace new/changed code paths and verify test coverage:

1. **Identify changed files** — `git diff main...HEAD --name-only`
2. **Trace new code paths** — new functions, endpoints, event handlers, UI flows
3. **Check each path has tests** — search for test files that exercise the new code
4. **Report untested paths** — ask user whether to write tests or skip

```markdown
### Coverage Audit
| New Code Path | Test Coverage | Status |
|---------------|--------------|--------|
| POST /api/users | test/api/users.test.ts:45 | Covered |
| handleUpload() | — | UNTESTED |
```

If critical paths are untested, ask the user: "Write tests now or ship without?"

### Phase 3: Commit Hygiene

Ensure commits are clean and bisectable:

1. **Review commit history** — `git log main..HEAD --oneline`
2. **Check each commit**:
   - Does it have a conventional message? (`feat:`, `fix:`, `refactor:`, etc.)
   - Is it atomic? (one logical change per commit)
   - Does each commit build independently?
3. **If messy** — suggest interactive rebase to squash/reorder (with user approval)
4. **Never force-push** without explicit user consent

### Phase 4: CHANGELOG Generation

Generate or update CHANGELOG from commit history:

1. **Read existing CHANGELOG.md** (if present)
2. **Categorize commits** since last release:
   - Features (`feat:`)
   - Bug Fixes (`fix:`)
   - Breaking Changes (`BREAKING CHANGE:`)
   - Other (refactor, perf, docs)
3. **Draft entry** with human-readable descriptions (not raw commit messages)
4. **Present to user** for review before writing

```markdown
## [Unreleased]

### Features
- Add user search with full-text filtering (#45)

### Bug Fixes
- Fix timezone handling in export CSV (#42)
```

### Phase 5: Version Bump (if applicable)

If the project uses semantic versioning:

- **PATCH** — bug fixes only → auto-suggest
- **MINOR** — new features, no breaking changes → auto-suggest
- **MAJOR** — breaking changes → always ask user
- Update `VERSION`, `package.json`, `pyproject.toml`, or equivalent

### Phase 6: PR Creation

Create a clean pull request:

1. **Push branch** to remote (with `-u` flag)
2. **Generate PR title** — short, descriptive (<70 chars)
3. **Generate PR body**:
   - Summary of changes (from CHANGELOG)
   - Test plan (what was verified) — cite the verification ledger via `/verification-status`: the auto-gate runs, the smoke-test result, and the silent-failure tally `(processed/failed/skipped)`
   - Coverage audit results
   - Breaking changes (if any)
   - Screenshots (if UI changes, ask user to attach)
4. **Create PR** via `gh pr create`
5. **Report PR URL** to user

## Output Format

```markdown
# Ship Report

## Pre-flight
- [x] Clean working tree
- [x] Feature branch: feat/user-search
- [x] Base branch up to date
- [x] Typecheck: passed
- [x] Lint: passed
- [x] Tests: 142 passed, 0 failed
- [x] Build: succeeded

## Coverage Audit
| Path | Coverage | Status |
|------|----------|--------|
| ... | ... | ... |

## Commits (N total)
1. feat: add search endpoint
2. feat: add search UI component
3. test: add search integration tests

## CHANGELOG
[Draft entry]

## PR
- URL: https://github.com/org/repo/pull/123
- Title: feat: add user search
- Base: main ← feat/user-search
```

## Run Mode

This skill supports interactive (default) and headless modes — see the canonical contract in `.claude/skills/_shared/blocks/mode-detection.md`.

Headless detection: presence of `mode:headless` in arguments.

| Decision point | Interactive default | Headless default |
|---|---|---|
| **Untested critical path** ("Write tests now or ship without?") | Ask the user | **Fail the run.** Print the untested paths and exit non-zero. Headless ship never ships without coverage on critical paths — it cannot accept the risk on the user's behalf. |
| **Messy commit history** (suggest interactive rebase) | Suggest, await approval | Skip rebase entirely — ship the commits as-is. Note "commit history not cleaned" in the report. |
| **CHANGELOG entry** (present draft for review) | Show and wait for approval | Write the generated entry without prompting. Use the heuristic categorization (feat/fix/refactor/etc.) from commit messages — if a commit can't be categorized, list under "Other". |
| **Version bump** (PATCH/MINOR/MAJOR) | Auto-suggest PATCH/MINOR; always ask for MAJOR | Apply PATCH/MINOR silently. **If any commit message contains `BREAKING CHANGE:` or `!:`, fail the run** — major bumps must not be silent. |
| **Screenshots for PR body** (ask user to attach) | Ask | Skip. Add a "Screenshots: pending" note in the PR body. |
| **PR creation** | Confirm before pushing | Push and create PR without prompt. Report the URL. |
| **Force push** | Never without explicit consent | Never (this rule already applies in both modes) |

Headless ship is suitable for trusted CI pipelines that have already validated typecheck/lint/test/build outside the skill. It is **not** suitable for situations where a human should sanity-check the change before publication.

## Common Rationalizations

| Rationalization | Reality |
|---|---|
| "Small change, no review needed" | Small changes cause production outages too. Every change gets the same pipeline. |
| "I'll add tests after merging" | Post-merge tests never get written. Untested code stays untested. |
| "CI will catch it" | CI catches what tests check. No tests = nothing to catch. CI is not magic. |
| "It's just a config change" | Config changes can take down production faster than code changes. Verify. |
| "The deadline is tight, skip coverage audit" | Shipping broken code creates more work than the time saved by skipping checks. |

## Notes

- This skill automates the ship process but always asks for user confirmation on judgment calls (version bumps, untested paths, commit squashing)
- Auto-fix mechanical issues (commit message typos), ask for judgment calls (MAJOR version bump)
- If the project has CI/CD, this skill prepares the PR — CI handles the rest
- Never force-push or merge without explicit user approval

Versions

RepositoryScoreLicence
This page · tansuasici/claude-code-kit100MIT
rjmurillo/ai-agents100MIT
rjmurillo/ai-agents100MIT
namedtoaster/the-last-mile100MIT
rjmurillo/ai-agents100MIT
ericrisco/rsc-harness100MIT
zahidakhyar/skills100MIT
NolwennD/gabier100Apache-2.0
mgiovani/cc-arsenal100MIT

Database snapshot: 13.11.2026 · package version 5070e8633446 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 96ship-feature
    Take an Order Hub change from a clean branch to a reviewed pull request (branch naming, checks, conventional commits, PR description). Use when the user says "ship it", "open a PR", "commit this", or finishes a feature.
  • 100update-changelog
    Inspect commits since last release and compose changelog entries. Use when the user wants to update their changelog.
  • 100changelog-automation
    Automate changelog generation from commits, PRs, and releases following Keep a Changelog format. Use when setting up release workflows, generating release notes, or standardizing commit conventions.
  • 100changelog-automation
    Automate changelog generation from commits, PRs, and releases following Keep a Changelog format. Use when setting up release workflows, generating release notes, or standardizing commit conventions.
  • 100changelog
    Maintains the IdeaVim changelog (CHANGES.md). Use when updating the changelog, documenting releases, or reviewing commits/PRs for changelog entries.
  • 100relay-ship
    End-to-end ship workflow — merge base, run tests, review diff, bump version, commit, push, create PR. Use when asked to "ship", "push to main", "create a PR", "get this merged", or "deploy this branch".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.