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.
What this skill does
# 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: ```bash 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: ```bash 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: ```bash 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
Related in Data & Analytics
clawarr-suite
IncludedComprehensive management for self-hosted media stacks (Sonarr, Radarr, Lidarr, Readarr, Prowlarr, Bazarr, Overseerr, Plex, Tautulli, SABnzbd, Recyclarr, Unpackerr, Notifiarr, Maintainerr, Kometa, FlareSolverr). Deep library exploration, analytics, dashboard generation, content management, request handling, subtitle management, indexer control, download monitoring, quality profile sync, library cleanup automation, notification routing, collection/overlay management, and media tracker integration (Trakt, Letterboxd, Simkl).
querying-soql
IncludedSOQL query generation, optimization, and analysis with 100-point scoring. Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance or safety improvements for Salesforce queries. TRIGGER when: user writes, optimizes, or debugs SOQL/SOSL queries, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER when: bulk data operations (use handling-sf-data), Apex DML logic (use generating-apex), or report/dashboard queries.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
habit-flow
IncludedAI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching. Use for creating habits, logging completions naturally ("I meditated today"), viewing progress, and getting personalized coaching.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
visualizing-data
IncludedBuilds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.