agentleFS
flisk-shflisk-sh/flisk/.claude/skills/flisk-recipe-shop/SKILL.md

flisk-recipe-shop

Skill49 starsChanged 36 days agoMITView on GitHub

Recipe for "build me a small online shop" with Flisk - a storefront website and an orders API with a database in one stack, started with `flisk up` and checked URL by URL. Use with the flisk-build skill when the user asks for a shop, store, catalogue or anything with products and orders.

The file

Files
SKILL.md

Recipe: a small online shop

Parts: a storefront the user opens in the browser, and an orders API that stores products and orders.

Steps

flisk doctor
flisk project --yes
flisk resource storefront --type frontend --stack shop --yes
flisk resource orders-api --type backend --stack shop --feature drizzle --yes
flisk up shop --dry-run
flisk up shop --json &        # wait for {"ok":true}
flisk networks --stack shop --raw

App code

  • services/shop/orders-api/src/schema.ts: a products table and an orders table. Use src/db.ts for queries.
  • services/shop/orders-api/src/index.ts: GET /products, POST /orders, GET /orders. Keep /health and /health/db. Create the tables as the flisk-build skill says under "Tables"; seed three products if the table is empty.
  • services/shop/storefront/src/: a page that lists the products from the API and a button that places an order. Call the API through the generated client in .autogenerated/ (the api-client feature), not a hard-coded host.

Done when

Each of these answers 200 (ports come from flisk networks):

  • the storefront health URL, for example http://app.<project>.localhost:<port>/storefront/health
  • http://api.<project>.localhost:<port>/api/orders/health
  • http://api.<project>.localhost:<port>/api/orders/health/db

Then tell the user: "Your shop is running. Open the storefront at … . The orders API is at … ; try curl …/api/orders/products. Stop it with flisk down."

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.