mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-17 07:10:12 +02:00
88a96ec842
The PreToolUse frontmatter hooks for guard, freeze, and careful invoked
`bash ${CLAUDE_SKILL_DIR}/.../check-*.sh`. Claude Code 2.1.162 no longer populates
${CLAUDE_SKILL_DIR} in the skill-hook execution env, so it expanded to empty and
every Edit/Write/Bash ran `bash /...` and errored — breaking the safety skills
entirely.
Frontmatter hooks run before any skill-body bash, so no runtime-resolved variable
can fix this; the command must be a path that's valid at hook time. Anchor to the
installed checkout: $HOME/.claude/skills/gstack/{careful,freeze}/bin/check-*.sh,
where the scripts actually live. ($HOME is expanded by the hook shell.)
Reported by @omariani-howdy. Regenerated the three SKILL.md from templates.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>