Atlas / Skills / k9i-0 / Shorebird Patch

Shorebird PatchSAFE

skills/k9i-0/shorebird-patch

Mobile client for Codex and Claude — control coding agents from your phone via WebSocket bridge

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
—
Hosts
—
License
MIT
Stars
1,087
01

Overview

Mobile client for Codex and Claude — control coding agents from your phone via WebSocket bridge

Read from source at commit 6b4afc353bc7OBSERVED · 2026-10-12
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: shorebird-patch
description: Shorebird OTA パッチの作成・staging 配布(stable 昇格はユーザー実施)
allowed-tools: Bash(bash:*), Bash(shorebird:*), Bash(dart:*), Bash(xcrun:*), Bash(grep:*), Read
---

# Shorebird パッチ配布

Shorebird OTA パッチを staging に作成する。stable への昇格はユーザーが検証後に手動で実施する。

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

## フロー概要

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

## パッチ手順

### 1. バージョン確認

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

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

### 2. パッチ作成 (staging)

指定済みのプラットフォームを優先し、未指定なら iOS と Android の両方を staging に作成する。対象とバージョンを報告して進め、追加の承認は求めない。対象リリースが存在しない場合は、そのプラットフォームの未完了理由を報告する。

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

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

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

スクリプトが以下を一括で行う:
- `shorebird patch` で **staging** にパッチ作成
- `--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
bash .claude/skills/shorebird-patch/promote.sh <version> <patch-number>
```

エージェントは promote を自動実行せず、上記コマンドをそのまま案内する。

### 6. 完了報告

以下を報告する:
- パッチ番号
- 対象プラットフォーム
- リリースバージョン
- トラック: **staging** に配信済み
- stable 昇格は未実施で、ユーザー実行待ちであること
- アセット差分: あり/なし(ありの場合は警告を明記)
- ユーザーがそのまま実行できる promote コマンド

## npm scripts

```bash
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 に変更 → アプリ再起動
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (2 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (4)

MEDIUMInventory / provenance · inv.symlink · CWE-1104
.agents/skills
.agents/skills
Why it matters. link not followed
LOWInventory / provenance · inv.symlink · CWE-1104
AGENTS.md
AGENTS.md
Why it matters. link not followed
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
patch.sh:25
PROJECT_DIR="$SCRIPT_DIR/../../../apps/mobile"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
promote.sh:27
cd "$SCRIPT_DIR/../../../apps/mobile"

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 6b4afc353bc7full audit observations/trust-audit/skill/k9i-0__shorebird-patch.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-126b4afc353bc7SAFEB89first audit
05

Questions

What does the Shorebird Patch skill do?

Mobile client for Codex and Claude — control coding agents from your phone via WebSocket bridge

Is Shorebird Patch safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Shorebird Patch access on my machine?

The audit observed that it reads or writes files. Each of those is consistent with what it says it does. Secrets in the source: none found.

How current is this page?

The grade is for one exact copy of the source (6b4afc353bc7), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement