Skip to content

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

Closed

Description

@tharanee-bit

Summary

Every path in skills-lock.json is missing the / before SKILL.md, e.g.

"align-grid": { "path": "skills/align-gridSKILL.md", ... }

The real file is skills/align-grid/SKILL.md. This affects all 81 entries in the published 2.88.9 package and on main.

Impact

scripts/mcp-server.js resolves skills through these paths (getSkillContent: path.join(ROOT, skill.path) then fs.existsSync), so bigpowers_get_skill and bigpowers_invoke_skill return Skill "<name>" not found for every valid skill name. bigpowers_list_skills / bigpowers_search_skills are unaffected because they only read names and descriptions.

Cause

scripts/regenerate-lockfile.sh line 15:

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

Suggested fix:

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

then regenerate the lockfile via npm run sync in a repo checkout. (Verified on a copy of 2.88.9: after the one-character fix, 0 of 81 paths are missing and bigpowers_get_skill returns the skill content.)

Minor, related: running bash scripts/regenerate-lockfile.sh standalone fails with REPO_ROOT: unbound variable (line 6), because resolve_repo_root is only called inside iterate_skills, which runs in a process-substitution subshell. It works when invoked from sync-skills.sh, which calls resolve_repo_root first. Calling resolve_repo_root at the top of regenerate-lockfile.sh would make it self-contained.

Reproduce (bigpowers 2.88.9, Node 22, macOS)

cd /path/to/bigpowers   # package root, e.g. "$(npm root -g)/bigpowers" for npm -g, or a repo checkout
printf '%s\n' \
 '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
 '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
 '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"bigpowers_get_skill","arguments":{"name":"survey-context"}}}' \
 | node scripts/mcp-server.js

Actual: a successful tools/call result (no isError) whose text content is {"error": "Skill \"survey-context\" not found"}
Expected: the contents of skills/survey-context/SKILL.md.

Quick check that every path is broken:

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

Suggestion

A regression check in the compliance/self-test scripts that every skills-lock.json path exists would catch this. Note scripts/golden-g04-selftest.sh currently only compares skill counts, which is why it passes.

(Workaround for anyone hitting this: the bundled bigpowers-mcp/build/index.js server reads skills/*/SKILL.md directly and works.)

Activity

  1. danielvm-git commented on Oct 25, 2026

    @danielvm-git
    Owner

    @tharanee-bit — Thank you for one of the most complete bug reports in this repo's history: you identified the exact line, provided the one-character fix, wrote a reproducible test command, and caught the secondary REPO_ROOT unbound-variable edge case as a bonus. This is exactly the kind of writeup that makes a fix land in minutes rather than days. Fixing now — deeply appreciated.

  2. github-actions commented on Oct 25, 2026

    @github-actions

    🎉 This issue has been resolved in version 2.88.11 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  3. added a commit that references this issue on Oct 28, 2026
    04bda15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions