/gatewaze-skills:modulesfrom gatewaze-skills
Gatewaze module development workflow. Invoke when fixing or building anything inside a Gatewaze module — admin UI, portal UI, api routes, edge functions, or migrations — e.g. newsletters, forms, meetups, events, ambassadors. The #1 rule: edit the canonical source in the module's OWN repo (~/Git/gatewaze/gatewaze-modules or ~/Git/gatewaze/lf-gatewaze-modules), NEVER the gitignored, generated `.gatewaze-modules/` staging directory in the gatewaze repo — its materialised copy is silently overwritten on rebuild. Covers where each module lives, module anatomy, how `.gatewaze-modules` is generated, how to confirm you're editing the real file, and the migrate / deploy / type-check workflow.
Ships in gatewaze-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Gatewaze is a thin host (gatewaze monorepo: packages/{admin,api,portal,shared})
plus many modules, each a self-contained feature (admin UI, portal UI, api
routes, edge functions, migrations). Modules live in separate repos and are
composed into the host at dev/build time.
.gatewaze-modules/gatewaze/.gatewaze-modules/ is a gitignored, generated staging directory —
it is NOT source. It is produced by the dev/build tooling
(packages/admin/vite-plugin-gatewaze-modules.ts) and wiped by make clean.
Inside it:
local-<repo>-modules → symlinks to your local module repos' modules/
dirs (e.g. local-lf-gatewaze-modules-modules → ~/Git/gatewaze/lf-gatewaze-modules/modules).github-com-gatewaze-gatewaze-modules → a materialised copy fetched from
the modules repo.Editing the materialised copy is silently lost on the next rebuild and never reaches a real repo. Editing through a symlink does reach the repo but is confusing and easy to get wrong.
Always edit the canonical source in the module's own repo. Treat
.gatewaze-modules/ as read-only build output.
~/Git/gatewaze/gatewaze-modules/modules/<name> — the public, open-source
modules (Apache-2.0). The former premium modules were merged in here, so this
is now the home for e.g. newsletters, forms, events, tasks, sites,
blog, calendars, engagement, stripe-payments, bulk-emailing, …~/Git/gatewaze/lf-gatewaze-modules/modules/<name> — Linux-Foundation /
AAIF modules: ambassadors, meetup-ops, podcasts, press, projects,
daily-briefing, membership, lfid-auth, content-discovery,
content-pipeline, aaif-import.premium-gatewaze-modules is gone — merged into gatewaze-modules. Any
stale .gatewaze-modules/local-premium-* symlink is a dangling leftover;
ignore it and use gatewaze-modules.Find a module's repo:
grep -rl "\"id\": \"<name>\"" ~/Git/gatewaze/*/modules/*/module.json
# or resolve the running symlink:
readlink ~/Git/gatewaze/gatewaze/.gatewaze-modules/local-*-modules
readlink -f <path> # resolve symlinks; must land in a module repo,
# NOT under .gatewaze-modules/github-com-*
git -C <module-repo> status # should show your change after you save
If git status is clean right after an edit, you edited a throwaway copy (or a
concurrent process already committed it) — re-check where the file physically
lives before continuing.
modules/<name>/
├── module.json # manifest: id, name, version, license, group, type, visibility
├── index.ts # registration: adminRoutes, adminNavItems, portalRoutes,
│ # publicApiRoutes, migrations, functions, requiredFeature gating
├── admin/ # admin UI — pages/, components/, slots/, utils/
├── portal/ # public portal UI
├── api/ # server / proxy routes
├── functions/ # Supabase edge functions
├── migrations/ # numbered SQL migrations
├── guide.md package.json tsconfig.json types/ lib/
packages/admin by the vite plugin; inside them
the @/ alias resolves to packages/admin/src. For admin page layout, follow
the ui skill (WorkspaceLayout: hero, tabs, breadcrumb, sub-tabs).index.ts (adminRoutes with path,
component, requiredFeature; adminNavItems for the left nav).A module's own tsconfig.json typically only includes *.ts / types/ /
lib/ — not admin/ or portal/ (those import host @/ aliases that only
resolve in the host build). So tsc / pnpm typecheck in the module repo will
not validate admin or portal pages. The authoritative check for those is the
host admin build (pnpm --filter @gatewaze/admin build / dev server). Host
files you change directly in gatewaze/packages/admin/src/** are covered by
the gatewaze repo's tsc.
local-* symlink
(HMR) — no copy step needed.pnpm modules:migrate.pnpm modules:deploy-functions.make clean, then restart dev/build.Commit in the module repo (gatewaze-modules or lf-gatewaze-modules) —
each is its own git repo with its own remote. The gatewaze repo gitignores
.gatewaze-modules/, so module changes will never show up there; don't look for
them in the host repo's git status.
.gatewaze-modules/ (especially github-com-*).gatewaze repo's git status — they live
in the module repo.tsc to catch admin/portal page errors — use
the host admin build.premium-gatewaze-modules; those modules are in
gatewaze-modules now.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gatewaze/gatewaze-skills --plugin gatewaze-skills8 skills in this plugin
/evidence-reviewAdversarial, evidence-gated review of a diff in any Gatewaze repo. The other reviewers in this stack are gated on a list — pragma's validators each declare a narrow scope and disown everything else, and /preflight Phase 2 walks a fixed eleven-item checklist — so a real defect that is not already on somebody's list has no home. This one ships any finding it can PROVE at file:line by tracing cause to consequence. Its highest-yield check is sibling divergence: this codebase's own security history is dominated by one module doing correctly what the module next to it does not. Reads full files plus siblings and callers. Report-only.
/gatewaze-memoryUse the project's accumulated engineering MEMORY while developing Gatewaze locally — the same durable knowledge the Software Engineer agent uses. It lives in the AI memory wiki and is git-synced to a dedicated memory repo (danthebaker/gatewaze-memory for the gatewaze monorepo; danthebaker/lfx-memory for LFX). Invoke at the START of a task on a Gatewaze/LFX repo ("what do we already know about X", "recall memory", "anything to watch out for here"), BEFORE committing (to check your changes against known gotchas/conventions), and when you learn something durable ("record a learning", "remember that ..."). This closes the loop: local dev and the SE agent share one brain — you read what the agent learned, and your learnings flow back to it.
/preflightPre-submission self-review for any Gatewaze repo. Run it BEFORE you consider a change done — after you finish editing, before the diff is handed off for a PR. Phase 1 runs the repo's own mechanical checks (typecheck, lint, build, format) and auto-fixes what is safely auto-fixable; Phase 2 reviews the diff against the repo's CLAUDE.md and .claude/rules (security boundaries, mass-assignment, shell safety, secrets) and reports what a human reviewer would otherwise catch. Adapts to whatever the repo actually declares — it reads the repo's rules, it does not assume a fixed toolchain. Especially useful for autonomous agents whose work goes straight to a pull request.
/production-readinessGuardrails distilled from the multi-week production-hardening pass on the Gatewaze monorepo. Invoke when working on Gatewaze (admin / api / portal / shared) to keep new feature work from undoing the security, type, lint, and CI improvements that landed across the prod-hardening/phase-1..4 branches. Encodes how to handle Supabase typing without a generated Database type, where the listing-primitive structural query-builder abstraction lives, the ICS / PostgREST / mass-assignment / rate-limit patterns, the lint baseline (admin = flat config, api = flat config, portal = next lint via root .eslintrc, shared = no-op), and the expected zero-error TypeScript baseline across all four packages.
/se-handoffHand off a locally-written spec to the Software Engineer module — creates a GitHub issue with the spec embedded and the agent:spec labels so the SE run skips its own (billed) spec phase. Use when the user says /se-handoff, "hand this spec to SE", "queue this for the SE module", or has just finished writing a spec they want implemented autonomously./test-coverageValidate that a diff's new behaviour is actually pinned by tests. Every other validator in this stack explicitly disowns test coverage — pragma's security, state-machine and typescript-style validators all list it under "MUST NOT report on", and there is no test validator among them — so nothing owns this category by default. Uses the inversion test: for each new condition, invert it and ask which existing test would fail. If none would, the branch is unpinned. Report-only.