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

flisk-doctor

Skill4 starsChanged 34 days agoMITView on GitHub

Check or repair the local Flisk development environment and project configuration using `flisk doctor` (including `--all`, `--json` and `--fix`). Use when setting up a Flisk project, before running `flisk up`, or when Docker, Tilt, Bun, ports, Docker networks, generated files or service manifests may be misconfigured. For a stack that started and then failed, use flisk-troubleshoot instead.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Distinctive:

    Use the CLI's environment and project checks as the starting point for Flisk setup and diagnosis.

    line 13
  2. Very specific:

    Run flisk doctor from the Flisk project root.

    line 17
  3. Distinctive:

    Read the full output and distinguish host prerequisites from project configuration findings.

    line 18
  4. Very specific:

    Run flisk doctor again to confirm the finding is resolved.

    line 20
  5. Very specific:

    Before starting services, use flisk networks to inspect the routed URLs.

    line 21
  6. Very specific:

    When Docker refuses new networks (all predefined address pools have been fully subnetted), run flisk doctor --fix --scope=machine.

    line 38
  7. Very specific:

    Do not claim the project is ready when flisk doctor reports unresolved errors.

    line 42
  8. Distinctive:

    Ask before starting a large landscape or a task likely to build or launch many containers.

    line 44
  9. Distinctive:

    Avoid stopping containers by broad name patterns.

    line 45
  10. Distinctive:

    Treat diagnostic output as evidence.

    line 46

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

Flisk doctor

Use the CLI's environment and project checks as the starting point for Flisk setup and diagnosis.

Workflow

  1. Run flisk doctor from the Flisk project root.
  2. Read the full output and distinguish host prerequisites from project configuration findings.
  3. Fix the source configuration or environment item named by the diagnostic. Do not hand-edit generated .autogenerated/ output.
  4. Run flisk doctor again to confirm the finding is resolved.
  5. Before starting services, use flisk networks to inspect the routed URLs; start only the needed stack with flisk up <stack> when appropriate.

When the standard check is not enough

flisk doctor has no --verbose flag of its own. Use these instead:

  • flisk doctor --all runs every check and prints the Machine and Project sections with a summary.
  • flisk doctor --json prints the versioned readiness report: each check's name, result, message and fix. Read it instead of parsing the human output.
  • flisk doctor --no-ping skips pinging the /health of running services; --ping-timeout <ms> gives slow services longer.
  • flisk doctor --strict fails on warnings too, such as a WSL project under /mnt/c.
  • flisk config verify --json checks that the generated files match .flisk/project.json and every service.json. Doctor checks the machine and the services; config verify checks generated-file consistency.
  • FLISK_VERBOSE=1 prints error details that some commands (for example flisk networks and flisk upgrade) otherwise hide.
  • FLISK_DEBUG=1 flisk up --verbose adds the engine's Starlark debug logs to the Tilt output.

Repairs

  • flisk doctor --fix --dry-run lists the repairs without changing anything. flisk doctor --fix applies them after asking (--yes skips the question). It removes this project's unused Docker networks and leftover doctor probes.
  • When Docker refuses new networks (all predefined address pools have been fully subnetted), run flisk doctor --fix --scope=machine. It also removes the unused networks of other Flisk projects, and skips any network a container is attached to.

Guardrails

  • Do not claim the project is ready when flisk doctor reports unresolved errors.
  • The exit code of flisk doctor --json reflects the host state; read the report, not only the exit code.
  • Ask before starting a large landscape or a task likely to build or launch many containers; it can take several minutes and use substantial resources.
  • Avoid stopping containers by broad name patterns. Identify the target project and stack first.
  • Treat diagnostic output as evidence. If it does not identify a cause, report what was observed and gather the next relevant check instead of guessing.

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.