gstack skill-frontmatter PreToolUse hooks (guard, freeze, careful) use ${CLAUDE_SKILL_DIR}, which Claude Code 2.1.162 does not populate in the skill-hook execution env — it expands to empty, so e.g. guard's Edit hook runs bash /../freeze/bin/check-freeze.sh and errors on every Edit/Write (Bash for careful). Fix: use an absolute/$HOME-anchored path, or a variable CC actually provides to skill hooks, instead of ${CLAUDE_SKILL_DIR}.
gstack skill-frontmatter
PreToolUsehooks (guard,freeze,careful) use${CLAUDE_SKILL_DIR}, which Claude Code 2.1.162 does not populate in the skill-hook execution env — it expands to empty, so e.g. guard's Edit hook runsbash /../freeze/bin/check-freeze.shand errors on every Edit/Write (Bash for careful). Fix: use an absolute/$HOME-anchored path, or a variable CC actually provides to skill hooks, instead of${CLAUDE_SKILL_DIR}.