fix(version-check): auto-detect SKILL_DIR for Claude Code installs#46
Merged
ShuxunoO merged 2 commits intoMinara-AI:mainfrom Apr 10, 2026
Merged
Conversation
When SKILL_DIR is not set explicitly, the script previously defaulted to `~/.openclaw/skills/minara`, causing it to report version 0.0.0 for users who have the skill installed under `~/.claude/skills/minara` (Claude Code's install path). Detection order: 1. `$SKILL_DIR` env var (unchanged — explicit override wins) 2. `~/.claude/skills/minara` (Claude Code) 3. `~/.openclaw/skills/minara` (OpenClaw) 4. script's own parent directory (in-place / custom installs)
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.
Problem
When
SKILL_DIRis not set,version-check.shhard-coded~/.openclaw/skills/minaraas the fallback. Users who installed theskill via Claude Code (which places it under
~/.claude/skills/minara)always got
SKILL_LOCAL=0.0.0, causing a falseUPGRADE skill:0.0.0->Xwarning every session.
Fix
Auto-detect the correct path by probing known install locations in order:
$SKILL_DIR(env var)~/.claude/skills/minara~/.openclaw/skills/minaraNo behaviour change for OpenClaw users or anyone who sets
SKILL_DIRmanually.Testing
Verified on macOS with Claude Code install path —
version-check.shnowoutputs
UP_TO_DATEinstead of the falseUPGRADE skill:0.0.0->3.0.1.🤖 Generated with Claude Code