tilt-setup
FreeRuns bundled scriptsNot checkedInstall Tilt and scaffold or audit Tiltfile + tilt/ configurations with ecosystem-aware templates. Auto-detects Java/Gradle (Spring Boot), Next.js, Python/uv…
by joaquimscosta★ 24 GitHub starsAbout this skill
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)
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_resourcecallsSafety guard yes/no allow_k8s_contextsor manual guard.tiltignore yes/no path Present audit violations grouped by severity (ERROR > WARNING > INFO):
- Show rule ID, message, fix hint
- Rules cover: missing safety guard, deprecated
restart_container, missinglive_update, nowatch_settings, noupdate_settings, missingresource_deps/labels/port_forwards, monolithic Tiltfile, etc.
Use
AskUserQuestion(multiSelect: true) — ask which violations to fix.Apply selected fixes — see WORKFLOW.md for per-rule fix strategies.
Re-run detector to verify fixes were applied.
Phase 2: Scaffold (No Tiltfile)
Install
tiltif missing — show commands based onosfield:- macOS:
brew install tilt-dev/tap/tilt - Linux:
curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash - Verify:
tilt version
- macOS:
Verify kubectl context is safe — if
kubectl_context.is_production_patternis true, STOP and ask the user to switch contexts before proceeding.Review detected ecosystems — show what was found.
Choose Tiltfile pattern — use
AskUserQuestion:- Single-file (
Tiltfileonly) — recommended for 1–3 services, single ecosystem - Modular (
Tiltfile+tilt/config.star+tilt/services.star+tilt/service-config.yaml+tilt/environments.yaml) — recommended for 4+ services, 2+ ecosystems, or 2+ environment presets
- Single-file (
Choose features — use
AskUserQuestion(multiSelect: true):Feature When to enable Manual context guard Always (recommended over allow_k8s_contextsalone)PVC persistence toggle Stateful services (postgres, kafka, opensearch) JDWP debug ports Java/Spring Boot services Monitoring stack Prometheus + Grafana via helm_resourceTraefik gateway Multi-service projects with HTTP routing Generate Tiltfile + supporting files — see WORKFLOW.md for templates.
Always include in the root Tiltfile:
- Manual
validate_cluster_safety()guard at top (blocksarn:aws:eks:,gke_,prod,production,staging) watch_settings(ignore=[...])with build artifacts and dep dirsupdate_settings(max_parallel_updates=2)for laptop-friendly CPU usage.tiltignorenext to Tiltfile
- Manual
Verify — run
tilt alpha tiltfile-resultto validate syntax, then re-run detector.
Key Rules
- Never overwrite existing
Tiltfileortilt/files without asking. Offer merge/replace/skip. - Detect first — skip steps already configured.
- Use
AskUserQuestionfor every decision. Do not assume user preferences. - Always start with safety guard — refuse to scaffold without one. The cost of accidental prod deployment is too high.
- Use
ext://restart_processnotrestart_container()— the latter is deprecated. - Load extensions only from root Tiltfile — Starlark
load()ofext://from sub-files fails. - Externalize service definitions to YAML for modular layouts —
read_yaml("tilt/service-config.yaml")keeps config team-editable. - PVC persistence pattern — create persistent PVCs via
local("kubectl apply")outside Tilt's lifecycle so they survivetilt down. - Per-ecosystem live_update:
- Spring Boot:
custom_build+local_resourcecompile +sync
- Spring Boot:
Install tilt-setup in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the tilt-setup skill do?
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 project complexity. Bakes in production-context safety guards, PVC persistence toggles, JDWP debug ports, and optional Prometheus/Grafana/Traefik scaffolds. Use when user runs /devtools:tilt-setup, mentions "tilt setup", "setup tilt", "scaffold tiltfile", "audit tiltfile", "tilt configure", "tilt project setup", "Tiltfile", "local kubernetes dev", or "kubernetes development environment".
How do I install the tilt-setup skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the tilt-setup skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic