compare-bundles
できること
このスキルは、二つのブランチのビルドなど、Tuistに記録された二つのアプリのバンドルを比べ、サイズと内容の変化を見ます。ダウンロードとインストールのサイズを見守るアプリ開発者のためのものです。
使う場面
- ✓アプリのダウンロードやインストールのサイズが大きくなり、その理由を知りたいとき。
- ✓二つのバンドルの間で、追加または削除されたアーティファクトを見たいとき。
- ✓アプリを小さくする提案とともに、サイズの比較がほしいとき。
スキルのリンク
https://github.com/tuist/tuist/blob/main/skills/skills/compare-bundles/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の機能ブランチの最新のバンドルをmainと比べて、アプリが大きくなった原因を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは二つのバンドルを見つけ、サイズとメタデータを比べ、変わったアーティファクトを一覧にして、サイズを減らせる箇所を提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Compare Bundles
Quick Start
You'll typically receive two bundle identifiers. Follow these steps:
- Run
tuist bundle list --jsonto find bundles on each branch. - Run
tuist bundle show <bundle-id> --jsonfor both base and head bundles. - Compare artifact trees with
tuist bundle artifact list <bundle-id> --json. - Compare install size, download size, and other metadata.
- Summarize size changes with actionable recommendations.
Step 1: Resolve Bundles
If base/head are bundle IDs or dashboard URLs
Fetch each directly:
tuist bundle show <base-id> --json
tuist bundle show <head-id> --json
If base/head are branch names
List recent bundles on each branch and pick the latest:
tuist bundle list --git-branch <base-branch> --json
tuist bundle list --git-branch <head-branch> --json
Then fetch full details with tuist bundle show <id> --json.
Defaults
- If no base is provided, use the project's default branch (usually
main). - If no head is provided, detect the current git branch.
Step 2: Compare Artifact Trees
After fetching both bundles with tuist bundle show <id> --json, compare the individual artifacts:
tuist bundle artifact list <base-id> --json
tuist bundle artifact list <head-id> --json
Match artifacts by name across both bundles. Look for:
- New artifacts added in the head bundle (potential size contributors)
- Removed artifacts (explain size decreases)
- Size changes in existing artifacts
Step 3: Compare Top-Level Metrics
After fetching both bundles, compare:
| Metric | What to check |
|---|---|
install_size |
Flag if head is >5% larger |
download_size |
Flag if head is >5% larger |
version |
Note version changes |
supported_platforms |
Note platform changes |
app_bundle_id |
Should match between base and head |
Compute deltas:
- Install size delta:
head_install_size - base_install_size - Download size delta:
head_download_size - base_download_size - Percentage change:
delta / base_size * 100
Step 4: Analyze Size Changes
If size increased significantly (>5%):
- Check if
versionchanged, which might explain expected size growth. - Check if
supported_platformschanged (adding a platform increases size). - Look at the
artifactsfield in the bundle details for individual artifact sizes.
Common causes of size increases:
- New frameworks or libraries added
- Asset catalogs grew (new images, videos)
- Unoptimized resources (large PNGs instead of compressed formats)
- Debug symbols included in release builds
- New localizations added
Common causes of size decreases:
- Removed unused frameworks
- Optimized assets
- Tree shaking or dead code elimination improvements
- Moved functionality to on-demand resources
Summary Format
Produce a summary with:
- Overall verdict: Size increased, decreased, or stable.
- Install size: Absolute and percentage change.
- Download size: Absolute and percentage change.
- Version: Note if version changed.
- Platforms: Note any platform changes.
- Recommendations: Actionable next steps for size regressions.
Example:
Bundle Comparison: base (v2.1.0 on main) vs head (v2.2.0 on feature-x)
Install Size: 45.2 MB -> 52.8 MB (+16.8%) -- REGRESSION
Download Size: 28.1 MB -> 32.4 MB (+15.3%) -- REGRESSION
Version: 2.1.0 -> 2.2.0
Platforms: iOS, macOS (unchanged)
The install size increased by 7.6 MB. This is a significant increase
that may affect user download and storage experience.
Recommendations:
- Review new frameworks or assets added in this version
- Check for uncompressed resources or oversized image assets
- Consider using asset compression or on-demand resources
- Run `xcrun bitcode_strip` analysis to check for unnecessary bitcode
Done Checklist
- Resolved both base and head bundles
- Compared artifact trees using
tuist bundle artifact list - Compared install and download sizes
- Analyzed root causes of size changes
- Provided actionable recommendations
よくある質問
Tuistが必要ですか?
はい。バンドルのデータを読むのにTuistのコマンドラインツールを使います。
どのサイズを比べますか?
インストールサイズとダウンロードサイズ、そのほかのメタデータを比べます。
バンドル同士でファイルを対応づけられますか?
はい。アーティファクトを名前で対応づけて、新しいファイルと削除されたファイルを見つけます。
詳細
作者による元の説明
Compares two app bundles to identify size changes, new or removed artifacts, and platform differences. Can be invoked with bundle IDs, dashboard URLs, or branch names.
repo: tuist/tuist
人気
- GitHubのスター
- 5.9k
- ランキング
- #14538
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
analyze-selective-testing
5.9kXcodeの選択的テストが、変更のないテストターゲットをどれだけうまくスキップしたかを確認し、実行ごとにスキップが変わった理由を見つけるよう支援します。
compare-builds
5.9k二つのXcodeのビルドの実行を比べて、遅くなったビルド、キャッシュの使用の変化、新しい問題を見つけるようエージェントを支援します。
compare-cache-runs
5.9k二つのキャッシュの実行を比べて、キャッシュのヒット率の変化を見つけ、キャッシュが無効になった理由を説明するようエージェントを支援します。
compare-generations
5.9k二つのTuistのプロジェクト生成の実行を比べて、キャッシュのヒットの変化と、キャッシュが無効になった原因を見つけるようエージェントを支援します。
似ているスキル
android-clean-architecture
280kエージェントがAndroidプロジェクトを効率よく整理できるようにします。コードを構造化して、保守や新機能の開発をしやすくします。
compose-multiplatform-patterns
280kエージェントがKMPプロジェクトでCompose MultiplatformとJetpack Composeのパターンを使えるようにします。状態管理、ナビゲーション、テーマ設定、パフォーマンスを扱います。
dart-flutter-patterns
280kエージェントがDartとFlutterのアプリ向けのコードを書けるようにします。最新のパターンを使い、堅牢で管理しやすいアプリを作ります。