flisk-convert
Skill49 starsChanged 36 days agoMITView on GitHub
Convert any existing app (Node, Python, Go, Rust, Bun, a static site, a Docker Compose or Procfile project, a monorepo) to run with Flisk, so `flisk up` starts it locally. Picks the right path (local processes, bring-your-own container, or `flisk import`), writes the `service.json` files with the CLI, and checks every URL. Use when the user says "convert this app to Flisk", "run this with Flisk", "add Flisk to this repo" or "move my Compose setup to Flisk". For a new app from a plain request, use flisk-build.
- Reads credentials
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cli/AGENTS.mdAGENTS.md
- flisk-agent-opsSkill
- flisk-bug-hunterSkill
- flisk-buildSkill
- flisk-doctorSkill
- flisk-e2e-authorSkill
- flisk-recipe-ai-agentSkill
- flisk-recipe-blogSkill
- flisk-recipe-saasSkill
- flisk-recipe-shopSkill
- flisk-recipe-startersSkill
- flisk-releaseSkill
- flisk-resourceSkill
- flisk-scan-convertSkill
- flisk-startup-perfSkill
- flisk-statusSkill
- flisk-tool-addSkill
- flisk-troubleshootSkill
- flisk-upSkill
- layer-autoresearchSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 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.
7
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 33
Prefer A when it fits: nothing to install but Flisk and the app's runtime.
- Very specific: line 47
C. Import: Run flisk import <path>, read every generated service.json, and fix ports and health paths by hand.
- Very specific: line 54
If something is red, read flisk logs --service <name> and use the flisk-troubleshoot skill.
- Very specific: line 68
Offer Flisk as an option: keep their Compose file as the main way unless they ask otherwise, reuse the same Docker volume names so no data …
- Very specific: line 73
Never delete or rewrite the app's Compose file, Tiltfile or charts.
- Very specific: line 74
Do not hand-write Dockerfiles or Compose files for Flisk.
- Very specific: line 76
Do not commit .env or secrets.
≈ “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
Convert an app to Flisk
Take an app that already exists and make flisk up start it. Change as little as possible: keep the app's code, its Compose file, Tiltfile and Helm charts. Flisk only adds service.json files and a .flisk/ folder.
0. Whose repo is it?
Your own repo, or one the user owns: go on. Someone else's repo: check its size first (gh repo view OWNER/REPO --json stargazerCount -q .stargazerCount). More than 500 stars means no pull request from us, ever: a maintainer of a large org blocked us for one (2026-11-02). Do not open it, and do not push a branch to a fork "for later". You may still convert a local clone to try Flisk, if the user asks; tell them it stays local. At 500 stars or fewer, follow the repo's CONTRIBUTING, disclose that you are a Flisk maintainer using an AI assistant, and open an issue or discussion before a large change.
1. Look before you change
Work on a branch. Read the repo and list the parts that start together: websites, APIs, workers, agents, databases. For each part note the start command, the port it listens on, and an HTTP path that answers 200 when it is healthy. Run git status so you can see what Flisk adds later.
2. Pick one path per project
A database or cache can run in Docker next to command services: give it an image (no command, no dockerfile) and flisk up starts it with docker run (a mixed run, docs/run-without-docker.md). Any other mix, such as a service built from a Dockerfile next to a command service, is refused with MIXED_RUNTIME.
| The app | Path |
| Every part starts with one command and needs no database or Docker image | A. Local processes: a command in each service.json |
| A part needs Postgres, Redis or another image, one gateway URL, or the container it deploys | B. Containers: flisk resource <name> --type bring-your-own (a Dockerfile or an --image), the others as normal Flisk resources |
It already has a docker-compose.yml, a Procfile or several Dockerfiles | C. Import: flisk import <path> reads them and writes the resources (needs npx), then check each result by hand |
Prefer A when it fits: nothing to install but Flisk and the app's runtime.
3. Convert
A. Local processes. In each part's folder write service.json with schemaVersion: 1, appName (kebab-case), appType (frontend, backend, worker, mcp, agent), command, port and healthCheckPath. Add dependsOn for start order and env for URLs between parts. The command runs from that folder and must read PORT from the environment. Then run flisk up --dry-run.
B. Containers. From the repo root run flisk project --yes. Wrap each existing part:
flisk resource <name> --type bring-your-own --stack <stack> --dockerfile ./Dockerfile --port <port> --health-path /health --yesUse --image <name> instead of --dockerfile for a ready-made image, --register-existing for a folder that already has a service.json, and --restart no for a one-shot job. The container must listen on the port in service.json, bind to 0.0.0.0 and answer 200 on the health path. New parts that Flisk can scaffold use flisk resource <name> --type backend|frontend|worker|agent|mcp.
C. Import. Run flisk import <path>, read every generated service.json, and fix ports and health paths by hand.
4. Check and start
flisk doctor, thenflisk up --dry-run(orflisk up <stack> --dry-run). Fix what they report.flisk up(orflisk up <stack>). It prints the URLs.flisk statusand open each URL. A part is done only when its URL answers.- If something is red, read
flisk logs --service <name>and use the flisk-troubleshoot skill. - Stop with
flisk down.
5. Prove it on a real run (for a PR to someone else's repo)
A dry run and a green CI check are not evidence. Before asking a maintainer to merge, run the converted stack for real and show it. The reference is the self-review on biolend83/tubehaus#42, which was merged:
- Start it for real with the released Flisk the docs name (
flisk up, not only--dry-run), with the values a user would set in.env. Use a throwaway project name or fresh volumes so an older test's data (an old database password) cannot fake a failure or a pass, and remove those volumes afterwards. On Colima, run from under$HOME: bind mounts from/tmparrive empty. - Show the app working, not just containers up: screenshots of the main page, one real action (a search, a video playing, a login page), and numbers where you can read them (a player's
currentTime, an HTTP status). - Show Flisk's side: the end of the
flisk upoutput, the Tilt UI with every resource green, and the logs of the service you changed. - Trace each setting you migrated end to end:
.env→service.json→ the generated Compose file → what Docker actually did (docker inspect,docker ps). For ports, test from the outside too: loopback answers, the machine's LAN address does not (or does, if that is what Compose did). - Put the raw text under each screenshot (a collapsible block per log), mask anything private (egress IPs, keys), and keep the files.
- Read logs, not badges: a
continue-on-errorCI step is green even when it fails. - Review your own diff in a comment before the maintainer does: what you checked, what you fixed after reviewing (with commits), behaviour changes they should know about, what belongs to Flisk and not to their repo (link the Flisk issue), and what you did not verify (other OS or architecture, a second machine).
- Offer Flisk as an option: keep their Compose file as the main way unless they ask otherwise, reuse the same Docker volume names so no data is copied, and disclose that you work on Flisk and that an AI assistant was used.
- Every gap you hit is a Flisk bug: fix it in Flisk (or file it) instead of working around it in their repo.
Guardrails
- Never delete or rewrite the app's Compose file, Tiltfile or charts. Flisk does not replace them.
- Do not hand-write Dockerfiles or Compose files for Flisk; use
flisk resource. Hand-writtenservice.jsonis fine only for path A. - A database migration runs in its own
migratorresource, not in the API's start script. - Do not commit
.envor secrets. Ask before changing an existing port, rename, or removing a start script. - Report what was added (
git status), the URLs, and what was not converted or not tested.
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.

