본문으로 건너뛰기
cccskills
무료GitHub에 공개

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Kubernetes
설치 방법 보기

포함된 파일(5)

  • SKILL.md6.7 KB
  • EXAMPLES.md10.6 KB
  • scripts/detect_tilt.py26.9 KB
  • TROUBLESHOOTING.md10.6 KB
  • WORKFLOW.md27.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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:

    ComponentStatusDetail
    tilt binaryinstalled/missingversion, path
    kubectl contextsafe/productioncurrent context, classification
    Tiltfilefound/not foundpath, line count
    Modular layoutyes/notilt/ files (config.star, services.star, *.yaml)
    EcosystemsN detectedjava-gradle, nextjs, python, infra
    Service countN servicesk8s_resource calls
    Safety guardyes/noallow_k8s_contexts or manual guard
    .tiltignoreyes/nopath
  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):

    FeatureWhen to enable
    Manual context guardAlways (recommended over allow_k8s_contexts alone)
    PVC persistence toggleStateful services (postgres, kafka, opensearch)
    JDWP debug portsJava/Spring Boot services
    Monitoring stackPrometheus + Grafana via helm_resource
    Traefik gatewayMulti-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 of .class files
    • Next.js: local_resource with serve_cmd (preferred) OR container with WATCHPACK_POLLING=true
    • Python: docker_build + sync + uvicorn --reload (no restart_container needed)

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

  • Workflow: See WORKFLOW.md for detailed per-step flows and templates
  • Examples: See EXAMPLES.md for example setup and audit sessions
  • Troubleshooting: See TROUBLESHOOTING.md for common issues
  • Detection Script: See scripts/detect_tilt.py for detection logic
  • Research base: docs/research/tilt-local-kubernetes-development-setup.md

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adr

무료

Create, review, and manage Architecture Decision Records (ADRs) with auto-numbering, template detection, quality review, and index maintenance. Use when user mentions "ADR", "architecture decision", "document this decision", "create ADR", "review ADR", editing ADR files (docs/adr/, doc/adr/, .adr/), or discussing architectural choices and tradeoffs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

architect

무료

Analyze system architecture, module structure, API contracts, data models, and code patterns. Use when designing systems, reviewing module boundaries, evaluating API designs, analyzing data models, checking pattern conformance, tracing decisions, or reviewing frontend architecture. Triggers: "architecture", "module design", "API design", "data model", "boundaries", "patterns", "decisions", "frontend architecture".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Converts natural-language descriptions or UI spec files into optimized Google Stitch prompts. Use when creating, refining, or validating design directives for Google Stitch. Use when user says "create a Stitch prompt", "optimize this for Stitch", "convert this spec to a Stitch prompt", "write a UI prompt", or mentions Google Stitch prompt authoring. Follows Stitch best practices with short, directive prompts focused on screens, structure, and visual hierarchy.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Zero-dependency live-preview server providing an agent↔browser bidirectional companion. Watches a content directory, wraps HTML fragments in a frame template, broadcasts live-reload over WebSocket, and captures browser-side click events to a JSONL file. Use when an agent needs to show HTML to the user in a browser and react to clicks — mockups, design exploration, gallery browsing, multi-select choices, prototype iteration. Triggered by "live preview", "browser companion", "preview server", "browser mockup", "show in browser", "arkhe-preview", or any skill that wants to write HTML fragments and have the user see them reload in real time.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Deletes merged git branches (local and remote) and flags stale unmerged branches for manual review. Use when user mentions "cleanup branches", "delete merged branches", "prune old branches", "remove stale branches", "branch cleanup", or runs /cleanup-branches command.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

Interactive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude", "claude code setup", "environment setup", or "initialize claude code".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

joaquimscosta/arkhe-claude-plugins212026년 10월 16일 업데이트

joaquimscosta의 스킬 모두 보기

이 스킬의 문제 신고