gstack/investigate
Garry Tan 3fa7739689
fix(investigate): anchor the scope-lock freeze hook on $HOME, not CLAUDE_SKILL_DIR
The investigate skill's PreToolUse hooks and Scope Lock probe resolved
check-freeze.sh via ${CLAUDE_SKILL_DIR}, which does not exist when
frontmatter hooks run — the || exit 0 tail then failed open, so the debug
scope boundary silently never engaged (#1871 follow-up). Anchor all four
sites on $HOME/.claude/skills/gstack/ like careful/freeze, and add a static
test asserting no frontmatter command: line in the guard-family skills ever
references CLAUDE_SKILL_DIR again.

Fixes #2469; closes the last live half of #1459 together with the
freeze/careful hookSpecificOutput fix. The broader portable-install-root
rewrite stays #1882 (its own focused PR per the TODOS.md decision).

Reported with a fix by @maxpetrusenkoagent (PR #1873; absorbed narrowly —
the cwd-walk rewrite belongs to #1882).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 20:20:48 -07:00
..
SKILL.md fix(investigate): anchor the scope-lock freeze hook on $HOME, not CLAUDE_SKILL_DIR 2026-08-14 20:20:48 -07:00
SKILL.md.tmpl fix(investigate): anchor the scope-lock freeze hook on $HOME, not CLAUDE_SKILL_DIR 2026-08-14 20:20:48 -07:00