fix(installer): Add symlink support for custom PAI_DIR skill discovery #403
+279
−40
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