用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/laicluse/agent-fieldkit --skill discipline-status命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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 | discipline-status |
| user-invocable | true |
| description | Report whether git-discipline guards are enabled for this session and plugin version. |
| disable-model-invocation | true |
| argument-hint | |
| effort | low |
Report the current state of the git-discipline guards for this session.
${LAICLUSE_HOME:-~/.laicluse}/git-discipline/git-discipline-disabled-<session_id>).${LAICLUSE_HOME:-~/.laicluse}/git-discipline/git-discipline-disabled-global).~/.claude/plugins/installed_plugins.json).Perform the following steps and present the output as a structured status report:
# 1. Session_id
SESSION_ID="${CLAUDE_SESSION_ID:-}"
# If empty: find the most recent JSONL file
if [[ -z "$SESSION_ID" ]]; then
SESSION_ID=$(ls -t "$HOME/.claude/projects/"*/*.jsonl 2>/dev/null | head -1 | xargs basename 2>/dev/null | sed 's/\.jsonl$//' || true)
fi
# 2. Sentinel paths
SESSION_SENTINEL="${LAICLUSE_HOME:-$HOME/.laicluse}/git-discipline/git-discipline-disabled-${SESSION_ID}"
GLOBAL_SENTINEL="${LAICLUSE_HOME:-$HOME/.laicluse}/git-discipline/git-discipline-disabled-global"
# 3. Check status
[[ -f "$SESSION_SENTINEL" ]] && SESSION_DISABLED=yes || SESSION_DISABLED=no
[[ -f "$GLOBAL_SENTINEL" ]] && GLOBAL_DISABLED=yes || GLOBAL_DISABLED=no
# 4. Plugin version
PLUGIN_VERSION=$(jq -r '.plugins["git-discipline@laicluse-agent-fieldkit"][0].version // "unknown"' \
"$HOME/.claude/plugins/installed_plugins.json" 2>/dev/null || echo "unknown")
# 5. Install path for guard list
INSTALL_PATH=$(jq -r '.plugins["git-discipline@laicluse-agent-fieldkit"][0].installPath // ""' \
"$HOME/.claude/plugins/installed_plugins.json" 2>/dev/null || true)
# 6. Guard scripts
GUARDS=""
[[ -d ]];
GUARDS=$( 2>/dev/null | )
Present the result as:
git-discipline session status
---------------------
Session ID : <session_id or "not available">
Session sentinel: <path> [EXISTS / not found]
Global sentinel : <path> [EXISTS / not found]
Guards : DISABLED / ACTIVE
Plugin version : <version>
Guard scripts : <list of .sh files>
If guards are DISABLED, mention /git-discipline:enable-discipline to re-enable them.