Community生产力与协作github.com

Andrewlislin/repo-governance

Deterministic repository governance for local hooks, Codex Skills, and GitHub Actions

repo-governance 是什么?

repo-governance is a Codex agent skill that deterministic repository governance for local hooks, Codex Skills, and GitHub Actions.

兼容平台~Claude CodeCodex CLI~Cursor
npx skills add Andrewlislin/repo-governance

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Triage CI Failure

Read classification-fixtures.md before classifying. Classification is evidence-driven and precedes any fix.

Workflow

  1. Collect the failed job/step, exact command, first causal error, relevant log context, PR diff, recent workflow/test changes, and repo-governance check --json output.
  2. Reproduce with the same public command and environment when safe. Do not use production credentials or create external side effects merely to reproduce.
  3. Assign exactly one label:
    • true-bug: implementation violates the current intended contract and a current test exposes it.
    • stale-test: implementation/contract intentionally changed, but assertions or fixtures still encode the old contract.
    • stale-workflow: workflow invokes an obsolete command, path, input, action, or duplicated policy implementation.
    • wrong-ci-tier: the check requires real provider/secret/device, high cost/duration, production context, or side effects that do not belong in PR blocking.
    • insufficient-evidence: available evidence does not uniquely support one of the four categories.
  4. State positive evidence and rejected alternatives. If classification is insufficient-evidence, request the smallest missing artifact and stop before modifying code.
  5. Only after classification, propose the smallest coherent fix that updates implementation, tests, docs, and workflow together when their contract changes.

Output

Return: classification, confidence, causal evidence, alternatives rejected, minimal fix scope, and verification. Do not change business code to make CI green until evidence supports true-bug.

相关技能