Tilt setup

From joaquimscosta/arkhe-claude-plugins · View interactive version

Tilt setup is an AI agent skill from the GitHub repository joaquimscosta/arkhe-claude-plugins. Install Tilt and scaffold or audit Tiltfile + tilt/ configurations with ecosystem-aware templates. Auto-detects Java/Gradle (Spring Boot), Next.js, Python/uv, and external infrastructure; recommends single-file or modular tilt/*.star + service-config.yaml + environments.yaml patterns based on projec

How to use this skill

Skill file

Tilt Setup

Install Tilt and scaffold or audit Tiltfile + tilt/ configurations for local Kubernetes development with ecosystem-aware templates.

Pre-flight

Run the detection script to understand current state:

python3 ${CLAUDE_SKILL_DIR}/scripts/detect_tilt.py <project-root>

The detector reports: tilt/kubectl binaries, current kubectl context (with production-pattern matching), existing Tiltfile and tilt/ modular layout (also recognizes legacy .tilt/), .tiltignore, tilt_config.json, ecosystems detected (Java/Gradle, Next.js, Python, infra), local cluster tools available, and audit violations (TILT001–TILT025) when a Tiltfile exists.

Decision Flow

Run detector
    |
    ├── tilt_binary.installed = false → Install Tilt first
    |
    ├── kubectl_context.is_production_pattern = true → STOP and warn user
    |
    ├── tiltfile.exists = true → Phase 1: Audit
    |
    └── tiltfile.exists = false → Phase 2: Scaffold

Phase 1: Audit (Existing Tiltfile)

  1. Summarize findings — show a status table:

| Component | Status | Detail |

|-----------|--------|--------|

| tilt binary | installed/missing | version, path |

| kubectl context | safe/production | current context, classification |

| Tiltfile | found/not found | path, line count |

| Modular layout | yes/no | tilt/ files (config.star, services.star, *.yaml) |

| Ecosystems | N detected | java-gradle, nextjs, python, infra |

| Service count | N services | k8s_resource calls |

| Safety guard | yes/no | allow_k8s_contexts or manual guard |

| .tiltignore | yes/no | path |

  1. Present audit violations grouped by severity (ERROR > WARNING > INFO):
  1. Use AskUserQuestion (multiSelect: true) — ask which violations to fix.
  1. Apply selected fixes — see WORKFLOW.md for per-rule fix strategies.
  1. Re-run detector to verify fixes were applied.

Phase 2: Scaffold (No Tiltfile)

  1. Install tilt if missing — show commands based on os field:
  1. Verify kubectl context is safe — if kubectl_context.is_production_pattern is true, STOP and ask the user to switch contexts before proceeding.
  1. Review detected ecosystems — show what was found.
  1. Choose Tiltfile pattern — use AskUserQuestion:
  1. Choose features — use AskUserQuestion (multiSelect: true):

| Feature | When to enable |

|---------|----------------|

| Manual context guard | Always (recommended over allow_k8s_contexts alone) |

| PVC persistence toggle | Stateful services (postgres, kafka, opensearch) |

| JDWP debug ports | Java/Spring Boot services |

| Monitoring stack | Prometheus + Grafana via helm_resource |

| Traefik gateway | Multi-service projects with HTTP routing |

  1. Generate Tiltfile + supporting files — see WORKFLOW.md for templates.

Always include in the root Tiltfile:

  1. Verify — run tilt alpha tiltfile-result to validate syntax, then re-run detector.

Key Rules

Reference Material

The skill's reference base lives at docs/research/tilt-local-kubernetes-development-setup.md (in this repo). It contains the full Tilt API reference, ecosystem recipes, cluster comparison, audit rule definitions (TILT001–TILT025), and scaffold templates.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.