用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/laicluse/agent-fieldkit --skill enable-git命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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 | enable-git |
| user-invocable | true |
| description | Explicit /git-discipline:enable-git: remove the repo read-only git lock. |
| disable-model-invocation | true |
| argument-hint |
Remove the per-repo lock that /git-discipline:disable-git set. The lock is not
Claude-specific: while it is in place the installed commit-msg and pre-push
hooks reject commits and pushes from every caller, including Codex and a plain
shell. Removing it restores git for all of them. Has no effect when no lock is
present.
The plugin's UserPromptExpansion hook handles this command at the keystroke
itself: it removes .git/git-discipline-deny, 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 removing
the lock: the sentinel-protect guard denies agent-driven removal in any case,
with no escape. Likely causes are a plugin installed without its hooks, or a
host that does not implement UserPromptExpansion.