Home / Commands / uditgoenka/autoresearch

autoresearch_ship

Ship anything through 8 phases: checklist, dry-run, deploy, verify

commandLicense: MIT Source: uditgoenka/autoresearch

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/autoresearch-ship.md https://raw.githubusercontent.com/uditgoenka/autoresearch/HEAD/.opencode/commands/autoresearch_ship.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/autoresearch-ship.md https://raw.githubusercontent.com/uditgoenka/autoresearch/HEAD/.opencode/commands/autoresearch_ship.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source β†—

---
name: autoresearch_ship
description: "Ship anything through 8 phases: checklist, dry-run, deploy, verify"
argument-hint: "[Target: <what>] [--type <type>] [--dry-run] [--auto] [--force] [--rollback] [--checklist-only] [--monitor N]"
disable-model-invocation: true
---

EXECUTE IMMEDIATELY.

## Parse Arguments

Extract from $ARGUMENTS:
- `Target:` or `--target` β€” what to ship (path, PR, artifact, deployment)
- `--type <type>` β€” override auto-detection: code-pr, code-release, deployment, content, docs, package, config
- `--dry-run` β€” validate everything but don't ship
- `--auto` β€” auto-approve if no errors found
- `--force` β€” skip non-critical items (blockers still enforced)
- `--rollback` β€” undo last ship action
- `--monitor N` β€” post-ship monitoring for N minutes
- `--checklist-only` β€” only generate checklist, don't execute
- `--chain`, `--<subcommand>`

Remaining text = description of what to ship.

## Setup (if Target or Type unclear)

1. Auto-detect ship type from context:
   - Has uncommitted changes or PR β†’ code-pr
   - Has version bump / changelog β†’ code-release
   - Has Dockerfile / deploy config β†’ deployment
   - Has markdown / content files β†’ content
   - Has package.json version change β†’ package
2. If still unclear β†’ question (single batch):
   Q1 (What): "What are you shipping?" β€” code PR, release, deployment, content, docs, package
   Q2 (Target): "Specific target?" β€” current branch, specific PR, specific path
   Q3 (Mode): "How to ship?" β€” full workflow, dry-run only, checklist only
If all clear β†’ skip.

## Phase 1: Identify

- Determine ship type (auto-detected or --type override)
- Identify target artifact(s)
- Map to domain-specific checklist

## Phase 2: Inventory

Gather everything that will be shipped:
- Files changed (git diff)
- Dependencies affected
- Config changes
- Migration files
- Breaking changes

## Phase 3: Checklist

Generate domain-specific checklist:

**Code PR:** tests pass, types check, lint clean, no secrets, PR description, reviewers assigned
**Release:** version bumped, changelog updated, migration tested, rollback plan
**Deployment:** env vars set, health checks configured, rollback ready, monitoring active
**Content:** links valid, images optimized, SEO metadata, spell check
**Package:** version bumped, README updated, breaking changes documented, CI green

If `--checklist-only` β†’ output checklist and stop.

## Phase 4: Prepare

Execute pre-ship tasks:
- Run test suite
- Run type checker
- Run linter
- Check for secrets in diff
- Validate configs
- Flag blockers (must-fix) vs warnings (can-ship-with)

If blockers found β†’ STOP, report blockers, ask user to fix.

## Phase 5: Dry-Run

If `--dry-run` or always before actual ship:
- Simulate the ship action without executing
- Report what WOULD happen
- If `--dry-run` β†’ stop here

## Phase 6: Ship

**REQUIRES EXPLICIT USER APPROVAL** (unless --auto with zero errors).

Execute the ship action:
- Code PR: create/update PR, request reviewers
- Release: tag, build, publish
- Deployment: deploy to target environment
- Content: publish to CMS/platform

## Phase 7: Verify

Post-ship verification:
- Confirm artifact is live/accessible
- Run smoke tests if available
- Check monitoring for errors
- If `--monitor N` β†’ watch for N minutes

## Phase 8: Log

Create output directory: `autoresearch/ship-{YYMMDD}-{HHMM}/`
Write:
- `checklist.md` β€” completed checklist with pass/fail per item
- `summary.md` β€” what was shipped, verification results
- `ship-log.tsv` β€” phase-by-phase log

## Rollback

If `--rollback`:
- Identify last ship action from most recent ship log
- Reverse it (revert PR, unpublish, rollback deployment)
- Verify rollback succeeded

## Chain Handoff

Write handoff.json: version "2.1.0", source "ship", timestamp, status (COMPLETE|DRY_RUN|ROLLBACK|ERROR), findings = blockers/warnings found during prep.
Invoke next target in --chain order via the `autoresearch` skill's Subcommand routing.