Claude-skill-registry governance
Toggle PAI governance enforcement on/off. Control chain-of-command routing and session-end requirements.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/governance-euda1mon1a-autonomous-assignmen" ~/.claude/skills/majiayu000-claude-skill-registry-governance && rm -rf "$T"
manifest:
skills/data/governance-euda1mon1a-autonomous-assignmen/SKILL.mdsource content
Governance Control Skill
Purpose: Toggle governance enforcement without editing config files Trigger:
Config:/governance [on|off|status].claude/Governance/config.json
Required Actions
When this skill is invoked, Claude MUST immediately execute the following based on arguments:
Parse Arguments
Check the skill invocation arguments:
- No args or
→ Show status (default)status
→ Enable all governanceon
→ Disable all governanceoff
→ Toggle chain_of_command_enforcementchain on/off
→ Toggle session_end_enforcementsession on/off
→ Toggle bypass_allowed_for_single_filebypass on/off
Action: Status Check (default)
If no arguments or
, read the config and display:status
cat .claude/Governance/config.json
Then output this table with actual values:
## Governance Status | Setting | Status | |---------|--------| | governance_enabled | [✅ ON or ❌ OFF] | | chain_of_command_enforcement | [✅ ON or ❌ OFF] | | session_end_enforcement | [✅ ON or ❌ OFF] | | bypass_allowed_for_single_file | [✅ ON or ❌ OFF] |
Action: Toggle All (on
or off
)
onoffIf argument is
, update config:on
{ "governance_enabled": true, "chain_of_command_enforcement": true, "session_end_enforcement": true, "bypass_allowed_for_single_file": true, "notes": "Set governance_enabled to false to disable all governance checks" }
If argument is
, update config:off
{ "governance_enabled": false, "chain_of_command_enforcement": false, "session_end_enforcement": false, "bypass_allowed_for_single_file": true, "notes": "Set governance_enabled to false to disable all governance checks" }
After updating, confirm: "Governance [enabled/disabled]. All settings updated."
Action: Toggle Specific Setting
If argument is
, update only chain on/off
chain_of_command_enforcement.
If argument is session on/off, update only session_end_enforcement.
If argument is bypass on/off, update only bypass_allowed_for_single_file.
After updating, show the full status table.
Quick Reference
| Command | Effect |
|---|---|
| Show status |
| Enable all |
| Disable all |
| Allow direct specialist spawning |
| Skip session-end checks |
| Require coordinator for ALL tasks |
When to Disable
Disable governance for:
- Emergency P0 fixes (speed over process)
- Solo exploration sessions
- Quick prototyping
Keep enabled for:
- Production changes
- Multi-agent coordination
- Anything touching compliance/security
Related
- Raw config file.claude/Governance/config.json
- Chain of command.claude/Governance/HIERARCHY.md
- Session close-out (respects governance toggle)/session-end
- Shows governance status at session start/startupO