/gatewaze-skills:gatewaze-memoryfrom gatewaze-skills
Use 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.
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.
The Software Engineer module keeps durable, per-project engineering memory in the AI wiki and git-syncs the approved memory to a dedicated repo after every approval. That repo is the local, read-only mirror you use here. Recalling it locally means you develop with the same accumulated knowledge — architecture, conventions, gotchas, past incidents — that the agent has, and your new learnings can flow back to it.
Source of truth: the AI wiki. The repo's wiki/ tree is a mirror —
never hand-edit it; it is overwritten on the next sync. The write path is
proposals/ (see step 4), which a human promotes into the wiki.
| Working on | Memory repo |
|---|---|
the gatewaze monorepo (packages/*) or gatewaze-modules | danthebaker/gatewaze-memory |
LFX (linuxfoundation/lfx-*) | danthebaker/lfx-memory |
Pick by the repo you're in; if unsure, ask. Below, $MEMREPO is that owner/name.
Clone or fast-forward the memory repo into a cache dir (uses your own git/gh credentials — you have access):
MEMREPO="danthebaker/gatewaze-memory" # or danthebaker/lfx-memory
CACHE="$HOME/.cache/gatewaze-memory/${MEMREPO##*/}"
if [ -d "$CACHE/.git" ]; then
git -C "$CACHE" pull --ff-only --quiet
else
mkdir -p "$(dirname "$CACHE")"
git clone --quiet "https://github.com/$MEMREPO.git" "$CACHE"
fi
ls "$CACHE/wiki" 2>/dev/null | head
index.md lists every page; wiki/imported/memory.md is the top-level index of
project facts. Pages are one fact each (architecture, conventions, gotchas,
incidents), mirroring the agent's memory.
Don't dump everything. Find the pages that bear on what you're about to do:
# by keyword across all memory pages (e.g. the feature/area you're touching)
grep -rli "newsletter\|sendgrid\|<your keywords>" "$CACHE/wiki" | head
Read the top matches (Read), plus wiki/imported/memory.md for the index, and
fold the relevant facts into how you approach the task. Prefer memory over
guessing — it records real decisions and past failures. Cite the page when you
rely on it (e.g. "per wiki/imported/project-docker-dep-float-hazard.md …").
Before you commit, cross-check your diff against known hazards/conventions:
git diff --name-only # what you changed
For each changed area, grep memory for warnings (gotchas, "never do X",
conventions) and flag anything your change trips. Examples the memory encodes:
module files must not import @radix-ui/themes; edit modules in their source
repo not the .gatewaze-modules cache; caret-dep float hazards; etc. Report
matches as "⚠ memory says: … (wiki/<page>)" so the human can decide.
When you discover something durable and reusable (a gotcha, a convention, a
"we tried X, it failed because Y"), record it — but never edit wiki/ (the
sync overwrites it). Write to proposals/ instead, which survives the sync, then
commit + push so a human can promote it into the wiki (the SE admin approval
gate keeps memory trustworthy):
SLUG="short-kebab-slug" # e.g. portal-runtime-import-crash
mkdir -p "$CACHE/proposals"
cat > "$CACHE/proposals/$SLUG.md" <<'MD'
---
type: project | feedback | reference
proposed_by: local-dev
---
<the durable fact. For feedback/project add **Why:** and **How to apply:** lines.
Link related pages with [[their-slug]].>
MD
git -C "$CACHE" add "proposals/$SLUG.md"
git -C "$CACHE" commit -qm "propose(memory): $SLUG"
git -C "$CACHE" push --quiet
echo "Proposed — a maintainer promotes proposals/ into the wiki via the SE admin."
Keep one fact per file (same shape the agent's memory uses). Check proposals/
first so you update an existing proposal rather than duplicating it.
wiki/, write to proposals/. The wiki/ mirror is regenerated
from the AI wiki on every SE memory approval, so hand-edits there are lost.git pull shows nothing and wiki/ is empty, that project simply has no
approved memory yet — proceed without it and propose learnings as you go.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 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.
/modulesGatewaze 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.
/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.
npx claudepluginhub gatewaze/gatewaze-skills --plugin gatewaze-skills