agentleFS
flisk-shflisk-sh/flisk-skills/skills/flisk-generated-files/SKILL.md

flisk-generated-files

Skill4 starsChanged 33 days agoMITView on GitHub

Understand which files Flisk owns (everything under `.autogenerated/` and `.flisk/.flisk-out/`), check them for drift with `flisk config verify` and `flisk config explain`, and regenerate them with `flisk up` or `flisk config regenerate`. Use when `flisk up` refuses to start because generated files differ from service.json, when a generated Dockerfile, nginx, Vite, tsconfig or env file looks wrong, or when reviewing what the CLI writes. To change what gets generated, edit service.json (see flisk-service-json).

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run flisk up (or flisk up --dry-run to only check).

    line 27
  2. Very specific:

    Only when the user asks to start anyway: flisk up --ignore-drift.

    line 36
  3. Very specific:

    Never commit hand edits to .autogenerated/ files.

    line 40
  4. Very specific:

    If a generated file is wrong for a valid service.json, the fix belongs in the generator in flisk-sh/flisk, not in the output.

    line 41

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

Generated files and drift

Flisk writes the local runtime files from each service.json. You own the contract; the CLI owns the generated wiring.

Who owns what

FileOwner
service.json, .flisk/project.json, the project .env, your app code and package.jsonYou
services/<stack>/<name>/.autogenerated/* (Dockerfile, nginx, Vite, tsconfig, env files, service.yaml, api-client.ts)Flisk
.autogenerated/.flisk-contract/ (snapshots for drift detection)Flisk
.flisk/.flisk-out/ (the Tiltfile and the vendored engine)Flisk, git-ignored

Workflow

  1. Change only the source: service.json, .flisk/project.json, or your code.
  2. Run flisk up (or flisk up --dry-run to only check). It regenerates the service files and refuses to start when a generated file was edited by hand, naming the file.
  3. To check without starting anything: flisk config verify --json compares the project contract, every service.json and the file snapshots. It reports and never blocks.
  4. To ask about one file: flisk config explain <path> says whether Flisk generates it, from which input, and whether editing it blocks flisk up.
  5. To rewrite the project-level files from .flisk/project.json: flisk config regenerate. After a schema change, flisk config migrate updates old service.json files.

If a hand edit blocks flisk up

  1. Move the intended change into service.json, the project config or the generator.
  2. Regenerate with flisk up (service files) or flisk config regenerate (project files).
  3. Only when the user asks to start anyway: flisk up --ignore-drift. The edit is lost on the next regeneration.

Guardrails

  • Never commit hand edits to .autogenerated/ files.
  • If a generated file is wrong for a valid service.json, the fix belongs in the generator in flisk-sh/flisk, not in the output.
  • Full list of outputs per service type: docs/generated-files.md.

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.