SH

shorebird-patch

Handles mobile app patching workflows including staging, promotion, and deployment verification.

Install

mkdir -p .claude/skills/shorebird-patch && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12128" && unzip -o skill.zip -d .claude/skills/shorebird-patch && rm skill.zip

Installs to .claude/skills/shorebird-patch

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Shorebird OTA パッチの作成・配布(staging → promote → stable)
51 charsno explicit “when” trigger
Beginner

Key capabilities

  • Create a Shorebird patch for staging
  • Promote a staging patch to stable
  • Verify asset differences in a patch
  • Report patch details including asset differences

How it works

The skill creates a Shorebird OTA patch for staging, allows verification, and then promotes it to stable.

Inputs & outputs

You give it
Mobile app version number and platform (iOS or Android)
You get back
A Shorebird patch number and status report

When to use shorebird-patch

  • Create staging patch for mobile
  • Promote patch to stable
  • Verify patch asset readiness

About this skill

Shorebird パッチ配布

Shorebird OTA パッチを staging に作成し、検証後に stable へ昇格する。

新バージョンのリリース/release-mobile スキルを使用する。 アセット差分でパッチが適用されない場合も、/release-mobile でリリース後に再パッチする。

フロー概要

patch (staging) → デバッグ画面で検証 → promote (stable) → 全ユーザーに配信

パッチ手順

1. バージョン確認

grep '^version:' apps/mobile/pubspec.yaml

version: X.Y.Z+N の値を記録する(= <version>)。

2. パッチ作成 (staging)

引数でプラットフォームが指定された場合はそのまま使う。指定がなければユーザーに確認する。

# iOS
bash .claude/skills/shorebird-patch/patch.sh ios <version>

# Android
bash .claude/skills/shorebird-patch/patch.sh android <version>

# 両方の場合は順番に実行

スクリプトが以下を一括で行う:

  • shorebird patchstaging にパッチ作成
  • --allow-asset-diffs によりアセット変更の確認プロンプトを自動スキップ

完了後の出力から パッチ番号 を記録する(= <patch-number>)。

3. アセット差分の検証(重要)

パッチ出力に以下の警告が含まれていないか確認する:

[WARN] Your app contains asset changes, which will not be included in the patch.

この警告が出た場合、パッチは publish されるが実機に適用されない可能性が高い。

対処法

アセット差分が検出された場合、ユーザーに以下を報告する:

  1. 警告内容: どのファイルにアセット差分があるか(例: MaterialIcons-Regular.otf
  2. 影響: パッチは作成されるが、デバイスでダウンロード後に適用されない
  3. 推奨対応: /release-mobile で新リリースを作成してから、クリーンな状態でパッチを再作成する

4. 検証(staging)

パッチが staging に配信されたら、以下の方法で検証する:

  • ローカル: shorebird preview --track=staging --release-version=<version>
  • 実機(TestFlight等): アプリのデバッグ画面(ロゴ5連打)→ Update Track を Staging に変更 → アプリ再起動

5. Promote (staging → stable)

検証が問題なければ stable に昇格する:

bash .claude/skills/shorebird-patch/promote.sh <version> <patch-number>

6. 完了報告

以下を報告する:

  • パッチ番号
  • 対象プラットフォーム
  • リリースバージョン
  • トラック: staging → promote 前 / stable → promote 後
  • アセット差分: あり/なし(ありの場合は警告を明記)

npm scripts

npm run shorebird:patch:android -- <release-version>
npm run shorebird:patch:ios -- <release-version>
npm run shorebird:promote -- <release-version> <patch-number>

トラブルシュート

  • アセット差分でパッチが適用されない: --allow-asset-diffs でパッチ作成は成功するが、アセット変更(フォント、画像等)を含むパッチは実機で適用に失敗する。/release-mobile で新リリースが必要
  • 署名エラー(exportArchive): IPA生成時のエラーはShorebirdパッチ自体には影響しない。パッチが Published Patch N! と表示されていれば成功
  • インタラクティブプロンプト: shorebird コマンドを直接実行する場合は --release-version フラグ必須(省略するとインタラクティブプロンプトで非TTY環境がエラーになる)
  • パッチが反映されない場合の確認: 設定画面のバージョン表示で (patch N) が出ているか確認。出ていなければShorebirdリリースビルドでない可能性がある
  • staging パッチの確認方法: デバッグ画面(ロゴ5連打)→ Update Track を Staging に変更 → アプリ再起動

When not to use it

  • When releasing a new version of the mobile app
  • When asset differences prevent patch application

Limitations

  • Asset changes are not included in the patch
  • IPA generation errors do not affect patch success

How it compares

This automates the patch creation and promotion steps, including asset difference checks, instead of manual command execution.

Compared to similar skills

shorebird-patch side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
shorebird-patch (this skill)05moReviewBeginner
stac-quickstart16moReviewBeginner
flutter-development1,5555moNo flagsIntermediate
flutter-expert734moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry