Skip to content
Development
Skill

/compare-bundles

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.

From plugin
tuist
5.9k13 skills46 agents

Claude Code

$ npx -y skills add tuist/tuist --skill compare-bundles --agent claude-code

SKILL.md

compare-bundles.SKILL.md
name: compare-bundles
description: 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.

Compare Bundles

Quick Start

You'll typically receive two bundle identifiers. Follow these steps:

1. Run `tuist bundle list --json` to find bundles on each branch. 2. Run `tuist bundle show <bundle-id> --json` for both base and head bundles. 3. Compare artifact trees with `tuist bundle artifact list <bundle-id> --json`. 4. Compare install size, download size, and other metadata. 5. 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%):

1. Check if `version` changed, which might explain expected size growth. 2. Check if `supported_platforms` changed (adding a platform increases size). 3. Look at the `artifacts` field 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:

1. **Overall verdict**: Size increased, decreased, or stable. 2. **Install size**: Absolute and percentage change. 3. **Download size**: Absolute and percentage change. 4. **Version**: Note if version changed. 5. **Platforms**: Note any platform changes. 6. **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
Read more
@tuist
Ships withtuist

Tuist is a build platform for engineering teams and their coding agents. It works with Xcode, Gradle, Bazel, Elixir, and Rust builds. Features vary by toolchain: Rust compilation caching is experimental, and Once support is in canary.

5.9k13 skills46 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
5.9k
Star history of tuist/tuist on GitHub, a chart by star-history.com

Other skills on tuist.

verifying-work-with-tuist

verifying-work-with-tu…

Checks a change against the project's history in Tuist before calling it done, so that flaky tests, failures that already happen…

@tuist@tuistInstall Skill
analyze-selective-testing

analyze-selective-test…

Analyzes Xcode selective testing effectiveness for a test run, showing which test targets were skipped or ran, and diagnosing…

@tuist@tuistInstall Skill
compare-builds

compare-builds

Compares two Xcode build runs to identify duration regressions, cache changes, and new issues. Can be invoked with build IDs,…

@tuist@tuistInstall Skill
compare-cache-runs

compare-cache-runs

Compares two `tuist cache` runs to identify cache hit rate changes and root-cause analysis of cache invalidation. Can be invoked…

@tuist@tuistInstall Skill
compare-generations

compare-generations

Compares two `tuist generate` runs to identify cache hit rate changes and root-cause analysis of cache invalidation. Can be…

@tuist@tuistInstall Skill
compare-gradle-builds

compare-gradle-builds

Compares two Gradle build runs to identify duration regressions, cache changes, and task outcome differences. Can be invoked with…

@tuist@tuistInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react9d252k
@facebook@facebookInstall Skill

Questions about compare-bundles.

Which coding agents can use compare-bundles?
compare-bundles installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.