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

flisk-layout

Skill4 starsChanged 33 days agoMITView on GitHub

Decide where a Flisk project lives when services span several repositories or teams - one platform repo with bring-your-own services versus one project per service repo - plus name and port clashes between projects, CODEOWNERS for service.json files, and layouts for about 5, 20 and 50 services. Use when planning project structure or onboarding a team. For adding one service, use flisk-scaffold or flisk-byo.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 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.

  • 2

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

    Keep every service.json inside the project root.

    line 20
  2. Very specific:

    Keep service.json the single source of truth.

    line 34

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

Layout and ownership

One Flisk project is one repository tree: the CLI finds services by walking the project directory for service.json files.

Workflow

  1. Pick a layout:
    • One platform repo: one .flisk/project.json, a service.json per service. Code that lives in another repo is wrapped as a bring-your-own resource, from a registry image or from a sibling checkout via buildContext.
    • One project per service repo: the ordinary single-repo flow. Each team keeps its files, at the cost of one Postgres and one Traefik per project on the same default host ports.
  2. Keep every service.json inside the project root. A service.json outside it, or a discovery.paths entry pointing into another repo, is not supported (the CLI and Tilt disagree and generation is refused). Symlinked directories are not followed.
  3. Group services into stacks by team or domain, so flisk up <stack> starts only what one team needs.
  4. Ownership: give .flisk/project.json to the platform team in CODEOWNERS, and each stack's services/<stack>/ to its team.
  5. Agent guidance: flisk project writes an AGENTS.md and the Flisk skills into the project. For an existing repo, start from the landscape template and add only repo-specific rules.

Name and port clashes

  • Two projects on one Docker daemon need different project names; containers are named <project>-<stack>-autogenerated-<service>-1.
  • The same appName twice in one project fails flisk doctor with Duplicate resource names.
  • Two services with the same port only warn, because service ports are not published on the host.

Guardrails

  • Install the skills once per machine or project; do not copy the catalog into every service repo.
  • Keep service.json the single source of truth; never edit generated files to make a layout work.
  • Guide, including the 5, 20 and 50 service layouts: docs/layout.md.

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.