Skip to content

bug(setup): pi project-local path is .pi/agent/skills, which pi never scans #220

Closed

Description

@danielvm-git

Fix order: 10 · Severity: P1 · Related: #208, #214

Symptom

bigpowers setup offers a project-local install for pi (bin/setup.js:68). It writes to <project>/.pi/agent/skills/, which pi never scans, so project-local pi installs silently do nothing.

{ id: 'pi', globalPath: '~/.pi/agent/skills', localPath: '.pi/agent/skills' },

Root cause

pi resolves project resources from <cwd>/.pi/ (CONFIG_DIR_NAME + skills), i.e. <cwd>/.pi/skills — src/core/package-manager.ts:2599-2605:

const projectDirs = { …, skills: join(projectBaseDir, "skills"), … };   // projectBaseDir = join(cwd, '.pi')

~/.pi/agent/skills is the user-global dir. The setup entry concatenates the two shapes, producing .pi/agent/skills, a path no pi version scans under any trust setting.

Second-order effect: with a stray .pi/agent/skills present, contributors get a directory that looks installed, plus the ~/.pi/agent/skills global copy already exists — more confusion on top of #208.

Fix direction

  • localPath: '.pi/skills' for pi.
  • Audit every other localPath in bin/setup.js:59-79 against the host's documented project path, and add a per-target verify probe: after install, assert the host's own loader finds the skill (e.g. pi: file exists at <cwd>/.pi/skills/<name>/SKILL.md).
  • Add a table test asserting localPath is under the host's documented config dir.

Verify

cd /tmp/demo && bigpowers setup --local --tools pi
ls .pi/skills/*/SKILL.md        # must exist
pi                              # lists the skills
ls .pi/agent/skills             # must NOT exist

Activity

  1. added
    bug
    quality
    on Nov 6, 2026
  2. added a commit that references this issue on Nov 6, 2026
  3. added a commit that references this issue on Nov 6, 2026
  4. github-actions commented on Nov 6, 2026

    @github-actions

    🎉 This issue has been resolved in version 2.93.7 🎉

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugqualityreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions