compare-generations
하는 일
이 스킬은 Tuist에서 두 프로젝트 생성 실행을 비교합니다. 예를 들어 main 브랜치와 기능 브랜치에서 만든 실행을 비교합니다. 프로젝트 생성이 느려지거나 캐시가 덜 적중하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓한 브랜치에서 프로젝트 생성이 다른 브랜치보다 느려졌을 때.
- ✓생성 캐시 적중이 줄어서 이유를 알아야 할 때.
- ✓두 생성 실행을 비교한 근본 원인 요약이 필요할 때.
스킬 링크
https://github.com/tuist/tuist/blob/main/skills/skills/compare-generations/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“최근 생성 실행을 main과 비교해서 캐시 적중이 줄어든 이유를 설명해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 두 생성 실행을 찾아 소요 시간, 상태, 캐시 적중을 비교한 뒤, 무효화의 가능성이 높은 원인을 요약합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Compare Generations
Quick Start
You'll typically receive two generation identifiers. Follow these steps:
- Run
tuist generate list --jsonto find generations on each branch. - Run
tuist generate show <id> --jsonfor both base and head generations. - Compare duration, status, and cache hit rates.
- Summarize cache changes with root cause analysis.
Step 1: Resolve Generations
If base/head are generation IDs or dashboard URLs
Fetch each directly:
tuist generate show <base-id> --json
tuist generate show <head-id> --json
If base/head are branch names
List recent generations on each branch:
tuist generate list --git-branch <base-branch> --json --page-size 1
tuist generate list --git-branch <head-branch> --json --page-size 1
Then fetch full details with tuist generate 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 Top-Level Metrics
After fetching both generations, compare:
| Metric | What to check |
|---|---|
duration |
Flag if head is >10% slower |
status |
Flag if base succeeded but head failed |
cacheable_targets |
Note if target count changed |
local_cache_target_hits |
Compare local hit counts |
remote_cache_target_hits |
Compare remote hit counts |
is_ci |
Note if one is CI and the other local |
Compute cache hit rates:
- Base:
(local_hits + remote_hits) / cacheable_targets * 100 - Head: same formula
- Delta:
head_rate - base_rate
Step 3: Analyze Cache Invalidation
If cache hit rate dropped, the key question is: which target(s) caused the invalidation cascade?
Cache invalidation typically works like this:
- A "root cause" target has a direct change (source file modified, build setting changed, etc.)
- All targets that depend on the root cause target also get invalidated because their
dependencieshash changes. - This cascade can invalidate many targets from a single root change.
Identifying root cause targets
Without the module cache target detail endpoint (available via MCP), use these heuristics:
- Check
git diffbetween the base and head commits to see which files changed. - Map changed files to their Tuist targets/modules.
- Targets with direct source changes are likely root causes.
- Targets that only changed due to dependency hash cascading are secondary invalidations.
Common root causes of cache invalidation
| Cause | Description |
|---|---|
| Source changes | Files in the target's source directory were modified |
| Resource changes | Assets, XIBs, storyboards, or other resources changed |
| Build settings | Target or project build settings were modified |
| Dependency changes | An external dependency version changed |
| Info.plist changes | The target's Info.plist was modified |
| Entitlements changes | The entitlements file was modified |
| Deployment target | The minimum deployment target changed |
| Headers | Public or project headers changed |
| Project settings | Shared project-level settings changed |
Step 4: Assess Impact
Categorize the cache invalidation:
- Expected: Source files were intentionally changed, causing expected cache misses.
- Unexpected: No source changes but cache was invalidated (build settings, Xcode version, etc.).
- Cascade: A small change invalidated many downstream targets.
Summary Format
Produce a summary with:
- Overall verdict: Cache hit rate improved, regressed, or stable.
- Cache hit rate: Base rate vs head rate with delta.
- Duration: Absolute and percentage change.
- Root cause targets: Which targets had direct changes.
- Cascade impact: How many targets were invalidated due to dependency cascading.
- Recommendations: How to minimize cache invalidation.
Example:
Generation Comparison: base (gen-123 on main) vs head (gen-456 on feature-x)
Duration: 12.5s -> 28.3s (+126%) -- REGRESSION
Cache hit rate: 92% (46/50) -> 64% (32/50) (-28%) -- REGRESSION
Status: success -> success
Root cause: FoundationModule had source changes (3 files modified).
This cascaded to 14 downstream targets that depend on FoundationModule.
Cache invalidation breakdown:
- Direct changes: FoundationModule (sources changed)
- Cascade: NetworkModule, AuthModule, UIModule, + 11 others (dependency hash changed)
Recommendations:
- Consider splitting FoundationModule into smaller modules
자주 묻는 질문
생성 실행이 무엇인가요?
tuist generate 명령을 한 번 실행한 기록입니다. Tuist에 저장됩니다.
Tuist가 필요한가요?
네. Tuist 명령줄 도구로 생성 데이터를 읽습니다.
무엇을 먼저 확인하나요?
각 실행의 소요 시간, 상태, 캐시 적중 횟수를 먼저 확인합니다.
상세 정보
작성자의 원본 설명
Compares two `tuist generate` runs to identify cache hit rate changes and root-cause analysis of cache invalidation. Can be invoked with generation IDs, dashboard URLs, or branch names.
repo: tuist/tuist
인기도
- GitHub 스타
- 5.9k
- 순위
- #14540
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
analyze-selective-testing
5.9k에이전트가 Xcode 선택적 테스트의 건너뛰기 상태를 확인하고, 실행마다 건너뛰기가 달라진 이유를 찾도록 돕습니다.
compare-builds
5.9k에이전트가 두 Xcode 빌드 실행을 비교해 느려진 빌드, 캐시 사용의 변화, 새 문제를 찾도록 돕습니다.
compare-bundles
5.9k에이전트가 두 앱 번들을 비교해 크기 변화, 추가되거나 제거된 파일, 플랫폼 차이를 찾도록 돕습니다.
compare-cache-runs
5.9k에이전트가 두 캐시 실행을 비교해 캐시 적중률의 변화를 찾고, 캐시가 무효화된 이유를 설명하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.