flisk-import-compose
Skill4 starsChanged 33 days agoMITView on GitHub
Import an existing Docker Compose project into Flisk with `flisk import .` - it reads the root Compose file (docker-compose.yml/.yaml, compose.yml/.yaml) and writes one bring-your-own service.json per service, keeping images, builds, ports and their host address, volumes and their Docker names, healthchecks, depends_on conditions, command/entrypoint, env_file, tmpfs, limits, profiles and models. Then prove it on a real run before any PR. Use when a repo has a root Compose file and the user wants it under `flisk up`, or to propose Flisk to a project that uses Compose. For a single Dockerfile or image use flisk-byo; for a Procfile use flisk-import-procfile.
- 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-procfileSkill
- flisk-layoutSkill
- flisk-portsSkill
- flisk-scaffoldSkill
- flisk-secretsSkill
- 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
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
- could be automatic: a setting could enforce it
- Very specific: line 18
Run flisk import . --yes to write.
- Very specific: line 44
Every not written and not translated line is a gap.
- Very specific: line 45
Never edit or delete the project's Compose file.
- Very specific: line 47
Does not start anything. Put secrets in .env, not in the plan output or a PR.
≈ “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
Import Docker Compose into Flisk
flisk import reads the root Compose file and writes one bring-your-own service.json per service. flisk export compose writes a standalone Compose file back from those files, so a project can keep plain docker compose working.
Workflow
- From the repo root run
flisk import . --dry-runand read every line under Skipped / not fully imported and everynote:. - Run
flisk import . --yesto write. Put the values it lists as missing into the project.env(never commit it). flisk doctor,flisk up <stack> --dry-run, thenflisk up <stack>for real.- Optional:
flisk export composewrites.autogenerated/docker-compose.yml; run it withdocker compose --env-file .env -f .autogenerated/docker-compose.yml up -d(Compose reads.envfrom the file's own folder otherwise). CI can runflisk export compose --check.
What maps
image→image;build→buildContext+dockerfile.command/entrypointon an image → a smallDockerfilenext toservice.json(FROMthe image +CMD/ENTRYPOINT).- Ports: one HTTP port is routed; every other published port becomes
extraPortson the same host address as in Compose ("80:80"→"bind": "0.0.0.0","127.0.0.1:5432:5432"→ loopback, another address or${VAR:-default}→publish). volumes: named volumes keep their Docker name (volumes[].name), so an existing install's data is reused; bind mounts stay inside the project.healthcheck→healthCheck.command;depends_onconditions →dependsOn;restart→restart.env_file→envFile;tmpfs→container.tmpfs;deploy.resources.limits→container.cpus/container.memory;profiles→profiles(flisk up --profile);models→models.- Secrets and other non-literal values go to
secrets.requiredand the project.env.
Prove it before a PR
A dry run and a green CI badge are not evidence. Before proposing the change to a project, follow flisk-convert step 5. The reference is the self-review on biolend83/tubehaus#42, which was merged:
- a real
flisk upon the released Flisk the docs name, with fresh volumes or a throwaway project name (on Colima, run from under$HOME); - screenshots of the app doing something real, the
flisk upoutput, Tilt all green, and the changed service's logs, with the raw text under each; - each migrated setting traced
.env→service.json→ generated Compose →docker inspect, and ports checked from outside (loopback vs the LAN address); - a self-review comment: checked, fixed after review, behaviour changes, Flisk-side issues, not verified;
- Flisk offered as an option next to their Compose file, the same volume names, and disclosure that you work on Flisk and used an AI assistant.
Guardrails
- Every
not writtenandnot translatedline is a gap. If the result does not start the same stack, fix Flisk (the importer, the exporter or core), not the user's project. - Never edit or delete the project's Compose file. Never overwrite an existing
service.jsonwithout--force. - Service names become kebab-case (
lychee_api→lychee-api); check that other services still reach the old hostname. - Does not start anything. Put secrets in
.env, not in the plan output or a PR.
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.

