compare-builds
できること
このスキルは、メインブランチのビルドと機能ブランチのビルドなど、Tuistに記録された二つのXcodeのビルドを比べます。ビルドが遅くなった、または変わった理由を調べているiOSとmacOSの開発者のためのものです。
使う場面
- ✓機能ブランチのビルドが、メインブランチより遅く見えるとき。
- ✓二つのビルドの間でキャッシュのヒットがどう変わったかを見たいとき。
- ✓ビルドの回帰と改善の要約がほしいとき。
スキルのリンク
https://github.com/tuist/tuist/blob/main/skills/skills/compare-builds/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の機能ブランチの最新のビルドをmainと比べて、遅くなったかどうか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは二つのビルドを見つけ、Tuistのコマンドラインツールで、それぞれの所要時間、ターゲット、問題、キャッシュのタスクを読み取り、回帰、改善、提案を要約します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Compare Builds
Quick Start
You'll typically receive two build identifiers (IDs, dashboard URLs, or branch names). Follow these steps:
- Run
tuist build list --jsonto find builds on each branch. - Run
tuist build show <build-id> --jsonfor both base and head builds. - Fetch sub-resource details: targets (
tuist build xcode target list <id> --json), issues (tuist build xcode issue list <id> --json), and cache tasks (tuist build xcode cache-task list <id> --json). - Compare duration, status, cache hit rates, and other metrics.
- Summarize regressions, improvements, and recommendations.
If only one identifier is provided, use the project's default branch as the baseline.
Step 1: Resolve Builds
If base/head are build IDs or dashboard URLs
Fetch each directly:
tuist build show <base-id> --json
tuist build show <head-id> --json
If base/head are branch names
List recent builds on each branch and pick the latest:
tuist build list --git-branch <base-branch> --json --page-size 1
tuist build list --git-branch <head-branch> --json --page-size 1
Then fetch full details with tuist build 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 with
git rev-parse --abbrev-ref HEAD.
Step 2: Fetch Sub-Resource Details
After fetching both builds with tuist build show <id> --json, drill down into sub-resources for a deeper comparison.
Compare targets
tuist build xcode target list <base-id> --json
tuist build xcode target list <head-id> --json
Look for targets that changed status (e.g., success to failure) or had significant duration changes.
Compare issues
tuist build xcode issue list <base-id> --json
tuist build xcode issue list <head-id> --json
Look for new warnings or errors introduced in the head build.
Compare cache tasks
tuist build xcode cache-task list <base-id> --json
tuist build xcode cache-task list <head-id> --json
Identify which specific targets had cache misses or hits and whether that changed between builds.
Step 3: Compare Top-Level Metrics
After fetching both builds, compare:
| Metric | What to check |
|---|---|
duration |
Flag if head is >10% slower than base |
status |
Flag if base succeeded but head failed |
cacheable_tasks_count |
Note if task count changed |
cacheable_task_local_hits_count |
Compare local hit counts |
cacheable_task_remote_hits_count |
Compare remote hit counts |
| Cache hit rate | (local_hits + remote_hits) / cacheable_tasks_count * 100 |
category |
Note if one is clean and the other incremental (makes duration comparison less meaningful) |
scheme / configuration |
Ensure both builds used the same scheme and configuration for a fair comparison |
Compute the cache miss delta: base_misses - head_misses. Positive means head has fewer misses (improvement). Negative means regression.
Step 4: Investigate Duration Regressions
If the head build is significantly slower:
- Check if the
categorydiffers (clean vs incremental builds are not directly comparable). - Check if cache hit rate dropped, which would explain longer builds.
- If both are incremental with similar cache rates, the regression is likely in compilation time.
Step 5: Investigate Cache Changes
Compare cache statistics:
- Hit rate dropped: Possible causes include dependency changes, build setting changes, or Xcode version updates.
- Hit rate improved: Likely due to better cache warming or fewer source changes.
- Task count changed: New targets added or removed.
Step 6: Check Build Context
Compare environment details:
xcode_versionandmacos_version: Different versions can affect build times and cache validity.is_ci: CI vs local builds may have different performance characteristics.git_branchandgit_commit_sha: Verify the builds are from the expected commits.
Summary Format
Produce a summary with:
- Overall verdict: Better, worse, or neutral compared to base.
- Duration: Absolute and percentage change.
- Cache hit rate: Change in hit rate with explanation.
- Status: Any status changes (pass to fail or vice versa).
- Environment: Note any environment differences that affect comparability.
- Recommendations: Actionable next steps based on findings.
Example:
Build Compar
よくある質問
ブランチを一つしか渡さなかったら?
プロジェクトの既定のブランチが、比較の基準として使われます。
何を比べますか?
所要時間、状態、キャッシュのヒット率、ターゲット、問題、キャッシュのタスクを比べます。
Tuistが必要ですか?
はい。Tuistのコマンドラインツールでビルドのデータを読みます。
詳細
作者による元の説明
Compares two Xcode build runs to identify duration regressions, cache changes, and new issues. Can be invoked with build IDs, dashboard URLs, or branch names (e.g. `tuist compare-builds --base main --head feature-branch`).
repo: tuist/tuist
人気
- GitHubのスター
- 5.9k
- ランキング
- #14537
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
analyze-selective-testing
5.9kXcodeの選択的テストが、変更のないテストターゲットをどれだけうまくスキップしたかを確認し、実行ごとにスキップが変わった理由を見つけるよう支援します。
compare-bundles
5.9k二つのアプリのバンドルを比べて、サイズの変化、追加または削除されたファイル、プラットフォームの違いを見つけるようエージェントを支援します。
compare-cache-runs
5.9k二つのキャッシュの実行を比べて、キャッシュのヒット率の変化を見つけ、キャッシュが無効になった理由を説明するようエージェントを支援します。
compare-generations
5.9k二つのTuistのプロジェクト生成の実行を比べて、キャッシュのヒットの変化と、キャッシュが無効になった原因を見つけるようエージェントを支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。