agentleFS
flisk-shflisk-sh/flisk-skills/skills/flisk-scaffold/SKILL.md

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

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
  1. Very specific:

    Use the CLI to generate a consistent service.json and starter code instead of hand-writing boilerplate.

    line 13
  2. Very specific:

    Add --language, --framework or --feature for other runtimes and features (see flisk-build-runtimes and flisk-databases).

    line 44
  3. Very specific:

    Run flisk doctor, then flisk up <stack>.

    line 46
  4. Distinctive:

    Use kebab-case names, unique across the Flisk projects that share one Docker daemon.

    line 51
  5. Very specific:

    Do not hand-edit .autogenerated/ files.

    line 52
  6. Very specific:

    Check the service schema before inventing a new type: the CLI accepts backend, frontend, worker, mcp, agent, bring-your-own and sdk.

    line 54
  7. Distinctive:

    Use only one starter per project, and tell the user which one you cloned.

    line 55

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 an AGENTS.md (skip those with --no-agent-skills).
  • From a starter or example: flisk project <template> --path <folder> --yes, then cd <folder>. The clone already has .flisk/project.json; next run flisk doctor and flisk up.
TemplateWhat it is
exampleThe 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
saasAccount dashboard, billing API and a checkout
ecommerceVue storefront and a catalog API
agent-stackBun agent, MCP tool server, Postgres and NATS
user-managementAdmin and portal apps, an audit API and worker
erpAbout 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

  1. Decide the stack name (for example shop, identity). Resources of one stack start together and share a database.
  2. Scaffold it:
    flisk 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
    For a plain process with no Docker or Tilt (a sandbox such as Bolt, StackBlitz, Lovable or v0), add --local to a backend or frontend resource: it writes a command into service.json, no Dockerfile, and flisk up runs it directly (not with --feature prisma). Do not probe for Docker, do not install flisk globally and do not search the web: it is the npm package @flisk-sh/flisk. Add --language, --framework or --feature for other runtimes and features (see flisk-build-runtimes and flisk-databases).
  3. Review the generated service.json and starter files under services/<stack>/<name>/.
  4. Run flisk doctor, then flisk up <stack>.

Guardrails

  • Pass --yes in 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; change service.json and let flisk up regenerate them.
  • Database migrations belong in a separate migrator resource, 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-own and sdk.
  • Use only one starter per project, and tell the user which one you cloned.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.