本文へ移動
cccskills
無料GitHub で公開

gz-arb

Use to wrap QA commands in ARB receipts for attestation evidence or to audit lint patterns from receipts.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

gz arb

Overview

Agent Self-Reporting middleware: wrap QA commands (ruff, ty, unittest, coverage) and emit schema-validated JSON receipts to artifacts/receipts/. These receipts are the canonical attestation evidence cited in Heavy-lane OBPI closeout claims per AGENTS.md § Attestation.

When to Use

  • Producing Heavy-lane attestation evidence (receipt IDs for lint, typecheck, tests, coverage)
  • Debugging a failing QA step and needing a deterministic receipt artifact
  • Summarizing recurring advice from recent lint runs to tune agent guardrails
  • Auditing QA compliance across an ADR or release cycle

Workflow

  1. Wrap the QA step via ARB — pick the appropriate verb. For any claim category in the canonical list below (the list's home since 2026-09-17), use the canonical invocation from that table; those commands are locked by CANONICAL_STEP_COMMANDS and divergence is flagged by gz arb validate as non-canonical provenance (GHI #199).

    • uv run gz arb ruff <paths> — ruff lint (canonical for lint claims)
    • uv run gz arb typecheck — wraps ty check . --exclude features/**, the same target as gz typecheck and gz closeout (canonical for type-check claims). Do not restate the scope from memory: the verb and the gate both READ CANONICAL_STEP_COMMANDS["typecheck"], so the table is the answer whenever this line disagrees with it.
    • uv run gz arb step --name unittest -- uv run unittest-parallel -t . -s tests --buffer — canonical for tests-pass claims
    • uv run gz arb coverage — canonical for coverage-floor claims
    • uv run gz arb step --name mkdocs -- uv run mkdocs build --strict — canonical for docs-build-clean claims

    The canonical invocations apply to uv run gz obpi complete, uv run gz adr emit-receipt, any gz CLI attestation string, and git commit -m messages. Worked example of an enriched attestation: docs/governance/agent-contract-rationale.md#attestation--worked-example.

    • uv run gz arb step --name <name> -- <command> — any step not named in the canonical table (diagnostic or bespoke QA only; not valid attestation provenance)
    • uv run gz arb ty — raw uvx ty check passthrough; not an alias of gz arb typecheck (which wraps the canonical scope with the ARB schema). Use gz arb ty when you need the raw ty output without ARB receipt emission, or to pass custom ty flags directly.
  2. Validate the emitted receipts — uv run gz arb validate --limit 20

  3. Summarize recent receipts — uv run gz arb advise --limit 20

  4. Extract recurring patterns (optional) — uv run gz arb patterns

  5. Cite receipt IDs in the attestation per AGENTS.md § Attestation

  6. Bound the store (periodic, after harvesting) — uv run gz arb archive --older-than 30d --dry-run, then without --dry-run to relocate. Move-not-delete: aged receipts go to artifacts/receipts/archive/, and a receipt whose id is cited in the ledger is never moved, because a citation must keep resolving. Run it AFTER steps 3–4, so the harvest verbs have already read what they were going to read. There is no purge verb by design (GHI #594).

Example

# Produce full attestation evidence for Heavy-lane closeout.
# Each invocation below is the canonical form. This skill is the home of the
# list since 2026-09-17; AGENTS.md § Attestation points here. Receipt name
# prefixes: arb-ruff-, arb-step-typecheck-, arb-step-unittest-,
# arb-step-coverage-, arb-step-mkdocs-.
uv run gz arb ruff src tests
uv run gz arb typecheck
uv run gz arb step --name unittest -- uv run unittest-parallel -t . -s tests --buffer
uv run gz arb coverage
uv run gz arb step --name mkdocs -- uv run mkdocs build --strict
uv run gz arb validate --limit 10
uv run gz arb advise --limit 10

Output Contract

  • gz arb ruff / step / ty / coverage — exit 0 on success, 1 on command failure, 2 on ARB internal error; receipt always emitted to artifacts/receipts/<run_id>.json
  • gz arb validate — human text by default; --json for machine-readable
  • gz arb advise — human text; --json for machine-readable
  • gz arb patterns — Markdown report by default; --compact for one-liner; --json for machine-readable
  • gz arb archive — human summary of the plan/result buckets; --json for machine-readable; --dry-run classifies without moving

Validation

  • Confirm receipts appear under artifacts/receipts/ after each wrapped run.
  • Run uv run gz arb validate and confirm invalid=0 before citing receipt IDs in attestations.

References

  • Binding rule: AGENTS.md § Attestation (em-dash pattern + canonical invocations + lane behavior + receipt-ID discipline)
  • Deep-dive: docs/governance/arb-middleware.md (core concept, command surface, receipt schema, exit codes, rationale)
  • Command docs: docs/user/manpages/arb.md
  • Manpage: docs/user/manpages/arb.md
  • Absorption record: OBPI-0.25.0-33 under ADR-0.25.0

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use to mine ../airlineops for governance habits gzkit lacks; produces a parity scan report (gzkit leads, AirlineOps adopts).

日本語の概要は準備中です。原文の説明を表示しています。

tvproductions/gzkit92026年10月18日 更新

Use to file a GitHub issue when a finding needs its own work order or the operator asks; OBPI corrections stay in its change log.

日本語の概要は準備中です。原文の説明を表示しています。

tvproductions/gzkit92026年10月18日 更新

ghi-close

無料

Use to do the work a GHI describes, verify it and close the issue with evidence in one sweep.

日本語の概要は準備中です。原文の説明を表示しています。

tvproductions/gzkit92026年10月18日 更新

Use to triage the open GHI queue before planning or choosing what to pull; produces a ranked deliverable.

日本語の概要は準備中です。原文の説明を表示しています。

tvproductions/gzkit92026年10月18日 更新

git-sync

無料

Run the guarded repository sync ritual; commit-time hooks enforce the cheap gates and the pre-push hook runs gz check.

日本語の概要は準備中です。原文の説明を表示しています。

tvproductions/gzkit92026年10月18日 更新

git-sync

無料

Run the guarded repository sync ritual; the hooks your pre-commit config declares enforce the quality gates.

日本語の概要は準備中です。原文の説明を表示しています。

tvproductions/gzkit92026年10月18日 更新

tvproductions のスキルをすべて見る

このスキルの問題を報告する