gz-check
Run full quality checks in one pass. Use for pre-merge or pre-attestation quality verification.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run full quality checks in one pass. Use for pre-merge or pre-attestation quality verification.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Validate and stage a candidate rendition from the corpus via gz content compose. Use when the agent has made compression decisions (drop/combine/rewrite of compressible corpus entries toward the declared setpoint) and wants the tool to validate invariant-floor compliance, compute byte evidence, write the candidate artifact, and emit a ledger event.
Enter and exit the MX Maintenance Hangar — operator's interface to gz mx. Use when entering the hangar to perform governance repair, checking hangar status mid-session, or cleanly exiting when repair is complete. Operator operates the skill; the skill invokes gz mx; nobody shells out.
Create and resume session handoff documents for agent context preservation across engineering sessions.
Create and resume session handoff documents for agent context preservation across engineering sessions.
Collaborative design dialogue that produces GovZero ADR artifacts. Use when exploring a new feature, capability, or architectural change before implementation — replaces superpowers brainstorming for this project. Triggers on "design X", "let's design", "brainstorm X", "I want to build X", "gz-design".
Cross the airlock membrane — the entry/exit gate every unit of work passes through (ADR-0.33.0). Use to inspect a target's seam-map before touching it (`gz airlock in`), account for what a transit disturbed (`gz airlock out`), or make a governed ad-hoc reconnaissance entry with light repair at most (`gz permitted-entry`). Diagnostic-only for now — a staged posture, not the declared end state; never writes L1 canon.
| name | gz-check |
| persona | main-session |
| description | Run full quality checks in one pass. Use for pre-merge or pre-attestation quality verification. |
| category | code-quality |
| lifecycle_state | active |
| owner | gzkit-governance |
| last_reviewed | "2026-07-27T00:00:00.000Z" |
| model | haiku |
| metadata | {"skill-version":"1.5.0"} |
Unified quality gate for all code verification. Replaces the individual
/lint, /test, /format, /gz-typecheck, and /gz-arb skills.
| Command | Purpose |
|---|---|
uv run gz lint | Ruff linting + PyMarkdown |
uv run gz format | Ruff auto-formatting |
uv run gz typecheck | Static type checks (ty) |
uv run gz smoke | Smoke/BVT tier — build verification against a 60s budget (GHI #724) |
uv run gz test --obpi OBPI-X.Y.Z-NN | Tests covering one OBPI's REQs (pipeline Stage 3) |
uv run gz test | Full unittest suite |
uv run gz test --bdd | Unit tests + behave (ADR closeout / Heavy-lane) |
uv run gz check | All of the above in one pass |
gz smoke is the cheapest useful signal: it runs only @smoke-marked tests and
fails closed if they exceed the budget in .gzkit/rules/tests.md, or if the tier
is empty. It proves the build answers; it never substitutes for gz test,
which proves it is correct.
gz lint, gz format) after small editsgz check for the full suitegz git-sync --apply: Run gz check firstuv run gz check with the required options.@claude-code-guide to diagnose against current Anthropic documentation.When running in Claude Code as a pre-merge or pre-attestation check, run the following — each item is a concrete tool invocation, not a prose claim:
@claude-code-guide to diagnose
against current Anthropic documentation. Do not proceed to attestation
while hook errors are unresolved.uv run gz validate --surfaces. Exit code 0 means .claude/skills/
mirrors .gzkit/skills/ and .claude/rules/ mirrors .gzkit/rules/.
Non-zero exit means run uv run gz agent sync control-surfaces and
re-validate.CLAUDE.md with the Read tool and
check that the final line number reported is ≤ 200. Read returns
numbered lines so the count is observable without invoking wc. If
over budget, trim before attestation (200-line ceiling for optimal
adherence).When deterministic receipts are needed (e.g., for audit evidence):
uv run gz lint
uv run gz typecheck
uv run gz test --bdd # full suite including behave — pre-attestation
uv run gz check
uv run gz status or uv run gz state.# Full quality check (preferred)
uv run gz check
# Individual checks when iterating
uv run gz lint
uv run gz format
uv run gz typecheck
uv run gz test
# If Claude surface issues found, diagnose:
@claude-code-guide look at .claude/settings.json — are all hook
references valid? Any deprecated patterns?
These thoughts mean STOP — you are about to skip the gate that catches drift:
| Thought | Reality |
|---|---|
"I only changed one file — gz lint is enough" | gz check is the unified gate for a reason: lint passes can hide type or test regressions. Pre-merge always runs the full suite. |
| "Tests pass locally, no need to typecheck" | ty catches signature drift that unittest can't. The two checks are complementary, not redundant. |
| "Hook errors at session start are cosmetic" | The Claude surface check is part of gz check precisely because hook errors mean an agent is operating against stale governance. Resolve before attestation. |
| "The mirrors look fine, skip the surface check" | Canon/derived drift is silent until it isn't. The mirror parity check is cheap; the bug it prevents is expensive. |
"I'll run the individual commands instead of gz check" | Individual commands skip the Claude surface check and the deterministic ordering. Use them for iterative fix-up, not for pre-merge or pre-attestation. |
| "Coverage is close to 40% — round up" | The coverage floor is fail-closed at 40.00%. Rounding rationalizes a regression. |
| "PyMarkdown warnings are noise" | PyMarkdown is part of gz lint because docs are first-class deliverables under the Gate 5 Runbook-Code Covenant. Fix or document the exception. |
gz checkgz lint but not gz typecheck or gz test before merge.claude/skills/ divergent from .gzkit/skills/ (sync not run)src/gzkit/cli.pydocs/user/manpages/index.md