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.9k에이전트가 Xcode 선택적 테스트의 건너뛰기 상태를 확인하고, 실행마다 건너뛰기가 달라진 이유를 찾도록 돕습니다.
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
280kDart와 Flutter 앱용 코드를 작성하도록 에이전트를 돕습니다. 견고하고 관리하기 쉬운 앱을 만드는 현대적인 패턴을 씁니다.