用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/govctl-org/govctl --skill commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Write durable work items with scoped descriptions, testable categorized acceptance criteria, governing references, and risk-matched guards
Explore a governance design, resolve ambiguity, and draft RFC or ADR artifacts without implementation
Execute governed implementation with work-item traceability, RFC/ADR authority, risk-scoped verification, and closure
基于 SOC 职业分类
正在显示 SKILL.md
| name | commit |
| description | Record a focused VCS commit with govctl validation and Work Item traceability |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, TodoWrite |
| argument-hint | [optional commit message hint] |
Record the current coherent change without inventing governance work or rewriting unrelated files.
Detect Jujutsu first:
jj root
If it succeeds, use only jj. A colocated repository also contains .git, so
probing Git would select the wrong VCS. Only when jj root fails, use
git rev-parse --git-dir.
Treat the repository as governed when gov/config.toml or gov/ exists. In the
govctl repository itself, use cargo run --quiet -- for governance commands.
Inspect current changes with jj status and jj diff, or with the corresponding
Git commands after Git has been selected:
git status --short
git diff
git diff --cached
Use the selected VCS --help when additional syntax is needed.
govctl check fails.For governed repositories, run govctl check and inspect active Work Items with
govctl work list active. Use the matching active or completed item already
visible in task context or the diff; query govctl work list done only when that
context does not identify it. Spec-only changes may be committed without a Work
Item.
Before committing a matching active Work Item:
done only when all criteria and effective guards pass; andAn implementation Work Item may already be done before its final commit. Keep
the closure change and implementation in the same coherent commit.
Review the full diff, including generated and governance files. The commit must
represent one explainable outcome. Leave unrelated work untouched. If unrelated
work shares the current Jujutsu change, stop before describing it and use
jj split --help or user guidance to establish a coherent change boundary.
For Git, inspect the index before committing and stop if it already contains
unrelated staged changes; staging reviewed paths does not remove them.
Use:
<type>(<area>): <short summary>
Choose feat, fix, refactor, docs, test, or chore from the delivered
outcome, not from individual file types.
For Jujutsu, describe the current change and then create a new empty change:
jj describe -m "<type>(<area>): <summary>"
jj new
For Git, stage the reviewed change and commit it:
git add -- <reviewed-path>...
git commit -m "<type>(<area>): <summary>"
Use stdin for a multi-line commit message. Do not open an interactive VCS editor.
Report:
govctl check result for governed repositories; and