/proofgate-review:governance-reviewfrom proofgate-review
Reviews code changes in the DSG ONE / ProofGate Control Plane against repository operating rules, checking API routes, security, truth boundary, and Supabase migrations.
Ships in proofgate-review. 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.
This skill reviews changes against the rules that actually govern this
repository. It does not replace npm run typecheck, npm run test, or
npm run build — it is a human-readable review pass to run alongside them.
Anchor every finding to a concrete file and line. Do not claim a rule is
violated without pointing at the exact code. When you are unsure, label the
finding not verified rather than guessing.
production-ready,
marketplace-ready, enterprise-ready 100%, certified compliance,
guaranteed compliance, third-party audited, WORM-certified storage,
JWT/JWKS auth complete, real cryptographic signing complete,
external production Z3 solver invocation, mainnet launched,
TVL / DAU / users.production-connected,
evidence-ready, audit-ready, governance-enabling,
deterministic gate scaffold, setup-ready, pre-audit evidence mapping.app/api/**/route.ts.dynamic = 'force-dynamic'.params: Promise<{ id: string }> and await params before reading.NextResponse.json(...) for responses and handleApiError(...)
where the existing route style uses it.readJsonBody(...) with an
explicit max size instead of raw request.json(); if raw request.json()
is used, the blast radius must be small and justified..env values, customer data. Only document env var
names.CRON_SECRET is absent — a missing secret
must not allow anonymous execution.middleware.ts protects API routes; API auth must be
implemented in the route or a shared server helper.buildCorsHeaders(...) / buildPreflightResponse(...).overrides in package.json should not be removed without audit
and justification./api/execute, /api/intent, or
/api/spine/execute. Do not write around the runtime commit/audit path for
governed actions.agent_id; check quota
and org/agent status; create or reuse the runtime intent/approval key; run
the pipeline; commit lineage/audit via the runtime commit RPC; return
decision, proof, trace, usage, and sequence metadata.runtime_commit_execution, PostgREST schema cache, or
missing runtime RPC/tables point to docs/RUNBOOK_DEPLOY.md recovery, not an
ad hoc fix.POST /api/dsg/v1/gates/evaluate is a DSG-native deterministic adapter; it
does not invoke an external Z3 solver. Do not let a change claim external
production Z3 invocation from that route.UNSUPPORTED must never map to PASS. Low-risk UNSUPPORTED maps to
REVIEW; medium/high-risk UNSUPPORTED maps to BLOCK.npm run verify:policy, npm run proof:revenue)
prove only the exact models they check; do not upgrade them to end-to-end
product proof.migration file exists,
not live DB ready, without a query result.DROP, TRUNCATE, broad RLS disablement, permissive
policies) needs explicit review and evidence.lib/database.types.ts should be regenerated and
npm run typecheck run.Group findings by severity, and for each finding give file:line, the rule, and a concrete suggestion:
BLOCKER — <file:line> — <rule> — <why> — <suggested fix>
WARNING — <file:line> — <rule> — <why> — <suggested fix>
NOTE — <file:line> — <observation>
End with the verification the author still needs to run from the ladder
(section 6), e.g. npm run typecheck, targeted npm run test -- <file>,
npm run build. If you did not run a check yourself, say Not run and why.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tdealer01-crypto/tdealer01-crypto-dsg-control-plane --plugin proofgate-reviewOther plugins' skills for the same job