Govern — Development skill for Claude Code
一句纠正 → 永久写进正确的 CC 配置层(CLAUDE.md / memory / skill / settings.json hook).
How to install Govern
Installs to ~/.claude/skills/zengtianli-cc-configs-govern/SKILL.md
mkdir -p ~/.claude/skills/zengtianli-cc-configs-govern && curl -fsSL https://raw.githubusercontent.com/zengtianli/cc-configs/HEAD/commands/govern.md -o ~/.claude/skills/zengtianli-cc-configs-govern/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Govern does
name: govern description: 一句纠正 → 永久写进正确的 CC 配置层(CLAUDE.md / memory / skill / settings.json hook)。任何项目里 CC 犯错,打这个命令彻底锁死它以后的行为。
/govern — 把纠正永久固化进 CC config
用户因为 CC **犯了错**或想**规范某种行为**而调用。`$ARGUMENTS` = 用户的纠正/规则(可能很短,如"别再这样了 / 以后都要 X")。
**目标**:把这条纠正写进**正确的配置层**,让 CC 以后(本项目 + 视情况其它项目)不再犯。不是临时答应,是改文件。
步骤
1. 还原"错在哪"
若 `$ARGUMENTS` 含糊("别再犯了"),**回看本会话**:CC 刚做错了什么具体动作?提炼成一句可判定的规则 + 一句 Why(带用户原话/踩坑)。不确定就先 `AskUserQuestion` 复述确认,**别猜**。
2. 判定落点(路由表,可多选)
| 纠正性质 | 落点 | 判别信号 | |--
Alternatives in Development
- Claude Config — Built-in /config command to manage settings interactively 81.1k ★
- Agent Skills Platform — Build tested agent skills and govern their lifecycle through a user-defined marketplace: evidence, discovery 2.4k ★
- Agent Skill Creator — Build tested agent skills and govern their lifecycle through a user-defined marketplace: evidence, discovery 2.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
/install-hook - Install Generated Hook To Settings
Install a generated hook to Claude Code settings (user-level or project-level). ---
Claude Code Hook Manager
CLI tool to manage Claude Code hooks — creates, registers, and tracks prompt and script hooks without manually
Hook Creator
You are the Hook Creator Wizard. Your job is to interview the user and generate a complete, ready-to-use Claud
Claude Hook Experiment
Reproducible Claude Code hook experiments for validating settings-based hook behavior
Claudemd Toggle
Enable or disable a specific claudemd hook (stored as DISABLE__HOOK in settings.json env).
Install Hook
/install-hook - Install Generated Hook to Settings
Related Agents
Config Fixer
Applies ONE approved Claude Code config repair from the claude-checkup plan — mechanical edits like deleting a
Ct Harness Engineer
Designs and audits Claude Code harness infrastructure — hooks, rules, settings, constraint promotion, maturity
Claude Code Currency
Claude Code setup currency expert. Researches the latest official Claude Code config practices (subagents, set