/gatewaze-skills:se-handofffrom gatewaze-skills
Hand 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.
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.
Purpose: the user writes specs interactively (on their Claude plan, effectively free) and the SE module implements them autonomously (API-billed). This skill performs the handoff: it packages a spec into a GitHub issue that the SE module's intake understands, so the run skips the spec and spec-review phases entirely (≈ a third of a run's API cost) and starts from the human spec gate or straight at implementation.
PR handoff ("/se-handoff this PR", "hand off the PR", or invoked after creating a PR in this
session): no spec or issue involved — the SE module ADOPTS an existing pull request and its
monitor takes over from here: it watches CI and pushes fix commits for failures, and responds to
review feedback with revise cycles — from automated reviewers and human reviewers alike. Steps:
identify the PR (current branch's PR via gh pr view --json number,url in the repo, else ask),
confirm with the user ("Hand off # — SE will monitor CI and reviews and push fixes.
Continue?"), then apply the adoption label:
gh pr edit <number> --repo <owner>/<repo> --add-label "agent:adopt"
(create the label first if missing: gh label create "agent:adopt" --repo <owner>/<repo> --color 5319e7 || true).
Print the PR URL and note the run appears in the SE admin within ~a minute. The label must be
applied by a repo collaborator the module trusts — that is you, via your gh auth.
Bare invocation (user runs /se-handoff with no spec, no idea, nothing in-session to point
at): start by asking what they want to hand off — "What should the SE module build? Describe the
feature/fix in a sentence or two, or point me at a spec." From their answer, flow into spec
authoring below.
Idea only: author the spec (below), then hand off.
Spec exists (in-session document or file): skip straight to the handoff.
specs/spec-<slug>.md in the roadmap repo
(~/Git/danthebaker/gatewaze-roadmap) for gatewaze work — commit and push it there — or a
sensible location the user names for other repos. Then continue with the handoff below.git remote get-url origin
when inside a repo; otherwise ask). Works for any repo the SE module watches (gatewaze org and
linuxfoundation LFX repos alike).agent:spec:approved).Read the spec content. Sanity-check it is a spec (goal, scope, some acceptance criteria) — if it is clearly a fragment, say so and confirm before proceeding. Cap: 64KB (intake rejects larger).
Create the issue with gh:
gh issue create --repo <owner>/<repo> \
--title "<title>" \
--label "agent:spec:provided" \
--body "$(cat <<'EOF'
<one-paragraph summary for humans skimming the issue>
<!-- se:spec -->
<the full spec verbatim>
<!-- /se:spec -->
EOF
)"
--label "agent:spec:approved" as well.--label "agent:model:<alias>"
(opus | sonnet | haiku).gh label create "agent:spec:provided" --repo <owner>/<repo> --color 5319e7 || true), then retry.Print the created issue URL and remind the user where the run appears: staging admin → Software Engineer → Runs (webhook-driven; the run shows within ~a minute), and — in gate mode — that the run will wait at "awaiting spec" for their approval.
<!-- se:spec --> markers, verbatim — do not summarize,
reformat, or truncate it. The human-readable paragraph above the markers is separate.agent:spec:approved unless the user explicitly chose pre-approved.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.
/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.
/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.
/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