본문으로 건너뛰기
Skillpedia
모바일 앱5.9k · #14538

compare-bundles

하는 일

이 스킬은 Tuist에 기록된 두 앱 번들, 예를 들어 두 브랜치에서 만든 빌드를 비교해서 크기와 내용이 무엇이 바뀌었는지 보여 줍니다. 다운로드 및 설치 크기를 지켜보는 앱 개발자를 위한 것입니다.

사용하는 경우

  • ✓앱의 다운로드 또는 설치 크기가 커져서 이유를 알고 싶을 때.
  • ✓두 번들 사이에 어떤 산출물이 추가되거나 제거되었는지 보고 싶을 때.
  • ✓앱을 줄이는 제안과 함께 크기 비교가 필요할 때.

스킬 링크

https://github.com/tuist/tuist/blob/main/skills/skills/compare-bundles/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/tuist/tuist/blob/main/skills/skills/compare-bundles/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 기능 브랜치의 최신 번들을 main과 비교해서, 앱을 키운 것이 무엇인지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 두 번들을 찾고, 크기와 메타데이터를 비교합니다. 그다음 바뀐 산출물을 나열하고, 크기를 줄일 수 있는 곳을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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
자주 묻는 질문

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬