Skip to content

fix(lockfile): add missing slash in skill path + self-contained resolve_repo_root - #156

Merged
danielvm-git merged 1 commit into
mainfrom
fix/lockfile-slash
Oct 25, 2026
Merged

danielvm-git merged 1 commit into
mainfrom
fix/lockfile-slash

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

Fixes #153.

Two bugs fixed

Bug 1 — Missing separator (P0: breaks all MCP skill lookups)

scripts/regenerate-lockfile.sh line 15 produced paths like skills/align-gridSKILL.md instead of skills/align-grid/SKILL.md. Every entry in skills-lock.json was broken, so bigpowers_get_skill and bigpowers_invoke_skill returned "Skill not found" for all 81 skills in the published 2.88.9 package.

# Before
relpath="${skill_dir#$REPO_ROOT/}SKILL.md"
# After
relpath="${skill_dir#$REPO_ROOT/}/SKILL.md"

Bug 2 — Standalone invocation fails

REPO_ROOT was referenced on line 6 before resolve_repo_root was ever called (it only ran inside iterate_skills). Added an explicit resolve_repo_root call right after the source line so the script is self-contained and can be invoked directly.

Verification

jq -r '.skills[].path' skills-lock.json | while read p; do [ -f "$p" ] || echo "missing: $p"; done | wc -l
# → 0  (was 81)

Credit: full root-cause analysis and fix by @tharanee-bit in #153.

🤖 Generated with Claude Code

…ve_repo_root

Fixes #153.

Two bugs in scripts/regenerate-lockfile.sh:

1. Missing separator: `${skill_dir#$REPO_ROOT/}SKILL.md` produced paths like
   `skills/align-gridSKILL.md` instead of `skills/align-grid/SKILL.md`. Every
   entry in skills-lock.json was broken, causing bigpowers_get_skill and
   bigpowers_invoke_skill to return "not found" for all 81 skills. Fixed by
   adding the `/` separator: `${skill_dir#$REPO_ROOT/}/SKILL.md`.

2. Standalone invocation fails: REPO_ROOT was used on line 6 before
   resolve_repo_root was called (it only ran inside iterate_skills). Added an
   explicit resolve_repo_root call after the source line so the script is
   self-contained.

Verified: 0 of 81 paths are missing after regeneration.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@danielvm-git
danielvm-git merged commit 04bda15 into main Oct 25, 2026
3 checks passed
@danielvm-git
danielvm-git deleted the fix/lockfile-slash branch October 25, 2026 11:20
github-actions Bot pushed a commit that referenced this pull request Oct 25, 2026
## [2.88.11](v2.88.10...v2.88.11) (2026-10-25)

### Bug Fixes

* **guard:** resolve git branch per command target, not process cwd ([#154](#154)) ([07c7498](07c7498))
* **lockfile:** add missing slash in skill path + self-contained resolve_repo_root ([#156](#156)) ([04bda15](04bda15))
* **omp-hooks:** inGitRepo bail-early, accept type!(scope) form, echo subject ([#157](#157)) ([9e1b11a](9e1b11a)), closes [#147](#147) [#151](#151) [#151](#151)

### Performance Improvements

* **sync:** render all skills in one bash process per adapter ([#155](#155)) ([1b56463](1b56463)), closes [#137](#137)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.88.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills-lock.json paths missing '/' before SKILL.md — MCP get_skill/invoke_skill always return 'not found'

1 participant