# Skill Governance

> Audit skill layout and validate SKILL.md contracts.

- Skill: `graysurf/skill-governance` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx get-skill add graysurf/skill-governance`
- Raw SKILL.md: https://api.skillmd.com/api/skills/graysurf/skill-governance/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: graysurf (https://skillmd.com/u/graysurf)
- Updated: 2026-11-29
- Page: https://skillmd.com/skills/graysurf/skill-governance

---

---
name: skill-governance
description: Audit skill layout and validate SKILL.md contracts.
---

# Skill Governance

## Contract

Prereqs:

- Run inside a git work tree.
- `bash` available on `PATH`.
- `git` available on `PATH`.
- `python3` available on `PATH`.

Inputs:

- `audit-skill-layout.sh`: optional `--skill-dir <path>` (or `--help`).
- `validate_skill_contracts.sh`: optional `--file <path>` (repeatable).
- `validate_skill_paths.sh`: optional `--help` (placeholder until v2 enforcement).

Outputs:

- Validation results on stdout/stderr.
- Exit status indicating pass/fail.

Exit codes:

- `0`: all checks pass
- `1`: validation errors or missing prerequisites
- `2`: usage error (unsupported flags)

Failure modes:

- Not running inside a git repo.
- Missing `git` or `python3`.
- Skill layout violates allowed top-level entries.
- `SKILL.md` missing required `## Contract` headings.

## Scripts (only entrypoints)

- `$AGENT_HOME/skills/tools/skill-management/skill-governance/scripts/audit-skill-layout.sh`
- `$AGENT_HOME/skills/tools/skill-management/skill-governance/scripts/validate_skill_contracts.sh`
- `$AGENT_HOME/skills/tools/skill-management/skill-governance/scripts/validate_skill_paths.sh`

## Related docs

- Repo-wide review checklist:
  - `docs/runbooks/skills/SKILL_REVIEW_CHECKLIST.md`
- Skill directory anatomy and path rules:
  - `docs/runbooks/skills/SKILLS_ANATOMY_V2.md`

