agentleFS
flisk-shflisk-sh/flisk-skills/skills/flisk-starlark-perf/SKILL.md

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.

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
  1. Very specific:

    Do less work per run: flisk up <stack> starts one stack.

    line 22
  2. Very specific:

    Keep golden images cached.

    line 24
  3. Very specific:

    Do not hand-edit .autogenerated/ or .flisk/.flisk-out/ to save time.

    line 30
  4. Distinctive:

    Do not disable health checks or validation to gain speed.

    line 31

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Flisk Starlark and startup performance

Workflow

  1. Baseline: run flisk doctor once (so slowness is not a broken host), then time a preview and a start:
    time flisk up <stack> --dry-run    # discovery and generation, no containers
    time flisk up <stack>              # adds Tilt and image builds
    Note which phase is slow: discovery, Tiltfile evaluation, golden build, or service builds (tilt logs golden-layers-build, tilt logs <service>).
  2. Evaluate the generated Tiltfile alone, without starting anything: tilt alpha tiltfile-result -f .flisk/.flisk-out/Tiltfile.
  3. 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.
  4. Narrow discovery: keep discovery.paths in .flisk/project.json to the folders that hold service.json files (the default is services/*/*), and keep large trees such as data or build output out of them.
  5. Keep golden images cached; FLISK_GOLDEN_REBUILD=1 flisk up forces a full rebuild and is only for a suspected stale image.
  6. Trim the service graph: drop dependsOn entries a service does not need, and split very large stacks.
  7. Measure again with the same commands and report both timings.

Guardrails

  • Do not hand-edit .autogenerated/ or .flisk/.flisk-out/ to save time; regenerate with flisk up or flisk 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.