flisk-scaffold
Skill4 starsChanged 34 days agoMITView on GitHub
Start a new Flisk project (blank with `flisk project`, or from an official starter or example with `flisk project <template>`) and generate new services in it with `flisk resource <name> --type backend|frontend|worker|agent|mcp --stack <stack>`. Use when starting a project, cloning a runnable example to learn from, or adding a service that does not exist yet. To wrap code or an image that already exists, use flisk-byo; for the agent runtime contract, use flisk-agents.
- 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-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
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use the CLI to generate a consistent service.json and starter code instead of hand-writing boilerplate.
- Very specific: line 44
Add --language, --framework or --feature for other runtimes and features (see flisk-build-runtimes and flisk-databases).
- Very specific: line 46
Run flisk doctor, then flisk up <stack>.
- Distinctive: line 51
Use kebab-case names, unique across the Flisk projects that share one Docker daemon.
- Very specific: line 52
Do not hand-edit .autogenerated/ files.
- Very specific: line 54
Check the service schema before inventing a new type: the CLI accepts backend, frontend, worker, mcp, agent, bring-your-own and sdk.
- Distinctive: line 55
Use only one starter per project, and tell the user which one you cloned.
≈ “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
Scaffold Flisk projects and resources
Use the CLI to generate a consistent service.json and starter code instead of hand-writing boilerplate.
Start a project
- Blank project in the current directory:
flisk project --yes. It writes.flisk/project.json, the project.env, and the Flisk agent skills plus anAGENTS.md(skip those with--no-agent-skills). - From a starter or example:
flisk project <template> --path <folder> --yes, thencd <folder>. The clone already has.flisk/project.json; next runflisk doctorandflisk up.
| Template | What it is |
example | The smallest one: Hono API, Postgres, NATS worker and a Vite app (bundled with the CLI, no clone) |
restaurant (also demo) | Reservations, kitchen and floor apps and APIs |
saas | Account dashboard, billing API and a checkout |
ecommerce | Vue storefront and a catalog API |
agent-stack | Bun agent, MCP tool server, Postgres and NATS |
user-management | Admin and portal apps, an audit API and worker |
erp | About 100 services: a scale test, not an app to build on |
The flisk repository also has small reference projects under examples/ (one-backend, one-backend-python, one-backend-helm, byo, byo-jobs). Read their service.json files to see a supported pattern.
Add a resource
- Decide the stack name (for example
shop,identity). Resources of one stack start together and share a database. - Scaffold it:
For a plain process with no Docker or Tilt (a sandbox such as Bolt, StackBlitz, Lovable or v0), addflisk resource orders-api --type backend --stack shop --yes flisk resource storefront --type frontend --stack shop --yes flisk resource emails --type worker --stack shop --yes flisk resource bot --type agent --stack shop --yes flisk resource tools-mcp --type mcp --stack shop --yes--localto abackendorfrontendresource: it writes acommandintoservice.json, no Dockerfile, andflisk upruns it directly (not with--feature prisma). Do not probe for Docker, do not installfliskglobally and do not search the web: it is the npm package@flisk-sh/flisk. Add--language,--frameworkor--featurefor other runtimes and features (see flisk-build-runtimes and flisk-databases). - Review the generated
service.jsonand starter files underservices/<stack>/<name>/. - Run
flisk doctor, thenflisk up <stack>.
Guardrails
- Pass
--yesin agent sessions; the pickers only run in an interactive terminal. - Use kebab-case names, unique across the Flisk projects that share one Docker daemon.
- Do not hand-edit
.autogenerated/files; changeservice.jsonand letflisk upregenerate them. - Database migrations belong in a separate
migratorresource, not in an API start script. - Check the service schema before inventing a new type: the CLI accepts
backend,frontend,worker,mcp,agent,bring-your-ownandsdk. - Use only one starter per project, and tell the user which one you cloned.
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.

