Skip to content

fix: setup creates skill symlinks when gstack is symlinked from dev checkout#45

Open
theanh wants to merge 1 commit intogarrytan:mainfrom
theanh:fix/setup-symlink-dev-checkout
Open

fix: setup creates skill symlinks when gstack is symlinked from dev checkout#45
theanh wants to merge 1 commit intogarrytan:mainfrom
theanh:fix/setup-symlink-dev-checkout

Conversation

@theanh
Copy link

@theanh theanh commented Mar 14, 2026

Summary

  • When ~/.claude/skills/gstack is a symlink to a dev checkout, the setup script resolved GSTACK_DIR to the real path, making SKILLS_DIR point to the workspace parent instead of ~/.claude/skills/
  • This caused newer skills (gstack-upgrade, qa, setup-browser-cookies) to never get symlinked, so they weren't discoverable by Claude Code
  • Fix: detect when ~/.claude/skills/gstack is a symlink pointing back to us, and create symlinks there

Test plan

  • Verified bash setup from dev checkout now outputs linked skills: browse gstack-upgrade plan-ceo-review plan-eng-review qa retro review setup-browser-cookies ship
  • Verified symlinks created correctly in ~/.claude/skills/
  • Verify setup still works when gstack is cloned directly into ~/.claude/skills/ (non-symlink case)

🤖 Generated with Claude Code

…heckout

When ~/.claude/skills/gstack is a symlink to a dev checkout, the setup
script resolved GSTACK_DIR to the real path, so SKILLS_DIR pointed to
the workspace parent instead of ~/.claude/skills/. This caused newer
skills (gstack-upgrade, qa, setup-browser-cookies) to never get symlinked.

Now detects this case by checking if ~/.claude/skills/gstack points back
to us, and creates symlinks there.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant