Loading...
Loading...
This skill should be used when the user asks to "write a Tiltfile", "configure Tilt", "set up live update", "debug Tilt", "add a resource to Tilt", "optimize Tilt builds", "view Tilt logs", "restart a Tilt resource", or mentions Tiltfile, tilt up, tilt ci, tilt down, live_update, docker_build, custom_build, k8s_resource, local_resource, or Kubernetes local development with Tilt.
npx skill4agent add hyperb1iss/hyperskills tiltTiltfile| Task | Command |
|---|---|
| Start dev environment | |
| Start with terminal log streaming | |
| Start specific resources only | |
| Run in CI/batch mode (exits on success/failure) | |
| Stop and delete deployed resources | |
| Change runtime Tiltfile args | |
| Change runtime args (clear all) | |
tilt upserve_cmdtilt down| Task | Command |
|---|---|
| Stream all logs | |
| Stream logs for one resource | |
| Show only errors | |
| Show build logs only | |
| Show runtime logs only | |
| Logs since 5 minutes ago | |
| Last 100 lines | |
| JSON output (for parsing) | |
| Task | Command |
|---|---|
| List all resources | |
| Resource status as JSON | |
| Describe a resource in detail | |
| Force rebuild a resource | |
| Enable a disabled resource | |
| Disable a resource | |
| Wait for resource readiness | |
| Task | Command |
|---|---|
| Diagnostics (versions, cluster) | |
| Inspect file watches | |
| Describe a specific file watch | |
| Full engine state dump (JSON) | |
| Full UI state dump | |
| Test Docker build as Tilt would | |
| List API resource types | |
localhost:10350tilt get/describe/trigger| Situation | Function | Key detail |
|---|---|---|
| Standard Dockerfile | | Watches context dir, auto-injects into k8s |
| Custom toolchain (Bazel, ko, Buildpacks) | | Must tag with |
| Non-Docker builder (Buildah, kaniko) | | Builder handles push independently |
| Docker Compose services | | Manages compose lifecycle |
| Helm charts | | Renders locally, deploys to cluster |
| Kustomize overlays | | Renders locally, deploys to cluster |
| Step | Purpose | Ordering |
|---|---|---|
| Force full rebuild when these files change | Must come first |
| Copy changed files into running container | After fall_back_on |
| Execute command in container (e.g., install deps) | After sync |
| Restart the container process | Must come last |
docker_build('myapp', '.', live_update=[
fall_back_on(['requirements.txt']),
sync('./src', '/app/src'),
run('pip install -r requirements.txt', trigger=['requirements.txt']),
])docker_buildsync()tilt up# Kubernetes resource with port forwarding and dependencies
k8s_resource('frontend',
port_forwards=['3000:3000'],
resource_deps=['api', 'database'],
labels=['web'],
trigger_mode=TRIGGER_MODE_MANUAL,
)
# Local resource (build tool, test runner, code generator)
local_resource('codegen',
cmd='make generate',
deps=['./proto'],
labels=['tools'],
)
# Local server (runs continuously)
local_resource('storybook',
serve_cmd='npm run storybook',
deps=['./src/components'],
allow_parallel=True,
readiness_probe=probe(http_get=http_get_action(port=6006)),
)allow_parallel=Trueupdate_settings(max_parallel_updates=N)resource_depsService crashing? → tilt logs -f <resource> --source runtime
Build failing? → tilt logs -f <resource> --source build
tilt docker -- build <args> (reproduces Tilt's exact build)
Wrong files rebuild? → tilt get filewatches
tilt describe filewatch <name>
Check .tiltignore, watch_settings(ignore=), ignore= param
Force a rebuild? → tilt trigger <resource>
Resource stuck? → tilt describe uiresource <name>
Check resource_deps chain
For CRDs: pod_readiness='ignore'
General diagnostics? → tilt doctor
Full state dump? → tilt dump engine | jq .| Pitfall | Fix |
|---|---|
| Wrap with |
| Live update paths outside docker_build context | Ensure sync local paths fall within context dir |
| Local resources block each other | Set |
| It only checks first-ever readiness, not current version |
| Starlark has no while/try-except/class/recursion | Use for loops, |
| Use |
| Build script MUST tag the image with this env var |
| Trigger paths must also be covered by a sync step |
First | Live update cannot work until a container is running |
| CRD pods stuck in pending | Set |
references/api-reference.mdreferences/patterns.md