用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/laicluse/agent-fieldkit --skill disable-discipline命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when corrective work, migrations, living docs, or temporary diagnostic tests leave superseded residue, or before handoff.
Use when corrective work, migrations, living docs, or temporary diagnostic tests leave superseded residue, or before handoff.
Reference for git-discipline commit bodies, trailers, hook denials, examples, and escape hatches.
正在显示 SKILL.md
| name | disable-discipline |
| user-invocable | true |
| description | Explicit /git-discipline:disable-discipline: turn off the git-discipline guards for this session. |
| disable-model-invocation | true |
| argument-hint |
Disable the git-discipline PreToolUse:Bash guards for the current session. All
guards (commit-format, commit-subject, commit-body, commit-trailers,
git-dash-c, push-wip-gate) are torn down until the operator runs
/git-discipline:enable-discipline. Other sessions are not affected; the
sentinel is session-specific.
This covers the guards that run inside this session only. The per-repo
/git-discipline:disable-git lock is orthogonal and keeps firing regardless,
for every caller.
The plugin's UserPromptExpansion hook handles this command at the keystroke
itself: it writes the session sentinel, reports the result, and blocks the
expansion, so this file's content never reaches the model.
Reading this text means the hook did not run. Report that instead of writing
the sentinel: the sentinel-protect guard denies agent-driven writes in any
case, with no escape. Likely causes are a plugin installed without its hooks,
or a host that does not implement UserPromptExpansion.
Only when the operator explicitly types this command. Never suggest it to get past a blocked commit. The guards exist for a reason; bypassing them is the operator's choice.
Typical use: a session that deliberately works outside the normal commit schema (a series of trivial fixup commits, a rebasing session, or an experimental branch where the discipline does not apply temporarily).
Restore the guards with /git-discipline:enable-discipline. Check the state
with /git-discipline:discipline-status.