Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: obh-lwd-manifest description: Use to assess or generate lwd deploy manifests for a Forge project. Reads topology and works out correct surface types, the Postgres co-location rule, network isolation, and secret NAMES (assessment); then runs forge generate lwd and applies the few hand-edits the generator can't infer (implementation). Assessment-only by default; generates on request.
Purpose: produce correct deploy/*.lwd.toml manifests that match the app topology. Prefer generating them with Forge; hand-edit only for constraints the generator can't infer. lwd manifests reference secret NAMES only — values are set out-of-band with lwd secret set.
Assessment (read-only)
- Read the topology. From
forge.jsonandapps/*, list the deployable surfaces: api, admin/web, worker. Note replica intent (is the API meant to scale,replicas > 1?) and whether a database is expected to be managed by lwd or external.
- One surface per manifest, correctly typed. Each app gets its own
deploy/<app>.lwd.toml. A worker is a separate surface from the API — it needs its own domain/entrypoint and its own health check (a liveness signal from the tick loop, not the API's HTTP/health). Don't fold the worker into the API manifest.
- Apply the Postgres co-location rule. A
[[services]]Postgres may be co-located only with a single-instance surface. If the API is scalable (replicas > 1), it cannot co-locate a[[services]]Postgres — point it at an external/managed database instead. A small dev/single-replica API may co-locate Postgres.
- Isolate networks per app. Give each app its own network scope; don't share a network across surfaces beyond what they must reach. The worker and API connect to the same database but are otherwise isolated.
- List secret NAMES only. Enumerate required secrets by NAME (DB URL, S3/files keys, API-key signing secret, webhook signing secret, SMTP for notifications). Never put values in the toml. Note that each is provisioned with
lwd secret set <NAME>per environment.
- Choose small vs. split topology. Small: api + worker + co-located Postgres, single replicas — fine for dev/low volume. Split: replicated API (external DB) + independent worker + managed Postgres — for production scale. Pick based on the replica intent from step 1.
Produces the manifest plan (intended surfaces, types, co-location decision, secret NAMES, small-vs-split recommendation). Nothing above writes any file — a valid stopping point when you only need the survey.
Implementation (only after the plan is agreed)
- Generate, then review. Run
forge generate lwd(--dry-runfirst) to emit/update the manifests fromforge.json. Hand-edit only for things the generator can't know: replica counts, external-DB endpoints, worker health specifics, network scoping. Re-runforge doctorto validate.
Output
Assessment → the manifest plan: per surface, its correct type, the Postgres co-location decision, network isolation, and the secret NAMES to lwd secret set, plus a topology recommendation (small vs. split) tied to replica intent. Implementation → the deploy/*.lwd.toml manifests (one per surface) via forge generate lwd (with --dry-run), and an explicit note of any hand-edits made and why the generator couldn't produce them.