Skip to content

pi install npm:bigpowers never provisions scripts/` into projects — expected, or did I miss a step for pi users? #116

Closed

Description

@jbalatero

Summary

I installed bigpowers via pi install npm:bigpowers (pi.dev's package mechanism). Every lifecycle skill I run in a consumer project heads up that scripts/*.sh files don't exist there. Before filing this as a bug I want to confirm: for
the pi installation path specifically, is a project-local scripts/ supposed to exist — and if so, how is it provisioned?

What pi actually did (verified on my machine, v2.87.5):

  • Installed the package to ~/.pi/agent/npm/node_modules/bigpowers/ — including its full scripts/ tree (105 scripts, e.g. run-skill-verify.sh, run-verification-gates.sh).
  • Registered the package's resources. Its manifest (package.json → pi key) declares only skills + prompts:
    "pi": { "skills": ["./.pi/skills"], "prompts": ["./.pi/prompts"] }                                                                                                                                                                                
                                                                                                                                                                                                                                                      
  — no scripts, and there is no postinstall hook.                                                                                                                                                                                                     
- pi's package contract (per pi's docs, packages.md: "Pi packages bundle extensions, skills, prompt templates, and themes") has no resource type for arbitrary project files — so pi install can't provision a scripts/ dir into a consumer project,  
  even in principle.                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                      
Meanwhile the skills call bash scripts/... project-relative (e.g. fix-bug/SKILL.md:67 → → verify: test -d specs/bugs && test -f scripts/run-skill-verify.sh), so the scripts sitting inside ~/.pi/agent/npm/node_modules/bigpowers/scripts/ are       
unreachable from any project.                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                      
### Reproduction                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                      
```bash                                                                                                                                                                                                                                               
  pi install npm:bigpowers     # my actual install step                                                                                                                                                                                               
  cd <any consumer project>    # no bigpowers checkout inside it                                                                                                                                                                                      
  # ask the agent to run fix-bug (or verify-work, plan-work, survey-context, …)                                                                                                                                                                       

Observed: skill's verify/HARD GATE probes scripts/X.sh → No such file or directory → agent heads up and either skips the gate or hand-vendors the script from the npm package.

Activity

  1. danielvm-git commented on Sep 1, 2026

    @danielvm-git
    Owner

    Thanks for the detailed report — you didn't miss a step. It was a real gap, and your analysis was exactly right on every point:

    • pi's package contract (skills + prompts only, no resource type for project files, no postinstall) cannot provision scripts/ into a consumer project — even in principle.
    • Meanwhile 44 of 81 SKILL.md files invoke bash scripts/*.sh project-relative (20 with → verify: gates probing them), so the 105 scripts sitting in ~/.pi/agent/npm/node_modules/bigpowers/scripts/ were unreachable from any consumer project. The paths only ever resolved in the bigpowers repo itself (the dev/dogfood flow), which masked the gap since inception.
    • Not pi-specific: npm i -g / npx bigpowers setup consumers had the same hole — skills get linked, scripts/ never does.

    Fix: a new bigpowers init command — run once per consumer project, it symlinks the installed package's scripts/ into the project and scaffolds specs/bugs/ + specs/verifications/ (the other thing verify gates probe). It refuses (never clobbers) a scripts/ you already own, and bigpowers init --remove undoes it.

    Once the fix ships (tracked in #117), the pi flow becomes:

    pi install npm:bigpowers
    cd <your-project>
    npx bigpowers init        # or: bigpowers init

    …after which fix-bug, verify-work, wire-ci etc. resolve their scripts and verify gates in your project.

  2. added a commit that references this issue on Sep 1, 2026
  3. github-actions commented on Sep 1, 2026

    @github-actions

    🎉 This issue has been resolved in version 2.87.8 🎉

    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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions