tdk-starlark-perf
Installation
SKILL.md
TDK Starlark performance
Use this skill to diagnose and improve slow TDK/Starlark generation and Tilt startup.
Workflow
- Run
tdk doctorandflisk doctorto establish a baseline. - Time
flisk uportilt upand note which phase is slow (discovery, generation, build). - Reduce work: start only needed stacks with
flisk up <stack>ortilt up --focus. - Avoid broad file scans in Starlark: narrow
discovery.paths, exclude large directories, and keep service manifests minimal. - Reuse cached golden images; do not force rebuilds with
TDK_GOLDEN_REBUILDunless necessary. - Keep
.autogenerated/outputs out of manual edits; regenerate viaflisk config regenerateinstead of patching. - Prefer smaller service graphs: split large monoliths into stacks and avoid unnecessary
dependsOnchains.
Guardrails
- Do not hand-edit generated
.autogenerated/files. - Do not disable health checks or validation to gain speed.
- Measure before and after; report observed timings.