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
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-service-jsonSkill
- flisk-starlark-perfSkill
- flisk-troubleshootSkill
- flisk-uiSkill
- flisk-unfollowersSkill
- flisk-upgradeSkill
- layer-autoresearchSkill
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
- Very specific: line 31
Run flisk doctor: it reports missing or empty keys in .env and a DATABASE_URL whose password differs from DB_PASSWORD.
- Very specific: line 44
Never commit real secrets, .env files or license keys, and never print secret values.
- Very specific: line 46
Do not edit the generated env files.
≈ “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
Environment, params and secrets
| What | Where you write it | Committed? |
| Non-secret config | params in service.json | Yes |
| A secret's name | secrets in service.json | Yes |
A secret's value, DB_PASSWORD, JWT_SECRET | the project .env | No (gitignored) |
Workflow
- Non-secret value: add it to
paramsin the service'sservice.json:
Flisk writes it to the generated{ "params": { "API_BASE_URL": "http://localhost", "GREETING": "hello world" } }.autogenerated/.env.<type>.autogenerated.envVarsis the deprecated name. - Secret: name it in
service.jsonand put the value in.env:
A missing required secret makes Compose refuse to start the resource and name the variable; an optional one arrives empty.{ "secrets": { "required": ["STRIPE_KEY"], "optional": ["SENTRY_DSN"] } } - Run
flisk doctor: it reports missing or empty keys in.envand aDATABASE_URLwhose password differs fromDB_PASSWORD. - Restart the stack with
flisk upso the containers pick the values up.
Good to know
flisk projectcreates.envwith a generatedDB_PASSWORDandJWT_SECRET;flisk upadds keys a newer CLI needs and never changes an existing value.flisk up --env-file .env.integrationuses that file instead of.envfor one run. It must be inside the project and carryTILT_ENV,DB_PASSWORDandJWT_SECRET(copy.envto start one).- The Postgres volume keeps the password it was created with; changing
DB_PASSWORDlater does not change the database password. FLISK_SECRET_PROVIDER=infisicalleaves secrets to Infisical; nothing is injected from.env.jwtSecretinservice.jsonis ignored; setJWT_SECRETin.env.
Guardrails
- Never commit real secrets,
.envfiles or license keys, and never print secret values. .flisk/.project-idis local machine state; make sure the project's.gitignorecovers it.- Do not edit the generated env files; change
paramsor.env. - Guide: docs/environment.md.
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.

