Skills Governance
Agent Buildingskills-governanceSkills Governance is an Agent Skill for agent building published in the cnfjlhj/ai-collab-playbook repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when auditing a large local skill collection, identifying duplicate or imported skills, comparing skill roots, or deciding what to keep, disable, or archive across Codex and adjacent agent skill directories.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/cnfjlhj/ai-collab-playbook/blob/HEAD/skills/full/skills-governance/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/skills-governance, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Skills Governance
Purpose
Use the bundled scanner as the source of truth for local skill inventory. Base recommendations on real directories and SKILL.md frontmatter instead of stale catalogs or memory.
When to Use
- The user says they have too many skills and cannot tell what is useful.
- The user wants a Codex-first keep or disable plan.
- The user needs duplicate-name groups across multiple skill roots.
- The user suspects imported plugin packs or mirrored skills are causing confusion.
- The user wants a filesystem-backed inventory before changing skill settings.
How to Run It
Invoke the bundled scan.js from this skill directory.
- Codex-first inventory:
node scan.js --mode codex --format markdown - Cross-agent inventory:
node scan.js --mode all --format markdown - Duplicate review only:
node scan.js --mode all --duplicates-only --format markdown - Machine-readable output:
node scan.js --mode all --format json
Workflow
- Run the scanner in
codexmode first. - If the results still do not explain the user's confusion, rerun in
allmode. - Explain the problem from roots, duplicate groups, and suspicious flags before recommending changes.
- Prefer Codex
[[skills.config]]disable suggestions over editing individualSKILL.mdfiles unless the user explicitly asks for direct file edits. - Separate recommendations into three buckets: keep, disable for now, and archive or external mirror.
- If the user asks to execute changes, list exact target paths and wait for confirmation first.
Output Contract
Report at least:
- scanned roots
- total skills
- enabled and disabled counts
- duplicate-name groups
- suspicious flags such as
plugin-import,system, orbackup-like - a compact per-skill list when needed
Acceptance
A good run:
- completes without external dependencies
- reflects the actual filesystem state
- shows duplicate groups by skill
name - remains stable across repeated runs unless files changed