flisk-starlark-perf
Skill4 starsChanged 34 days agoMITView on GitHub
Find and reduce the time Flisk spends before containers run - service discovery, Tiltfile (Starlark) evaluation, config generation and golden image builds - by timing each phase, narrowing `discovery.paths`, starting one stack or `--only` a few services, and keeping golden images cached. Use when `flisk up` or `tilt up` is slow to start, generated files are large, or discovery takes too long. For memory and container-count limits, use flisk-benchmark; for failures, use flisk-troubleshoot.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- flisk-agentsSkill
- flisk-benchmarkSkill
- flisk-build-runtimesSkill
- flisk-byoSkill
- flisk-contributingSkill
- flisk-databasesSkill
- flisk-dataSkill
- flisk-demo-bubblesSkill
- flisk-deploy-awsSkill
- flisk-deploy-azureSkill
- flisk-deploy-cloudflareSkill
- flisk-deploy-digitaloceanSkill
- flisk-deploy-flySkill
- flisk-deploy-gcpSkill
- flisk-deploy-herokuSkill
- flisk-deploy-railwaySkill
- flisk-deploy-renderSkill
- flisk-deploy-vercelSkill
- flisk-doctorSkill
- flisk-dry-runSkill
- flisk-frontendSkill
- flisk-generated-filesSkill
- flisk-helmSkill
- flisk-import-composeSkill
- flisk-import-procfileSkill
- flisk-layoutSkill
- flisk-portsSkill
- flisk-scaffoldSkill
- flisk-secretsSkill
- flisk-service-jsonSkill
- flisk-troubleshootSkill
- flisk-uiSkill
- flisk-unfollowersSkill
- flisk-upgradeSkill
- layer-autoresearchSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Do less work per run: flisk up <stack> starts one stack.
- Very specific: line 24
Keep golden images cached.
- Very specific: line 30
Do not hand-edit .autogenerated/ or .flisk/.flisk-out/ to save time.
- Distinctive: line 31
Do not disable health checks or validation to gain speed.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flisk Starlark and startup performance
Workflow
- Baseline: run
flisk doctoronce (so slowness is not a broken host), then time a preview and a start:
Note which phase is slow: discovery, Tiltfile evaluation, golden build, or service builds (time flisk up <stack> --dry-run # discovery and generation, no containers time flisk up <stack> # adds Tilt and image buildstilt logs golden-layers-build,tilt logs <service>). - Evaluate the generated Tiltfile alone, without starting anything:
tilt alpha tiltfile-result -f .flisk/.flisk-out/Tiltfile. - Do less work per run:
flisk up <stack>starts one stack;flisk up <stack> --only <service...>starts a few services plus what they depend on. - Narrow discovery: keep
discovery.pathsin.flisk/project.jsonto the folders that holdservice.jsonfiles (the default isservices/*/*), and keep large trees such as data or build output out of them. - Keep golden images cached;
FLISK_GOLDEN_REBUILD=1 flisk upforces a full rebuild and is only for a suspected stale image. - Trim the service graph: drop
dependsOnentries a service does not need, and split very large stacks. - Measure again with the same commands and report both timings.
Guardrails
- Do not hand-edit
.autogenerated/or.flisk/.flisk-out/to save time; regenerate withflisk uporflisk config regenerate. - Do not disable health checks or validation to gain speed.
- Report measured timings, and say which runs were cold (no images) and which were warm.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

