Back to skills
SKILL.md
Ship
ASecurityComprehensive pre-deployment verification to ensure release readiness
- 7,588 stars
- 0 votes
- 0 copies
- 6 views
- Added September 3, 2026
Works with
Security analysis
96/100- Uses curl or wget to download content
npx -y skills add FlorianBruniaux/claude-code-ultimate-guide --skill ship --agent claude-codeAre you the author of Ship?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/florianbruniaux-ship-claude-code-ultimate-guide)---
name: ship
description: Comprehensive pre-deployment verification to ensure release readiness
argument-hint: "[--production | --quick | --target=staging]"
effort: medium
when_to_use: "Use before a production or staging deploy to run the readiness checklist. It reports only; it does not commit or push."
disable-model-invocation: true
---
# Ship skill - pre-deploy checklist
> [!WARNING]
> Claude Code reserves the name `ship`. Where the [built-in `/ship`](https://code.claude.com/docs/en/ship-command) is available, Claude Code does not load this skill, and typing `/ship` runs the built-in command, which can commit and push without a confirmation prompt. Before you install this checklist, rename it (the folder and the `name` field, for example `ship-checklist`), or set `CLAUDE_CODE_DISABLE_SHIP=1` (v2.1.331+) to turn off the built-in `/ship` and `/steward`. See [troubleshooting](https://code.claude.com/docs/en/ship-command-troubleshooting).
Comprehensive pre-deployment verification to ensure release readiness.
## Purpose
Run before every production deployment to verify:
- Code quality gates
- Test coverage
- Security checks
- Documentation updates
- Environment readiness
## Pre-deploy checklist
### 🔴 Blockers (must pass)
```bash
# One package manager, from the lockfile. A failing command never falls back to another one.
PM=npm
[ -f pnpm-lock.yaml ] && PM=pnpm
[ -f yarn.lock ] && PM=yarn
# 1. All tests passing
$PM test
echo "Tests exit code: $?"
# 2. No TypeScript/lint errors (npx only when the project defines no script)
if node -e 'process.exit(require("./package.json").scripts?.typecheck ? 0 : 1)'; then
$PM run typecheck
else
npx tsc --noEmit
fi
echo "Typecheck exit code: $?"
if node -e 'process.exit(require("./package.json").scripts?.lint ? 0 : 1)'; then
$PM run lint
else
npx eslint .
fi
echo "Lint exit code: $?"
# 3. Build succeeds
$PM run build
echo "Build exit code: $?"
# 4. No secrets in code. Lists file names only (-l): never print or quote matching values.
# A file that grep cannot read is reported on stderr: count it as not checked, not as clean.
grep -rliE '(api[_-]?key|secret|password|passwd|token)[a-z0-9_]*["'\'']?[[:space:]]*[=:][[:space:]]*["'\'']?[^"'\''[:space:]]{8,}' \
--include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" --include="*.json" \
--include="*.yaml" --include="*.yml" --include=".env" --include=".env.*" --include="*.env" \
--exclude=".env.example" --exclude-dir={node_modules,.git,dist,build} .
```
### 🟠 High priority (should pass)
```bash
# 5. Security audit
npm audit --audit-level=high 2>/dev/null || echo "Run manually: npm audit"
# 6. No console.log in production code
grep -rn "console\.log\|console\.debug" --include="*.ts" --include="*.js" --include="*.tsx" --include="*.jsx" src/ 2>/dev/null | grep -v "// allowed" | head -10
# 7. No TODO/FIXME in critical paths
grep -rn "TODO\|FIXME\|XXX\|HACK" --include="*.ts" --include="*.js" src/ 2>/dev/null | head -10
# 8. Database migrations ready
[ -d "prisma/migrations" ] && echo "Prisma migrations: $(ls prisma/migrations | wc -l) total"
[ -d "migrations" ] && echo "Migrations: $(ls migrations | wc -l) total"
```
### 🟡 Recommended (nice to have)
```bash
# 9. Documentation updated
git diff --name-only HEAD~5 | grep -E "README|CHANGELOG|docs/" | head -10
# 10. Version bumped
cat package.json | jq -r '.version' 2>/dev/null || echo "Check version manually"
# 11. Environment variables documented
[ -f ".env.example" ] && echo "✅ .env.example exists" || echo "⚠️ Missing .env.example"
```
## Output format
---
### 🚀 Ship readiness report
**Branch**: [current branch]
**Commit**: [HEAD short hash]
**Target**: [production/staging]
**Timestamp**: [date/time]
### Blockers (must fix before deploy)
| Check | Status | Details |
|-------|--------|---------|
| Tests | ✅/❌ | X passed, Y failed |
| TypeScript | ✅/❌ | X errors |
| Lint | ✅/❌ | X warnings, Y errors |
| Build | ✅/❌ | Success/Failed |
| Secrets | ✅/❌ | X potential leaks |
### High priority
| Check | Status | Action |
|-------|--------|--------|
| Security Audit | ⚠️/✅ | X vulnerabilities |
| Console Logs | ⚠️/✅ | X found in src/ |
| TODOs | ⚠️/✅ | X critical TODOs |
| Migrations | ⚠️/✅ | X pending |
### Recommended
| Check | Status | Note |
|-------|--------|------|
| Docs Updated | ⚠️/✅ | CHANGELOG updated |
| Version Bumped | ⚠️/✅ | Current: X.Y.Z |
| Env Documented | ⚠️/✅ | .env.example present |
### 📊 Summary
```
🔴 Blockers: X/5 passed
🟠 High: X/4 passed
🟡 Recommended: X/3 passed
─────────────────────────
Overall: [READY TO SHIP / NOT READY]
```
### 🎯 Action items
1. [Most critical fix needed]
2. [Second priority]
3. [Third priority]
---
## Environment-specific checks
### Production deploy
```bash
# Verify production env vars
[ -f ".env.production" ] && echo "Production env exists"
# Check for debug flags
grep -rn "DEBUG=true\|NODE_ENV=development" .env* 2>/dev/null
# Verify API endpoints point to production
grep -rn "localhost\|127\.0\.0\.1" --include="*.ts" --include="*.js" --include="*.json" src/ 2>/dev/null | grep -v test | head -5
```
### Staging deploy
```bash
# Staging-specific checks
[ -f ".env.staging" ] && echo "Staging env exists"
# Feature flags for staging
grep -rn "FEATURE_FLAG\|ENABLE_" .env* 2>/dev/null
```
## CI/CD integration
Add to your pipeline:
```yaml
# GitHub Actions example
ship-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ship checklist
run: |
npm ci
npm test
npm run typecheck
npm run lint
npm run build
npm audit --audit-level=high
```
## Post-deploy verification
After deployment, verify:
```bash
# 1. Health check
curl -s https://your-app.com/health | jq .
# 2. Version check
curl -s https://your-app.com/version | jq .
# 3. Smoke tests
npm run test:smoke 2>/dev/null || echo "Run smoke tests manually"
```
## Rollback preparation
Before shipping, ensure you can rollback:
```bash
# Note current production tag
git describe --tags --abbrev=0
# Verify rollback procedure exists
[ -f "docs/runbooks/rollback.md" ] && echo "✅ Rollback docs exist"
# Check database migration reversibility
# Prisma: prisma migrate diff
# Rails: rails db:rollback (dry-run)
```
## Usage
**Full checklist:**
```
/ship
```
**Production deploy:**
```
/ship --production
```
**Quick check (blockers only):**
```
/ship --quick
```
**With specific target:**
```
/ship --target=staging
```
## Tips
1. **Run early, run often**: Don't wait until deploy day
2. **Automate in CI**: Make blockers fail the pipeline
3. **Team agreement**: Define what's a blocker vs warning
4. **Document exceptions**: If skipping a check, note why
5. **Monitor after deploy**: Ship is not done until monitoring confirms success
## Related skills
- `/release-notes` - Generate changelog and announcements
- `/validate-changes` - LLM-based code review
- `/security` - Deep security audit
$ARGUMENTS
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.