<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
eobrien60/forge/obh-lwd-manifest
──Details
PublishedOctober 22, 2026 at 05:32 PM
Content Hashsha256:883dd7d3766e5ee6...
Git SHAac17954a9590
──Files
Files (1 file, 3.3 KB)
SKILL.md3.3 KBactive
SKILL.md · 32 lines · 3.3 KB

version: "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)

  1. Read the topology. From forge.json and apps/*, 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.
  1. 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.
  1. 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.
  1. 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.
  1. 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.
  1. 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)

  1. Generate, then review. Run forge generate lwd (--dry-run first) to emit/update the manifests from forge.json. Hand-edit only for things the generator can't know: replica counts, external-DB endpoints, worker health specifics, network scoping. Re-run forge doctor to 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.

All versions