Skill system governance

From Dirtytrii/codex-skills · View interactive version

Skill system governance is an AI agent skill from the GitHub repository Dirtytrii/codex-skills. Audit and optimize a skill system with evidence. Use for skill architecture, token or context waste, role and prompt boundaries, routing hits or misfires, plugin packaging, registry/docs/source drift, duplicate workflows, or deciding whether a reusable change belongs in a skill. Runs deterministic c

How to use this skill

Skill file

Skill System Governance

Overview

Treat the skill system as a maintained product: measure discoverability, routing, context cost, ownership, generated bundles, documentation, and validation before changing it. This skill is the standard workflow for the existing 技能维护 role; it does not create another role.

When invoked, start with the baseline audit. Do not ask the user to choose a checklist and do not assume that every review must produce a change.

Default Workflow

1. Establish The Baseline

python skills/skill-system-governance/scripts/audit_skill_system.py --repo . --mode quick

2. Add Runtime Evidence When Available

Static checks prove structure, not runtime selection quality. When the user supplies observed routing decisions or callback artifacts, run:

python skills/skill-system-governance/scripts/audit_skill_system.py \
  --repo . --mode quick \
  --observed path/to/observed-routing.jsonl \
  --callbacks path/to/callback-a.md \
  --callbacks path/to/callback-b.md

Without those artifacts, report routing accuracy and skill-hit rate as not_evaluable. Never convert self-reported callbacks into observed router accuracy or claim a percentage from chat memory.

For explicitly authorized local lifecycle observation, read references/local-observation.md and use the opt-in installer. It preserves existing hooks and requires native hook trust; metadata snapshots do not prove skill selection, task quality, or membership savings.

3. Produce A Verdict Before Editing

Choose one primary verdict:

Order findings by severity and leverage. For each finding, include evidence, causal mechanism, smallest useful change, and a validation path. Separate measured facts from inference.

4. Apply Only Authorized Minimal Changes

If the user asked only for an audit, stop after the verdict and recommendations. If the user authorized optimization:

  1. Edit canonical files under skills/, registry/, docs/, evals/, or scripts/.
  2. Do not edit generated plugins/*/skills/ copies directly.
  3. Prefer one causal fix over adding repeated prose to several prompts.
  4. Add or update deterministic tests before broad documentation changes.
  5. Run python scripts/sync_plugin_bundles.py --write after canonical changes.
  6. Run the full audit:
python skills/skill-system-governance/scripts/audit_skill_system.py --repo . --mode full
  1. Follow repository commit and PR rules. Keep generated bundles in the same PR as their canonical source.

Governance Boundaries

Default Output

**Verdict**
no-change / docs-only / routing / contract-script / package / consolidate-deprecate

**Evidence**
- Deterministic checks:
- Runtime evidence:
- Not evaluable:

**Findings**
| Priority | Finding | Evidence | Smallest Change | Validation |
|---|---|---|---|---|

**Decision**
- Apply now / defer / no change
- Scope and non-goals

**Verification**
- Commands and results

**Residual Risk**
- Remaining uncertainty

Keep a clean audit concise. Expand only findings that change a decision.

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.