compare-builds
O que ela faz
Esta skill compara dois builds do Xcode registrados no Tuist, como um build da branch principal e um build de uma branch de funcionalidade. É para desenvolvedores de iOS e macOS que investigam por que os builds ficaram mais lentos ou mudaram.
Quando usar
- ✓Quando um build de uma branch de funcionalidade parece mais lento que o da branch principal.
- ✓Quando você quer ver como os acertos de cache mudaram entre dois builds.
- ✓Quando você quer um resumo das regressões e melhorias de build.
Link da skill
https://github.com/tuist/tuist/blob/main/skills/skills/compare-builds/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Compare o último build da minha branch de funcionalidade com a main e me diga se ficou mais lento.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente encontra os dois builds, lê suas durações, alvos, problemas e tarefas de cache com a ferramenta de linha de comando do Tuist, depois resume regressões, melhorias e sugestões.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Compare Builds
Quick Start
You'll typically receive two build identifiers (IDs, dashboard URLs, or branch names). Follow these steps:
- Run
tuist build list --jsonto find builds on each branch. - Run
tuist build show <build-id> --jsonfor both base and head builds. - Fetch sub-resource details: targets (
tuist build xcode target list <id> --json), issues (tuist build xcode issue list <id> --json), and cache tasks (tuist build xcode cache-task list <id> --json). - Compare duration, status, cache hit rates, and other metrics.
- Summarize regressions, improvements, and recommendations.
If only one identifier is provided, use the project's default branch as the baseline.
Step 1: Resolve Builds
If base/head are build IDs or dashboard URLs
Fetch each directly:
tuist build show <base-id> --json
tuist build show <head-id> --json
If base/head are branch names
List recent builds on each branch and pick the latest:
tuist build list --git-branch <base-branch> --json --page-size 1
tuist build list --git-branch <head-branch> --json --page-size 1
Then fetch full details with tuist build 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 with
git rev-parse --abbrev-ref HEAD.
Step 2: Fetch Sub-Resource Details
After fetching both builds with tuist build show <id> --json, drill down into sub-resources for a deeper comparison.
Compare targets
tuist build xcode target list <base-id> --json
tuist build xcode target list <head-id> --json
Look for targets that changed status (e.g., success to failure) or had significant duration changes.
Compare issues
tuist build xcode issue list <base-id> --json
tuist build xcode issue list <head-id> --json
Look for new warnings or errors introduced in the head build.
Compare cache tasks
tuist build xcode cache-task list <base-id> --json
tuist build xcode cache-task list <head-id> --json
Identify which specific targets had cache misses or hits and whether that changed between builds.
Step 3: Compare Top-Level Metrics
After fetching both builds, compare:
| Metric | What to check |
|---|---|
duration |
Flag if head is >10% slower than base |
status |
Flag if base succeeded but head failed |
cacheable_tasks_count |
Note if task count changed |
cacheable_task_local_hits_count |
Compare local hit counts |
cacheable_task_remote_hits_count |
Compare remote hit counts |
| Cache hit rate | (local_hits + remote_hits) / cacheable_tasks_count * 100 |
category |
Note if one is clean and the other incremental (makes duration comparison less meaningful) |
scheme / configuration |
Ensure both builds used the same scheme and configuration for a fair comparison |
Compute the cache miss delta: base_misses - head_misses. Positive means head has fewer misses (improvement). Negative means regression.
Step 4: Investigate Duration Regressions
If the head build is significantly slower:
- Check if the
categorydiffers (clean vs incremental builds are not directly comparable). - Check if cache hit rate dropped, which would explain longer builds.
- If both are incremental with similar cache rates, the regression is likely in compilation time.
Step 5: Investigate Cache Changes
Compare cache statistics:
- Hit rate dropped: Possible causes include dependency changes, build setting changes, or Xcode version updates.
- Hit rate improved: Likely due to better cache warming or fewer source changes.
- Task count changed: New targets added or removed.
Step 6: Check Build Context
Compare environment details:
xcode_versionandmacos_version: Different versions can affect build times and cache validity.is_ci: CI vs local builds may have different performance characteristics.git_branchandgit_commit_sha: Verify the builds are from the expected commits.
Summary Format
Produce a summary with:
- Overall verdict: Better, worse, or neutral compared to base.
- Duration: Absolute and percentage change.
- Cache hit rate: Change in hit rate with explanation.
- Status: Any status changes (pass to fail or vice versa).
- Environment: Note any environment differences that affect comparability.
- Recommendations: Actionable next steps based on findings.
Example:
Build Compar
Perguntas frequentes
E se eu informar só uma branch?
A branch padrão do projeto é usada como base de comparação.
O que ela compara?
Duração, status, taxas de acerto de cache, alvos, problemas e tarefas de cache.
Preciso ter o Tuist?
Sim. Ela lê os dados de build pela ferramenta de linha de comando do Tuist.
Detalhes
Descrição original do autor
Compares two Xcode build runs to identify duration regressions, cache changes, and new issues. Can be invoked with build IDs, dashboard URLs, or branch names (e.g. `tuist compare-builds --base main --head feature-branch`).
repo: tuist/tuist
Popularidade
- Estrelas no GitHub
- 5,9 mil
- Posição no ranking
- #14537
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
analyze-selective-testing
5,9 milAjuda seu agente a verificar o quanto a seleção de testes do Xcode pulou alvos de teste sem mudanças e descobrir por que o pulo mudou entre execuções.
compare-bundles
5,9 milAjuda seu agente a comparar dois bundles de app para encontrar mudanças de tamanho, arquivos adicionados ou removidos e diferenças entre plataformas.
compare-cache-runs
5,9 milAjuda seu agente a comparar duas execuções de cache para encontrar mudanças nas taxas de acerto e explicar por que o cache foi invalidado.
compare-generations
5,9 milAjuda seu agente a comparar duas execuções de geração de projeto do Tuist para encontrar mudanças nos acertos de cache e a causa da invalidação do cache.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.