flisk-byo
Skill4 starsChanged 34 days agoMITView on GitHub
Bring an existing service into a Flisk stack as a bring-your-own (BYO) resource with `flisk resource <name> --type bring-your-own` - from its own Dockerfile, a registry image, or a source tree elsewhere in the repo - including one-shot jobs such as migrations and seeders (`--restart no`). Use when you already have a Dockerfile, image or start command and want `flisk up` to run it. For a root docker-compose.yml use flisk-import-compose; for a Procfile use flisk-import-procfile; for new code use flisk-scaffold.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- flisk-agentsSkill
- flisk-benchmarkSkill
- flisk-build-runtimesSkill
- 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-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
5 rules. About 0 are common, 1 is distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Only source and a start command → write a small Dockerfile that runs it, then the workflow below.
- Very specific: line 34
Run flisk doctor, then flisk up <stack>, and check the URL from flisk networks.
- Very specific: line 40
Read DATABASE_URL from the environment if it uses the project Postgres.
- Very specific: line 50
Add the job's dependency (postgres, or the migrator) to dependsOn.
- Very specific: line 57
Do not hand-edit .autogenerated/.
≈ “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
Bring-your-own resources
A BYO resource is your container under Flisk's routing, health checks and stacks. Flisk generates the wiring, not the application code.
Choose the path
- A root
docker-compose.yml→flisk import . --dry-run, thenflisk import .(the flisk-import-compose skill). It writes one BYO resource per Compose service. - A Dockerfile or an image for one service → the workflow below.
- Only source and a start command → write a small Dockerfile that runs it, then the workflow below.
- A production Helm chart or Terraform → keep it for production and use BYO for the local loop (the flisk-helm skill).
Workflow
- Register it with the CLI (do not write
service.jsonby hand; a hand-written one can be skipped by discovery):# from a Dockerfile, relative to the resource directory flisk resource legacy --type bring-your-own --stack shop \ --dockerfile ./Dockerfile --health-path /health --path services/shop/legacy --yes # from an existing image, without a Traefik route flisk resource cache --type bring-your-own --stack shop --image redis:7-alpine --no-proxy --yes - To build from source elsewhere in the repo, set
"buildContext"in the generatedservice.json(relative to the resource directory);dockerfileis then relative to that context. - Run
flisk doctor, thenflisk up <stack>, and check the URL fromflisk networks.
What the container must do
- Listen on the
portinservice.json, read fromPORT, and bind to0.0.0.0. - Answer HTTP 200 on
healthCheckPathif it speaks HTTP. Non-HTTP services (databases, brokers) use--no-proxy. - Read
DATABASE_URLfrom the environment if it uses the project Postgres.
One-shot jobs
A BYO container restarts with unless-stopped by default, so a job that exits 0 would start again forever. Use --restart no:
flisk resource migrate --type bring-your-own --stack shop --dockerfile ./Dockerfile --restart no --yesAdd the job's dependency (postgres, or the migrator) to dependsOn. Ready-made jobs for Atlas, Dbmate, Drizzle, Prisma, TypeORM and others are in examples/byo-jobs.
Guardrails
- You own the Dockerfile and the health route. An existing Dockerfile is never overwritten.
--pathmust stay inside the project; aservice.jsonoutside the project root is not supported.- Resource names must be unique across the Flisk projects that share one Docker daemon.
- Do not hand-edit
.autogenerated/. Changeservice.jsonand regenerate. - Guide: docs/byo.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.

