| name | governance-enforcement |
| description | Use for executing and enforcing governance tooling (artifact generation/validation/CI policy checks), including startup declaration checks, project-index sync checks, and repository skill-policy validation. |
Governance Enforcement
Quick Index (Action-Routed)
Read First (All Actions)
Mission
Scope Boundary
Trigger Rule
Action Modules (Read As Needed)
- Running enforcement commands:
Primary Tooling
Enforcement Workflow
- Diagnosing failures:
Required Validation Targets
Failure Handling
Output
Output Contract
Mission
Turn governance policy into deterministic machine-enforced checks.
Scope Boundary
This skill is tooling/enforcement only.
Use Skill Governance for:
- risk scoring
- mode selection
- gate policy decisions
Trigger Rule
Use this skill when:
- generating governance artifacts
- validating artifact readiness
- enforcing governance/skill policy in CI
- debugging governance check failures
Primary Tooling
skills/skill-governance/scripts/generate_governance_artifact.py
skills/skill-governance/scripts/validate_governance_artifact.py
skills/skill-governance/scripts/enforce_governance_ci.py
skills/skill-governance/scripts/validate_skill_policy.py
skills/skill-governance/scripts/validate_skill_order_sync.py
.github/workflows/skills-governance-ci.yml (active repository workflow)
skills/docs/ci/skills-governance-ci.yml (copyable workflow template)
Enforcement Workflow
- generate artifact at task start with required intake/startup fields
- update gate statuses during execution
- validate artifact before release recommendation
- validate skill ordering sync (
SKILL-MAP.md vs docs/skill-index.md)
- run CI enforcement for changed governance scope
- resolve failures with precise remediation
- run validator regression tests for script changes
Required Validation Targets
AGENTS.md policy snippets
- required skill snippet presence
user-instructions.md schema/status/timestamp/evidence rules
- governance JSON/MD pairing
- startup declaration completeness
- project-index consistency checks
- skill-catalog consistency checks (
*/SKILL.md vs SKILL-MAP.md vs docs/skill-index.md)
- governed-path scope checks (
skills/**, .codex/skills/**, docs/governance/**, docs/project-index.md, AGENTS.md, .github/workflows/**)
- governed artifact quizme state checks (
quizme_mode, option booleans, implied confirmation for recording, and required quizme-mode startup declaration when active)
Regression Test Command
Run after governance-script changes:
python3 -m unittest discover -s skills/skill-governance/tests -p 'test_*.py' -v
Failure Handling
If enforcement fails:
- report exact failing condition and file
- classify failure type (
schema, policy, artifact, staleness, gate-state)
- propose minimal corrective patch
- rerun targeted validator first, then full enforcement
Output Contract
When applying this skill, provide:
- commands run
- pass/fail summary per validator
- failing checks and remediations
- final enforcement state
Related Skills