Installing as a Pi coding-agent package fails: `prepare` needs devDependencies, but Pi installs git packages with --omit=dev
Maintainers usually reply within 1 day
@vaibhavdabas16 is already working on this.
Since Nov 25, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 66/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- devtools
Research direction
Start by reproducing the install with npm install --omit=dev --legacy-peer-deps and inspect package.json’s files and prepare entries, then trace the typescript resolution failure in build.js. Compare the two suggested fixes against how Pi discovers package skills and consumes the npm tarball. Done means Pi can install and access the official skills through a supported install path.
Written by the indexing model from the issue text.
Description
Summary
pi install https://github.com/Fission-AI/OpenSpec fails on the current Pi coding agent. Pi checks out this repo and runs npm install --omit=dev ...; the prepare script (node build.js) then fails because typescript lives in devDependencies. This blocks Pi users from installing OpenSpec as an updatable git-source package — which matters because the repo's conventional skills/ directory is exactly what Pi loads as package skills. The npm tarball does not ship skills/ (the files field only includes dist, bin, schemas), so there is currently no way to get the official OpenSpec skills into Pi.
Repro
pi install https://github.com/Fission-AI/OpenSpec
# -> install fails (build phase)
# equivalent manual repro:
git clone --depth 1 https://github.com/Fission-AI/OpenSpec && cd OpenSpec
npm install --omit=dev --legacy-peer-deps
> @fission-ai/[email protected] prepare
> node build.js
🔨 Building OpenSpec...
Compiling TypeScript...
❌ Build failed!
npm error code 1
npm error command failed
npm error command ... node build.js
build.js fails at require.resolve('typescript/bin/tsc') because typescript is a devDependency and is not installed under --omit=dev. Pi then removes the checkout and aborts the install.
Why Pi installs this way
Pi (earendil-works/pi) intentionally installs git packages with production dependencies only — packages/coding-agent/src/core/package-manager.ts → getGitDependencyInstallArgs() returns ["install", "--omit=dev", "--legacy-peer-deps", "--no-audit", "--no-fund"]. So any prepare script that requires devDependencies makes a repo uninstallable as a Pi package.
Context
prepare: pnpm run buildhas been present since v1.0.0.- A user reports OpenSpec installed fine on an older Pi version; current Pi versions install git-package dependencies (triggering
prepare), which is when this started failing. - Pi auto-discovers the conventional
skills/directory, so a working git-source install would give Pi users the official opsx skills and stay updatable from Pi/Cindy settings.
Suggested fixes (either would unblock)
- Publish
skills/in the npm tarball (add"skills"tofiles). Thenpi install npm:@fission-ai/openspecworks with zero lifecycle-script risk. This is the least invasive option and benefits every agent that can consume npm packages. - Make
preparefail soft when devDependencies are absent, e.g. skip the build with a warning iftypescriptcannot be resolved. Pi package consumers don't needdist(they use the separately installed CLI), while CLI-from-git users would still get a real build on a full dev install.
Environment
- Pi 1.5.0 (via Cindy), Windows 11
- node v22.23.2, npm 10.9.8
- Fission-AI/OpenSpec
main@ 1.16.1 (2026-11-07)
- Dominant language
- TypeScript
- Stars
- 76k
- Forks
- 5.2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 58
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Fission-AI/OpenSpec
-
enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Fission-AI/OpenSpec#2337 ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Fission-AI/OpenSpec#2311 ·
Maintainers usually reply within 1 day
-
sync-specs skill overwrites an existing ADDED requirement, contradicting the CLI's no-op/conflict rule from #1376May be free again @vaibhavdabas16 claimed this 10 days ago, and no pull request is open. Openapproved
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Fission-AI/OpenSpec#2289 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
Fission-AI/OpenSpec#2208 · 2 comments ·
Maintainers usually reply within 1 day
-
Document the RFC 2119 keyword rule (attribution lost in docs rebuild) and its clarification update RFC 8174Possibly taken @sofiaali1521-cloud claimed this 5 days ago. Opendocumentation needs-triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Fission-AI/OpenSpec#2200 · 5 comments ·
Maintainers usually reply within 1 day
All issues in Fission-AI/OpenSpec
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nicobailon/pi-subagents#3425 ·
Maintainers usually reply within 1 day
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)Possibly taken A pull request linked to this issue is open or already merged. Openarea-a2a bug port python
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
strands-agents/harness-sdk#6697 · 1 comment ·
Maintainers usually reply within 1 day
-
api technical-debt
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
opencollective/opencollective#9235 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
openwatersio/slackwater#603 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day