Skip to content

Conversation

@binbinao
Copy link
Owner

@binbinao binbinao commented Jan 21, 2026

  • fix: respect OPENCODE_CONFIG_DIR for personal skills lookup

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.

  • fix: update help text to use dynamic paths

Use configDir and personalSkillsDir variables in help text so paths are accurate when OPENCODE_CONFIG_DIR is set.

  • fix: normalize OPENCODE_CONFIG_DIR before use

Handle edge cases where the env var might be:

  • Empty or whitespace-only
  • Using ~ for home directory (common in .env files)
  • A relative path

Now trims, expands ~, and resolves to absolute path.


Note

Ensures personal skills are resolved from OPENCODE_CONFIG_DIR when set, with robust path handling.

  • Adds normalizePath to trim, expand ~, and resolve absolute paths for OPENCODE_CONFIG_DIR
  • Derives configDir from env or default ~/.config/opencode, and sets personalSkillsDir from it
  • Updates bootstrap/help text to reference ${configDir}/skills instead of hardcoded paths
  • Adjusts find_skills empty-state message to show dynamic superpowersSkillsDir and personalSkillsDir

Written by Cursor Bugbot for commit a01a135. This will update automatically on new commits. Configure here.

* fix: respect OPENCODE_CONFIG_DIR for personal skills lookup

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.

* fix: update help text to use dynamic paths

Use configDir and personalSkillsDir variables in help text so paths
are accurate when OPENCODE_CONFIG_DIR is set.

* fix: normalize OPENCODE_CONFIG_DIR before use

Handle edge cases where the env var might be:
- Empty or whitespace-only
- Using ~ for home directory (common in .env files)
- A relative path

Now trims, expands ~, and resolves to absolute path.
@binbinao binbinao merged commit 5e0c3e4 into binbinao:main Jan 21, 2026
1 check passed
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.

2 participants