Skip to content

Skill-frontmatter PreToolUse hooks broken on Claude Code 2.1.162 (${CLAUDE_SKILL_DIR} not populated) #1871

@omariani-howdy

Description

@omariani-howdy

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}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions