agentleFS
flisk-shflisk-sh/flisk-skills/skills/flisk-secrets/SKILL.md

flisk-secrets

Skill4 starsChanged 33 days agoMITView on GitHub

Give Flisk services their configuration and secrets - non-secret `params` in service.json, secret names under `secrets.required` / `secrets.optional` with the values in the gitignored project `.env`, `JWT_SECRET` and `DB_PASSWORD`, another env file for one run with `flisk up --env-file`, and Infisical via FLISK_SECRET_PROVIDER. Use when a service needs an API key or environment variable, Compose refuses to start because a variable is missing, or a value does not reach the container. For host ports, see flisk-ports.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run flisk doctor: it reports missing or empty keys in .env and a DATABASE_URL whose password differs from DB_PASSWORD.

    line 31
  2. Very specific:

    Never commit real secrets, .env files or license keys, and never print secret values.

    line 44
  3. Very specific:

    Do not edit the generated env files.

    line 46

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

Environment, params and secrets

WhatWhere you write itCommitted?
Non-secret configparams in service.jsonYes
A secret's namesecrets in service.jsonYes
A secret's value, DB_PASSWORD, JWT_SECRETthe project .envNo (gitignored)

Workflow

  1. Non-secret value: add it to params in the service's service.json:
    { "params": { "API_BASE_URL": "http://localhost", "GREETING": "hello world" } }
    Flisk writes it to the generated .autogenerated/.env.<type>.autogenerated. envVars is the deprecated name.
  2. Secret: name it in service.json and put the value in .env:
    { "secrets": { "required": ["STRIPE_KEY"], "optional": ["SENTRY_DSN"] } }
    A missing required secret makes Compose refuse to start the resource and name the variable; an optional one arrives empty.
  3. Run flisk doctor: it reports missing or empty keys in .env and a DATABASE_URL whose password differs from DB_PASSWORD.
  4. Restart the stack with flisk up so the containers pick the values up.

Good to know

  • flisk project creates .env with a generated DB_PASSWORD and JWT_SECRET; flisk up adds keys a newer CLI needs and never changes an existing value.
  • flisk up --env-file .env.integration uses that file instead of .env for one run. It must be inside the project and carry TILT_ENV, DB_PASSWORD and JWT_SECRET (copy .env to start one).
  • The Postgres volume keeps the password it was created with; changing DB_PASSWORD later does not change the database password.
  • FLISK_SECRET_PROVIDER=infisical leaves secrets to Infisical; nothing is injected from .env.
  • jwtSecret in service.json is ignored; set JWT_SECRET in .env.

Guardrails

  • Never commit real secrets, .env files or license keys, and never print secret values.
  • .flisk/.project-id is local machine state; make sure the project's .gitignore covers it.
  • Do not edit the generated env files; change params or .env.
  • Guide: docs/environment.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.