Gold-b

Claude Code Governance — Development skill for Claude Code

Development community

Context Governance for Claude Code — hooks, skills, and automation framework for preventing context drift across sessions.

How to install Claude Code Governance

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Gold-b/claude-code-governance and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Governance does

Context Governance for Claude Code — hooks, skills, and automation framework for preventing context drift across sessions.

Alternatives in Development

README

Context Governance Installer for Claude Code

Portable installer that sets up the full Context Governance architecture at the user level (`~/.claude/`).

Quick Install

bash ~/.claude/governance-installer/install.sh

Options

Flag Effect
--core-only Install only the 9 core governance skills (skip the 5 extended toolkit skills)
--force Overwrite existing files without prompting
--dry-run Preview what would be installed (no changes)
--no-claude-md Skip CLAUDE.md — keep your existing user instructions
--uninstall Remove all governance files (backs up before removal)

What Gets Installed

Hooks (11 scripts in `~/.claude/hooks/`)

Event Script Purpose
SessionStart pre-session.sh Detects governance, triggers briefing
UserPromptSubmit pre-task.sh Governance lite check per message
PreToolUse (Edit/Write) governance-guard.sh Blocks protected-doc edits without success token
PreToolUse (Edit/Write) pre-write.sh Impact map before file changes
PostToolUse (Edit/Write) post-milestone.sh State update after milestones
TaskCompleted check-full-finish.sh Warns about uncommitted changes
Stop end-session.sh Session-end handoff

Core Skills (9)

  • bootstrapper — Loads relevant project context for session briefing
  • context-governance — Audits context file hygiene (lite + full modes)
  • evidence-debugger — Root-cause analysis with confidence grading
  • impact-safe-executor — Pre-write impact map, scope enforcement
  • init-governance — One-time project scaffold for governance structure
  • live-state-orchestrator — Keeps PLAN/MEMORY/HANDOFF in sync
  • parallel-session-merge — Reconciles multi-agent parallel work
  • pre-close-check — Parallel-session + drift scan; MANDATORY before any handoff write
  • pr-to-git — Review-gate PR loop. Core, not extended, because bundle/docs/ installs unc