Skill Authoring and Audit
Overview
One governance skill supports two modes: author creates or updates a needed workflow; audit detects gaps, collisions, stale maturity, and unsupported claims. Update-first is mandatory.
When to use
Use when a recurring workflow needs codification, a skill trigger is ambiguous, session history reveals repeated failures, or catalog lifecycle and provenance need review.
When NOT to use
Do not use this skill merely to execute or report an existing evaluation, and do not author a skill for a one-off task, duplicate an existing capability, copy noncommercial content, or promote maturity without eval and dogfood evidence.
Required inputs and context discovery
Collect requested mode, catalog and registries, existing descriptions, project-local skills and agent roles, routing cases, session or issue evidence, provenance source/license/SHA, owner, reviewer, risk, and target pack.
Safety and risk level
Writes are limited to owned skill, eval, registry, and documentation paths. Never mutate .research sources, external projects, generated adapters, or copied NC content.
Workflow
- Scan the catalog and bundled helpers for exact, neighboring, deprecated, reusable, or updateable capabilities.
Completion criterion: the decision is reuse, update, new skill or tool, backlog, or no action, with existing workflows and tools preferred.
- In
author mode, create failing routing, behavior, or pressure cases from observed needs before editing the skill.
Completion criterion: the gap is reproducible and not a hypothetical preference.
- Write the smallest complete skill with closed schema, provenance, safety, evidence, workflow criteria, and concise triggers.
Completion criterion: structural validation passes for the skill.
- Run deterministic routing, behavior, pressure, originality, and safety checks.
For a governed Tier-B, behavior, or pressure run, capture
python -B scripts/catalog_audit.py . --input-digest immediately before invoking the model and store that value as input_digest in the runner status. Run the catalog audit afterward so it compares the recorded digest with the then-current inputs.
Completion criterion: failures are repaired without weakening cases, and accepted runner evidence has one uniquely newest timezone-aware timestamp, is no older than 90 days, and matches current catalog, shipped-skill, evaluator, and eval inputs.
- In
audit mode, scan catalog, project overlays, agent-role IDs, and session history for stale skills, repeated manual workflows, trigger or role collisions, missing owners, and observed-versus-target KPI gaps.
Completion criterion: findings have evidence, owner, severity, and update-first recommendation.
- Apply lifecycle promotion or demotion only when prerequisites are observed.
Completion criterion: registry maturity matches evidence rather than aspiration.
Evidence and output contract
Produce skill-audit.json with mode, findings, overlap, routing/behavior/pressure results, provenance, lifecycle recommendation, observed metrics, target metrics, and changed paths.
Handoff contract
Record requested mode, preflight decision, skill/eval files, provenance source, commands, failures, lifecycle status, and next audit or dogfood action.
Pitfalls and anti-rationalization
- “A new skill would be cleaner” does not beat updating an existing one.
- “Several items need the same edit” requires a tool assessment, not automatic tool creation or manual per-item repair.
- A small one-off task does not justify a reusable helper without evidence of future value.
- High overlap with undeclared provenance is a Gate 10 failure.
- Target metrics are never observed metrics.
- Missing live dogfood is BLOCKED, not a maturity PASS.
- Never add a current digest to historical runner output after the fact. Missing, stale, future-dated, tied, unreadable, or input-drifted evidence remains
BLOCKED.
Verification checklist
References and scripts
When maintaining this kit from a full repository clone, use scripts/validate.py, scripts/route_eval.py, scripts/check_originality.py, scripts/catalog_audit.py, and the eval directories. Standalone skill installs do not include repository governance tooling.
1---2name: skill-authoring-and-audit3description: Use when creating or revising a GameStudio-CodexKIT skill, resolving ambiguous skill triggers, auditing provenance or lifecycle maturity, or deriving reusable capabilities from session history.4license: MIT5---6# Skill Authoring and Audit78## Overview9One governance skill supports two modes: `author` creates or updates a needed workflow; `audit` detects gaps, collisions, stale maturity, and unsupported claims. Update-first is mandatory.1011## When to use12Use when a recurring workflow needs codification, a skill trigger is ambiguous, session history reveals repeated failures, or catalog lifecycle and provenance need review.1314## When NOT to use15Do not use this skill merely to execute or report an existing evaluation, and do not author a skill for a one-off task, duplicate an existing capability, copy noncommercial content, or promote maturity without eval and dogfood evidence.1617## Required inputs and context discovery18Collect requested mode, catalog and registries, existing descriptions, project-local skills and agent roles, routing cases, session or issue evidence, provenance source/license/SHA, owner, reviewer, risk, and target pack.1920## Safety and risk level21Writes are limited to owned skill, eval, registry, and documentation paths. Never mutate `.research` sources, external projects, generated adapters, or copied NC content.2223## Workflow241. Scan the catalog and bundled helpers for exact, neighboring, deprecated, reusable, or updateable capabilities.25 Completion criterion: the decision is reuse, update, new skill or tool, backlog, or no action, with existing workflows and tools preferred.262. In `author` mode, create failing routing, behavior, or pressure cases from observed needs before editing the skill.27 Completion criterion: the gap is reproducible and not a hypothetical preference.283. Write the smallest complete skill with closed schema, provenance, safety, evidence, workflow criteria, and concise triggers.29 Completion criterion: structural validation passes for the skill.304. Run deterministic routing, behavior, pressure, originality, and safety checks.31 For a governed Tier-B, behavior, or pressure run, capture `python -B scripts/catalog_audit.py . --input-digest` immediately before invoking the model and store that value as `input_digest` in the runner status. Run the catalog audit afterward so it compares the recorded digest with the then-current inputs.32 Completion criterion: failures are repaired without weakening cases, and accepted runner evidence has one uniquely newest timezone-aware timestamp, is no older than 90 days, and matches current catalog, shipped-skill, evaluator, and eval inputs.335. In `audit` mode, scan catalog, project overlays, agent-role IDs, and session history for stale skills, repeated manual workflows, trigger or role collisions, missing owners, and observed-versus-target KPI gaps.34 Completion criterion: findings have evidence, owner, severity, and update-first recommendation.356. Apply lifecycle promotion or demotion only when prerequisites are observed.36 Completion criterion: registry maturity matches evidence rather than aspiration.3738## Evidence and output contract39Produce `skill-audit.json` with mode, findings, overlap, routing/behavior/pressure results, provenance, lifecycle recommendation, observed metrics, target metrics, and changed paths.4041## Handoff contract42Record requested mode, preflight decision, skill/eval files, provenance source, commands, failures, lifecycle status, and next audit or dogfood action.4344## Pitfalls and anti-rationalization45- “A new skill would be cleaner” does not beat updating an existing one.46- “Several items need the same edit” requires a tool assessment, not automatic tool creation or manual per-item repair.47- A small one-off task does not justify a reusable helper without evidence of future value.48- High overlap with undeclared provenance is a Gate 10 failure.49- Target metrics are never observed metrics.50- Missing live dogfood is BLOCKED, not a maturity PASS.51- Never add a current digest to historical runner output after the fact. Missing, stale, future-dated, tied, unreadable, or input-drifted evidence remains `BLOCKED`.5253## Verification checklist54- [ ] Update-first preflight was performed.55- [ ] Existing tools were assessed before a new helper was proposed.56- [ ] New behavior had a failing case first.57- [ ] Provenance and license are complete.58- [ ] Routing, behavior, pressure, and safety gates ran.59- [ ] Governed runner status was bound before execution and rechecked afterward; no historical result was retroactively bound.60- [ ] Lifecycle uses observed evidence.6162## References and scripts63When maintaining this kit from a full repository clone, use `scripts/validate.py`, `scripts/route_eval.py`, `scripts/check_originality.py`, `scripts/catalog_audit.py`, and the eval directories. Standalone skill installs do not include repository governance tooling.