Saltar al contenido
Skillpedia
Deploy y nube (DevOps)5,9 mil · #14537

compare-builds

Qué hace

Esta skill compara dos compilaciones de Xcode registradas en Tuist, como una compilación de la rama principal y una de una rama de funcionalidad. Está pensada para desarrolladores de iOS y macOS que investigan por qué las compilaciones se han vuelto más lentas o han cambiado.

Cuándo usarla

  • ✓Cuando una compilación de una rama de funcionalidad parece más lenta que la de la rama principal.
  • ✓Cuando quieres ver cómo cambiaron los aciertos de caché entre dos compilaciones.
  • ✓Cuando quieres un resumen de las regresiones y mejoras de compilación.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/tuist/tuist/blob/main/skills/skills/compare-builds/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Compara la última compilación de mi rama de funcionalidad con main y dime si se ha vuelto más lenta.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente encuentra las dos compilaciones, lee sus duraciones, objetivos, problemas y tareas de caché con la herramienta de línea de comandos de Tuist, y luego resume las regresiones, mejoras y sugerencias.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Compare Builds

Quick Start

You'll typically receive two build identifiers (IDs, dashboard URLs, or branch names). Follow these steps:

  1. Run tuist build list --json to find builds on each branch.
  2. Run tuist build show <build-id> --json for both base and head builds.
  3. 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).
  4. Compare duration, status, cache hit rates, and other metrics.
  5. 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:

  1. Check if the category differs (clean vs incremental builds are not directly comparable).
  2. Check if cache hit rate dropped, which would explain longer builds.
  3. 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_version and macos_version: Different versions can affect build times and cache validity.
  • is_ci: CI vs local builds may have different performance characteristics.
  • git_branch and git_commit_sha: Verify the builds are from the expected commits.

Summary Format

Produce a summary with:

  1. Overall verdict: Better, worse, or neutral compared to base.
  2. Duration: Absolute and percentage change.
  3. Cache hit rate: Change in hit rate with explanation.
  4. Status: Any status changes (pass to fail or vice versa).
  5. Environment: Note any environment differences that affect comparability.
  6. Recommendations: Actionable next steps based on findings.

Example:

Build Compar
Preguntas frecuentes

¿Qué pasa si solo doy una rama?

Se usa la rama por defecto del proyecto como referencia.

¿Qué compara?

La duración, el estado, las tasas de aciertos de caché, los objetivos, los problemas y las tareas de caché.

¿Necesito Tuist?

Sí. Lee los datos de compilación a través de la herramienta de línea de comandos de Tuist.

Detalles

Descripción original del 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

Popularidad

Estrellas en GitHub
5,9 mil
Posición en el ranking
#14537
Licencia
—
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas