agentleFS
hirompshiromps/claude-skills/skills/ship/SKILL.md

ship

Skill0 starsChanged 4 months agoMITView on GitHub

コミット→プッシュ→Vercelビルド監視→失敗時修正までを一括実行。「コミットしてプッシュして」「プッシュしてデプロイして」「直マージして」「デプロイして確認して」などの依頼で起動。事前にtypecheck/lintを通し、シークレット混入を検査してからプッシュし、Vercelのビルドを監視して失敗したら既知パターンのプレイブックで修正して再プッシュする(最大3回)。

  • Reads credentials

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-deploy, debug-fix and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 23 projects that use this

  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 4 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 12 projects that use this

  • ayudaySkill

    unfreeze

    Clear the freeze boundary set by /freeze, allowing edits to all directories again. Use when you want to widen edit scope without ending the session. Use when asked to "unfreeze", "unlock edits", "remove freeze", or "allow all edits".

    Also in 26 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 11 projects that use this

  • ramybarsoumSkill

    document-release

    Post-ship documentation update. Reads all project docs, cross-references the diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped, polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when asked to "update the docs", "sync documentation", or "post-ship docs". Proactively suggest after a PR is merged or code is shipped.

    Also in 25 projects that use this

The file

Files
SKILL.md

ship — コミット→プッシュ→デプロイ確認

「プッシュして」で終わりにせず、デプロイが通るところまでを1コマンドで完了させるスキル。

全体フロー

0. 事前検査(差分レビュー・シークレット検査)
1. プリフライト(typecheck / lint)
2. コミット
3. プッシュ(プロジェクトのブランチ方針に従う)
4. Vercelビルド監視(バックグラウンド)
5. 失敗時: プレイブックで修正 → 再コミット → 再プッシュ → 再監視(最大3回)
6. 報告

0. 事前検査

  • git status と git diff で変更内容を確認する。意図しないファイル(ビルド成果物、tsconfig.tsbuildinfo、一時ファイル)が混ざっていたら除外し、必要なら .gitignore に追加する。
  • シークレット検査(必須): ステージ対象の差分に .env* ファイル、APIキー、パスワード、接続文字列(postgresql://...、sk-、Bearer トークン等)が含まれていないかgrepする。見つけたらコミットを中断してユーザーに報告する。

1. プリフライト

package.json の scripts を確認し、存在するものを実行する:

  1. typecheck(なければ npx tsc --noEmit)
  2. lint

失敗したらプッシュ前にここで修正する。Vercel上で落とすより速い。ローカルで直せないもの(環境依存など)はユーザーに報告して判断を仰ぐ。フルビルド(npm run build)は時間がかかるため、過去に同種の失敗が続いている場合のみ実施する。

2. コミット

  • 変更内容を表す具体的なメッセージにする(「fix」「update」だけの雑なメッセージは禁止)。本文は日本語可。
  • 論理的に別の変更が混ざっている場合は分割コミットする。
  • 末尾に付与: Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

3. プッシュ — ブランチ方針の解決順序

  1. プロジェクトのCLAUDE.mdに直プッシュ可否の記載があればそれに従う
  2. メモリに直プッシュ恒久許可の記録があるプロジェクトならそれに従う
  3. ユーザーが今回「直マージ」「直プッシュ」と言っていればそれに従う
  4. どれにも該当しなければ: 現在のブランチをpushするだけにとどめ、mainへのマージは提案のみ(勝手にマージしない)

mainへ直接の場合: mainに切り替え(またはブランチをmainへマージ)→ git pull --rebase で先行コミットを取り込んでから push。コンフリクト時は解決内容を報告する。

4. Vercelビルド監視

デプロイ先の検出: .vercel/ ディレクトリまたは vercel.json があればVercelプロジェクト。なければ監視をスキップし、その旨を報告して終了。

手順:

  1. push後、まず約60秒待ってから最新デプロイを確認する:
    vercel ls 2>/dev/null | head -5
    最上行が今回のデプロイ(● Building / ● Ready / ● Error)。
  2. Building の場合はバックグラウンドで完了までポーリングする(Bashツール + run_in_background で実行。フォアグラウンドでsleepしない):
    for i in $(seq 1 40); do
      s=$(vercel ls 2>/dev/null | sed -n '1,4p')
      echo "$s" | grep -qE '● (Ready|Error)' && { echo "$s"; exit 0; }
      sleep 15
    done
    echo "TIMEOUT"; exit 1
    完了通知が来たら結果を読む。
  3. vercel CLIが未リンク・未インストールの場合: GitHub連携デプロイなら gh run list / gh run watch で代替。それも無理ならユーザーにダッシュボード確認を依頼して終了。

注意(Windows): PowerShell 5.1では && チェーンが使えない。CLI連結はBashツールで行うか ; + if ($?) を使う。

5. 失敗時プレイブック(過去に実際に発生した順)

vercel inspect <デプロイURL> --logs でビルドログを取得し、以下と照合する:

ログの症状原因修正
ZodError: expected string, received undefined(SUPABASE_URL等)Vercel側の環境変数不足vercel env ls で不足を特定 → vercel env add <NAME> production で追加(値はユーザーに確認) → 再デプロイ
Type error: / tsc失敗プリフライト漏れ・環境差ローカルで npx tsc --noEmit を再現 → 修正 → 再コミット
ESLintエラーでビルド停止lint設定の本番強制エラーを修正する。ルールの無効化やignoreへの追加で逃げない
FATAL: Turbopack error / panicTurbopackのクラッシュ.next キャッシュ削除で再試行 → 再発するならwebpackフォールバックを検討しユーザーに提案
CSS Modules Selector ... is not pureCSS Modulesに:global等の純粋でないセレクタ該当セレクタをグローバルCSSへ移すかローカルクラスを付ける
Module not foundimport先の消し忘れ・大文字小文字(Winでは通るがLinuxで落ちる)パスの大文字小文字とファイル存在を確認して修正

修正したら再コミット→再プッシュ→再監視。3回失敗したら停止し、試したこととログの要点をまとめてユーザーに報告する(同じ修正を繰り返さない)。

6. 報告

最後に必ず以下を1つのメッセージで報告する:

  • コミット: ハッシュとメッセージ(複数なら一覧)
  • プッシュ先: ブランチ名(直プッシュ/マージの別)
  • デプロイ結果: ● Ready(URL) / ● Error(原因と対処) / 監視スキップ(理由)
  • プリフライトで修正した問題があればその要約

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.