Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tilt-setup

БесплатноЗапускает вложенные скриптыНе проверен

Install Tilt and scaffold or audit Tiltfile + tilt/ configurations with ecosystem-aware templates. Auto-detects Java/Gradle (Spring Boot), Next.js, Python/uv…

joaquimscostaот joaquimscosta★ 24 звезды на GitHub

Об этом скилле

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
  2. Present audit violations grouped by severity (ERROR > WARNING > INFO):

    • Show rule ID, message, fix hint
    • Rules cover: missing safety guard, deprecated restart_container, missing live_update, no watch_settings, no update_settings, missing resource_deps/labels/port_forwards, monolithic Tiltfile, etc.
  3. Use AskUserQuestion (multiSelect: true) — ask which violations to fix.

  4. Apply selected fixes — see WORKFLOW.md for per-rule fix strategies.

  5. Re-run detector to verify fixes were applied.

Phase 2: Scaffold (No Tiltfile)

  1. Install tilt if missing — show commands based on os field:

    • 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
  2. Verify kubectl context is safe — if kubectl_context.is_production_pattern is true, STOP and ask the user to switch contexts before proceeding.

  3. Review detected ecosystems — show what was found.

  4. Choose Tiltfile pattern — use AskUserQuestion:

    • Single-file (Tiltfile only) — 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
  5. 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
  6. Generate Tiltfile + supporting files — see WORKFLOW.md for templates.

    Always include in the root Tiltfile:

    • Manual validate_cluster_safety() guard at top (blocks arn:aws:eks:, gke_, prod, production, staging)
    • watch_settings(ignore=[...]) with build artifacts and dep dirs
    • update_settings(max_parallel_updates=2) for laptop-friendly CPU usage
    • .tiltignore next to Tiltfile
  7. Verify — run tilt alpha tiltfile-result to validate syntax, then re-run detector.

Key Rules

  • Never overwrite existing Tiltfile or tilt/ files without asking. Offer merge/replace/skip.
  • Detect first — skip steps already configured.
  • Use AskUserQuestion for 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_process not restart_container() — the latter is deprecated.
  • Load extensions only from root Tiltfile — Starlark load() of ext:// 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 survive tilt down.
  • Per-ecosystem live_update:
    • Spring Boot: custom_build + local_resource compile + sync
Полный SKILL.md на GitHub

Установить tilt-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

EXAMPLES.mdTROUBLESHOOTING.mdWORKFLOW.mdscripts/detect_tilt.py

FAQ

Что делает скилл tilt-setup?

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".

Как установить скилл tilt-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tilt-setup запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить tilt-setup с