Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,16 @@ link_claude_skill_dirs() {
# Validate target isn't a symlink before creating the link
if [ -L "$target/SKILL.md" ]; then rm "$target/SKILL.md"; fi
ln -snf "$gstack_dir/$dir_name/SKILL.md" "$target/SKILL.md"
# Also link bin/ when the source skill ships one. PreToolUse hook
# frontmatter references $CLAUDE_SKILL_DIR/bin/<script>; without
# this link those paths resolve to a non-existent target and the
# hook silently no-ops (issue #1459). Same fix applies to every
# skill that publishes scripts -- freeze, careful, browse, etc.
if [ -d "$gstack_dir/$dir_name/bin" ]; then
if [ -L "$target/bin" ]; then rm "$target/bin"; fi
if [ -e "$target/bin" ] && [ ! -L "$target/bin" ]; then rm -rf "$target/bin"; fi
ln -snf "$gstack_dir/$dir_name/bin" "$target/bin"
fi
linked+=("$link_name")
fi
done
Expand Down