fix: respect OPENCODE_CONFIG_DIR for personal skills lookup (#297) #1
+21
−3
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.
The plugin was hardcoded to look for personal skills in ~/.config/opencode/skills, ignoring users who set OPENCODE_CONFIG_DIR to a custom path (e.g., for dotfiles management).
Now uses OPENCODE_CONFIG_DIR if set, falling back to the default path.
Use configDir and personalSkillsDir variables in help text so paths are accurate when OPENCODE_CONFIG_DIR is set.
Handle edge cases where the env var might be:
Now trims, expands ~, and resolves to absolute path.
Note
Ensures personal skills are resolved from
OPENCODE_CONFIG_DIRwhen set, with robust path handling.normalizePathto trim, expand~, and resolve absolute paths forOPENCODE_CONFIG_DIRconfigDirfrom env or default~/.config/opencode, and setspersonalSkillsDirfrom it${configDir}/skillsinstead of hardcoded pathsfind_skillsempty-state message to show dynamicsuperpowersSkillsDirandpersonalSkillsDirWritten by Cursor Bugbot for commit a01a135. This will update automatically on new commits. Configure here.