flisk-ports
Skill4 starsChanged 34 days agoMITView on GitHub
Find and fix the URLs of a Flisk stack - list routed URLs with `flisk networks` (alias `flisk urls`), understand Traefik routing on `*.localhost`, host port selection (port 80, else 8080-8180) and the FLISK_HTTP_PORT, FLISK_HTTPS_PORT, FLISK_POSTGRES_PORT and FLISK_BIND_ADDRESS overrides. Use when a service is unreachable, returns a Traefik 404, a host port is taken, or you need to reach the stack from another device. Docker network exhaustion is a flisk-doctor topic, not this one.
- 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-scaffoldSkill
- 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
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read the shape of a URL:
- Very specific: line 24
After changing a service.json, re-run flisk networks to confirm the new route.
- Very specific: line 35
Do not hard-code host ports or URLs in code.
- Very specific: line 36
Do not set port in service.json unless you need a specific container port.
≈ “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
Ports, routes and localhost URLs
flisk up picks the host ports and prints the exact URLs; Traefik routes each request to its service. Use the printed URLs instead of building your own.
Workflow
- List the routes:
flisk networks(add--stack <stack>,--jsonfor the versioned envelope, or--rawfor bare URLs). It also checks each URL. - Read the shape of a URL:
- A backend, agent or MCP server named
orders-apiis served athttp://api.<project>.localhost/api/orders(a trailing-apiis dropped;apiPathinservice.jsonoverrides the path). - A frontend is served under its base path (
basePathinservice.json, set withflisk resource --base-path); take its full URL fromflisk networks.
- A backend, agent or MCP server named
- Host ports: port 80 is used when free, so URLs carry no port. Otherwise a free port in 8080-8180 is chosen and appears in every URL. Postgres listens on
15432. - Override a port with
FLISK_HTTP_PORT,FLISK_HTTPS_PORTorFLISK_POSTGRES_PORTin the environment or the project.env. - Ports bind to
127.0.0.1. SetFLISK_BIND_ADDRESS=0.0.0.0only to test from another device;flisk doctorwarns while it is set. - After changing a
service.json, re-runflisk networksto confirm the new route.
Troubleshooting
HTTP 404from Traefik: the URL has no route. Compare it withflisk networks.- A service's own
portis not published on the host; only Traefik and Postgres are. Reach services through Traefik. - On Linux or WSL2, a non-root user usually cannot bind port 80, so URLs fall back to the 8080-8180 range.
flisk uishows the same services interactively.
Guardrails
- Do not hard-code host ports or URLs in code; read them from the generated environment (for example
env.tsin a frontend). - Do not set
portinservice.jsonunless you need a specific container port;flisk resourcepicks a free one in the type's range.
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.

