Skip to content

fix(version-check): auto-detect SKILL_DIR for Claude Code installs#46

Merged
ShuxunoO merged 2 commits intoMinara-AI:mainfrom
Antoniaiaiaiaia:fix/skill-dir-detection
Apr 10, 2026
Merged

fix(version-check): auto-detect SKILL_DIR for Claude Code installs#46
ShuxunoO merged 2 commits intoMinara-AI:mainfrom
Antoniaiaiaiaia:fix/skill-dir-detection

Conversation

@Antoniaiaiaiaia
Copy link
Copy Markdown

Problem

When SKILL_DIR is not set, version-check.sh hard-coded
~/.openclaw/skills/minara as the fallback. Users who installed the
skill via Claude Code (which places it under ~/.claude/skills/minara)
always got SKILL_LOCAL=0.0.0, causing a false UPGRADE skill:0.0.0->X
warning every session.

Fix

Auto-detect the correct path by probing known install locations in order:

Priority Path Agent
1 $SKILL_DIR (env var) explicit override — unchanged
2 ~/.claude/skills/minara Claude Code
3 ~/.openclaw/skills/minara OpenClaw
4 script's own parent dir custom / in-place installs

No behaviour change for OpenClaw users or anyone who sets SKILL_DIR manually.

Testing

Verified on macOS with Claude Code install path — version-check.sh now
outputs UP_TO_DATE instead of the false UPGRADE skill:0.0.0->3.0.1.

🤖 Generated with Claude Code

antonia and others added 2 commits April 2, 2026 14:57
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)
@ShuxunoO ShuxunoO merged commit 7e3f90d into Minara-AI:main Apr 10, 2026
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