flisk-doctor
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 `f
SKILL.md.claude/skills/flisk-doctor/SKILL.md
GitHubFlisk doctor
Use the CLI's environment and project checks as the starting point for Flisk setup and diagnosis.
Workflow
- Run
flisk doctorfrom the Flisk project root. - Read the full output and distinguish host prerequisites from project configuration findings.
- Fix the source configuration or environment item named by the diagnostic. Do not hand-edit generated
.autogenerated/output. - Run
flisk doctoragain to confirm the finding is resolved. - Before starting services, use
flisk networksto inspect the routed URLs; start only the needed stack withflisk 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 --allruns every check and prints the Machine and Project sections with a summary.flisk doctor --jsonprints the versioned readiness report: each check's name, result, message and fix. Read it instead of parsing the human output.flisk doctor --no-pingskips pinging the/healthof running services;--ping-timeout <ms>gives slow services longer.flisk doctor --strictfails on warnings too, such as a WSL project under/mnt/c.flisk config verify --jsonchecks that the generated files match.flisk/project.jsonand everyservice.json. Doctor checks the machine and the services;config verifychecks generated-file consistency.FLISK_VERBOSE=1prints error details that some commands (for exampleflisk networksandflisk upgrade) otherwise hide.FLISK_DEBUG=1 flisk up --verboseadds the engine's Starlark debug logs to the Tilt output.
Repairs
flisk doctor --fix --dry-runlists the repairs without changing anything.flisk doctor --fixapplies them after asking (--yesskips 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), runflisk 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 doctorreports unresolved errors. - The exit code of
flisk doctor --jsonreflects 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.