본문으로 건너뛰기
cccskills
무료GitHub에 공개

gz-foundation-triage

Use to rank the in-flight foundation backlog by insight signal, GHI count and invariants.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md6.6 KB
  • scripts/triage.py10.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

gz-foundation-triage

Rank the in-flight foundation backlog by priority. The bundled script does the deterministic work (gather Draft/Proposed foundation ADRs, count governance signals, render the deliverable). The agent does the cognitive work (read each candidate's § Intent and § Decision, classify severity, flag port/adapter reclassification candidates). Determinism lives at the rendering edge; cognitive freedom lives only on the input edge.

This skill is diagnosis only. It MUST NOT mutate any foundation ADR, ledger entry, registry, or promote/complete/change-status on any artifact. Running the skill is read-only across the governance surface.

The bundled script reports raw signal counts. Weighted scoring is the foundation-triage-rubric surface at src/gzkit/foundation/rubric.py: uv run python -m gzkit.foundation.rubric prints a priority_score with its evidence for each in-flight foundation. Read those scores as evidence in the cognitive pass; they never enter the rank-input JSON, whose schema rejects extra fields.

Invocation

/gz-foundation-triage

Triage Procedure (binding — three steps)

When this skill is invoked, the agent MUST execute the three steps below in order. The deliverable is the rank-ordered list from Step 3.

Step 1 — Mechanical pre-pass (single script call)

Run the bundled helper once with --format json to gather every in-flight (Draft or Proposed) foundation ADR with its governance-signal counts inline:

uv run python .gzkit/skills/gz-foundation-triage/scripts/triage.py --format json

Each record contains: id (canonical ADR id, e.g. ADR-0.0.57), status (one of Draft/Proposed), title, path (foundation ADR file relative to repo root), insight_count (agent-insights.jsonl mentions of the ADR id), ghi_count (GHI references mined from the same insights stream), invariant_mentions (occurrences in AGENTS.md and .gzkit/rules/*.md). The script is read-only over the governance corpus — it parses files; it never writes them.

Step 2 — Cognitive pass (read each candidate, classify severity)

For each record in the Step 1 JSON, read the foundation ADR's § Intent section and § Decision section. This is the contract; everything else hangs off it. Do not classify without reading both.

Then apply the port/adapter reclassification check (mirrored from the pool-triage cognitive-pass pattern, which adopted GHI #424 round-3 hardening): flag any candidate whose scope authors an invariant or prerequisite without which downstream features cannot exist. A flagged candidate is emitted as {id, reclassify: "foundation"} in a separate annotation list, NOT as a rank-input entry. Ranked candidates and reclassification annotations are mutually exclusive: a single candidate appears in one list or the other, never both.

Where the foundation kind is closed, the annotation list stays empty. A project that has closed the kind carries data/foundation_grandfather.json, and gzkit has (AGENTS.md § Gate Covenant; gz validate --taxonomy). A closed kind takes no new member, so emit "reclassify_foundation": [] and rank every candidate. Where the kind is open, the check applies as written, and the example below shows that case.

Compose a single rank-input JSON document with one entry per candidate the agent recommends working on:

{
  "rankings": [
    {"id": "ADR-0.0.57", "severity": "urgent"},
    {"id": "ADR-0.0.48", "severity": "next-quarter"}
  ],
  "reclassify_foundation": [
    {"id": "ADR-pool.some-slug", "reclassify": "foundation"}
  ]
}

Rendering-edge contract (binding — structural-only schema):

FieldConstraint
rankings[*].idstr; must appear in the Step 1 fetched set
rankings[*].severityone of urgent (pull this quarter), next-quarter, latent
reclassify_foundation[*].idpool ADR id (slug-form)
reclassify_foundation[*].reclassifyliteral "foundation"
any other fieldrejected by the renderer

The schema is structural-only by design. The agent's cognitive contribution is selection + ordering + severity + reclassification flag; the renderer owns all prose, derived from the fetched candidate set.

Step 3 — Deterministic rendering

Write the rank-input JSON to a cache file under .gzkit/cache/foundation-triage/, then pass that path to the script with --format rank:

# Write tool: .gzkit/cache/foundation-triage/rank.json
uv run python .gzkit/skills/gz-foundation-triage/scripts/triage.py \
    --format rank --rank-input .gzkit/cache/foundation-triage/rank.json

The script renders a deterministic markdown deliverable: one numbered row per ranked foundation, each row containing the severity and title in a fixed shape; the reclassification annotations render in a separate section beneath. The script's stdout IS the deliverable — do not echo, restate, copy, or paraphrase that output in agent-generated text.

There is no Step 4. The rank list and the reclassification annotation list together ARE the recommended work order.

Output Contract

Declared form: deterministic markdown, the script's --format rank output, presented verbatim. Chat-renderable; no Rich box-drawing glyphs; no ANSI color sequences.

Ephemeral-output invariant (binding)

After a foundation-triage run, the following MUST hold:

git status --porcelain docs/design/adr/foundation/ .gzkit/ledger.jsonl
# Expected: empty output

If any foundation ADR file or .gzkit/ledger.jsonl shows as modified, the ephemeral / diagnosis-only invariant has been violated and the skill is defective. The skill is a read-only diagnostic; promotion remains an operator decision under the relevant lifecycle ADR.

Anti-patterns

  • Running foundation-triage as a commit gate (it is on-demand only)
  • Auto-promoting foundations from the triage output
  • Mutating any foundation ADR or ledger entry as a side-effect
  • Restating the rendered deliverable in agent-generated prose
  • Adding agent-supplied prose fields to the rank-input JSON schema

Related

  • ADR-0.0.57 — foundation-ADR nominal-ID semantics and priority triage
  • .gzkit/skills/ghi-triage/SKILL.md — sibling pattern in the governance-triage bounded context
  • pool-triage cognitive-pass — the port/adapter reclassification check inherits its language from the pool-triage cognitive-pass pattern

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tvproductions/gzkit92026년 10월 23일 업데이트

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월 23일 업데이트

ghi-close

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tvproductions/gzkit92026년 10월 23일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tvproductions/gzkit92026년 10월 23일 업데이트

git-sync

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tvproductions/gzkit92026년 10월 23일 업데이트

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월 23일 업데이트

tvproductions의 스킬 모두 보기

이 스킬의 문제 신고