fix(installer): Add symlink support for custom PAI_DIR skill discovery#403
Closed
banjoey wants to merge 1 commit into
Closed
fix(installer): Add symlink support for custom PAI_DIR skill discovery#403banjoey wants to merge 1 commit into
banjoey wants to merge 1 commit into
Conversation
Claude Code natively scans ~/.claude/skills/ for skills, but users with custom PAI_DIR settings (e.g., ~/PAI) couldn't have their skills auto- discovered because the skills were installed elsewhere. This fix: - Updates installer to use config.installDir instead of hardcoded path - Detects when PAI_DIR differs from ~/.claude and explains the issue - Offers to create a symlink from ~/.claude/skills to $PAI_DIR/skills - Handles edge cases (existing symlinks, directories, conflicts) - Updates INSTALL.md with symlink question and creation step (Phase 4.1.1) - Updates VERIFY.md with symlink verification checklist and script - Changes default from ~/.config/pai to ~/.claude to match Claude Code Discovered when skills were installed to ~/PAI but Claude Code couldn't find them because it only scans ~/.claude/skills/ natively. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Naturally I wanted to isolate PAI from claude and the docs lead AI and me to believe PAI_DIR was the way. I hit the problem described myself and thought I must be holding it wrong :) |
Collaborator
|
Thank you for the custom PAI_DIR symlink support, @banjoey! Smart approach to supporting non-default install locations. v3.0 completely overhauled the installer and the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Claude Code natively scans
~/.claude/skills/for skills, but users with customPAI_DIRsettings (e.g.,~/PAI) couldn't have their skills auto-discovered. This fix:config.installDirinstead of a hardcoded pathPAI_DIRdiffers from~/.claudeand explains the skill discovery issue~/.claude/skills→$PAI_DIR/skillsINSTALL.mdwith a symlink question and creation stepVERIFY.mdwith symlink verification checklist and script~/.config/paito~/.claudeto match Claude Code's native pathProblem
When
PAI_DIRis set to something other than~/.claude, skills are installed to$PAI_DIR/skills/but Claude Code only looks in~/.claude/skills/natively. This meant skills wouldn't be auto-discovered, leading to confusion about why skill routing wasn't working.Solution
The installer now:
PAI_DIRdiffers from~/.claudeTest Plan
PAI_DIR(no symlink needed)PAI_DIR- accept symlink creationPAI_DIR- decline symlink, verify manual instructions shown🤖 Generated with Claude Code