gstack/careful
Garry Tan 88a96ec842
fix(skills): anchor guard/freeze/careful hook paths so they survive CC 2.1.162 (#1871)
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>
2026-06-07 22:53:41 -07:00
..
bin v1.31.1.0 fix wave: 3 community PRs (careful BSD sed, codex Step 0 rename, make-pdf setup ordering) (#1413) 2026-05-10 06:57:24 -07:00
SKILL.md fix(skills): anchor guard/freeze/careful hook paths so they survive CC 2.1.162 (#1871) 2026-06-07 22:53:41 -07:00
SKILL.md.tmpl fix(skills): anchor guard/freeze/careful hook paths so they survive CC 2.1.162 (#1871) 2026-06-07 22:53:41 -07:00