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

ship

Skill0 starsChanged 4 months agoMITView on GitHub

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

  • Reads credentials

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cso, setup-deploy 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

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 10 projects that use this

  • 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 10 projects that use this

  • AICreator-WindSkill

    document-release

    技术作家工具。更新项目文档。

    Also in 10 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 11 projects that use this

  • AICreator-WindSkill

    freeze

    文件编辑锁定工具。限制文件编辑范围。

    Also in 14 projects that use this

  • CodeWithBehnamSkill

    setup-browser-cookies

    Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.

    Also in 9 projects that use this

  • +2 more from AICreator-Wind
  • +1 more from ayuday
  • Other versions179 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 179

    1. rtk-ai/rtk★ 82ksame name
    2. ShenSeanChen/waku-agent★ 1.9ksame name
    3. suboss87/FDEOps★ 950same name
    4. bex-co/bex★ 569same name
    5. nudgebee/nudgebee★ 398same name
    6. nightly-labs/openbot★ 350same name
    7. ucsandman/marketing-studio★ 249same name
    8. garagon/nanostack★ 207same name
    9. awslabs/loom★ 190same name
    10. genkovich/sdd★ 170same name

    169 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

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.