flisk-frontend
Skill4 starsChanged 34 days agoMITView on GitHub
Add and run a frontend (storefront, SPA, admin app) in a Flisk stack and work with what Flisk generates for it - nginx config, Vite configs, tsconfig, `.env.frontend.autogenerated`, `env.ts` and the typed `api-client.ts` that calls the stack's backend - plus base paths behind Traefik. Use when adding a web app to a stack or when a frontend build, route or API call fails. To choose between React, Vue, Next.js and the other frameworks, see flisk-build-runtimes.
- 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-generated-filesSkill
- flisk-helmSkill
- flisk-import-composeSkill
- flisk-import-procfileSkill
- flisk-layoutSkill
- flisk-portsSkill
- 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
3 rules. About 0 are common, 0 are distinctive, and 3 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.
3
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
- Very specific: line 16
Write the app in the service directory.
- Very specific: line 34
Do not hand-edit generated nginx, Vite or tsconfig files.
- Very specific: line 35
If bun run build says a .autogenerated/vite.config...
≈ “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
Frontend services
Workflow
- Scaffold it:
flisk resource storefront --type frontend --stack shop --yes(React by default;--framework vueand others, see flisk-build-runtimes).--base-path /shopsets the path it is served under (basePathinservice.json). - Write the app in the service directory. Call the backend through the generated
api-client.ts(or the URL exported byenv.ts) instead of hard-coding a host. flisk up shopbuilds it and serves it through nginx behind Traefik. Take the URL fromflisk networks.- Change ports, dependencies or the base path in
service.json;flisk upregenerates the files.
What Flisk generates in .autogenerated/
| File | Purpose |
nginx.autogenerated.conf | serves the built app and routes API requests |
Dockerfile.app.autogenerated | builds the image for the local stack |
vite.config.frontend.autogenerated.ts, vite.config.build.autogenerated.ts | dev server and production build |
tsconfig.autogenerated.json, tsconfig.docker.autogenerated.json | host and container TypeScript settings |
.env.frontend.autogenerated, env.ts, api-client.ts, api-index.ts | API URL and a preconfigured client |
Next.js (--framework next) has no Vite config and no nginx: it runs next dev in development and the standalone server for production.
Guardrails
- Do not hand-edit generated nginx, Vite or tsconfig files;
flisk uprefuses to start when they drift. - If
bun run buildsays a.autogenerated/vite.config...file does not exist yet, runflisk uponce to generate it. - List of generated files: docs/generated-files.md.
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.

