Repository navigation
Description
Fix order: 3 of 7 · Severity: P1
Symptom
On a machine where bigpowers is both developed and installed, pi 1.5.0 prints one collision block per skill:
[Skill warnings]
"align-grid" collision:
✓ auto (project) ~/Developer/bigpowers/.agents/skills/align-grid/SKILL.md
✗ ~/.pi/agent/skills/align-grid/SKILL.md (skipped)
✗ ~/Developer/bigpowers/.pi/skills/align-grid/SKILL.md (skipped)
… 79 more
Measurement
Five copies of the same catalog exist on disk, and pi scans four of them (~/.pi/agent/skills, <cwd>/.pi/skills, <cwd>/.agents/skills + ancestors, ~/.agents/skills, plus package pi.skills):
| # | Path | Written by | pi rank |
|---|---|---|---|
| 1 | skills/ |
human edits (source of truth) | not a discovery root |
| 2 | .pi/skills/ |
scripts/sync-skills.sh (committed) |
package / project |
| 3 | .agents/skills/ |
scripts/lib/install-targets-b.sh:90 (Antigravity render) |
project — wins |
| 4 | ~/.pi/agent/skills/ |
scripts/install.sh → symlinks to copy #1 |
user |
| 5 | ~/.agents/skills/ |
Claude channel → ~/.claude/skills |
user |
Counted across roots 2/3/4/5: 91 distinct skill names, 80 of them present in ≥2 roots with different real paths — exactly the 80 collision blocks. Only 4 names appear in 3 roots; 76 appear in 4.
pi keeps the first discovered by rank (package-manager.ts:215-221), so on this machine the Antigravity render wins over both the maintained source and the package copy — see #209 (.agents/skills hijack).
Root cause
There is no declaration of "which single channel owns pi on this machine". ~/.pi/agent/settings.json lists "../../Developer/bigpowers" in packages, scripts/install.sh also owns ~/.pi/agent/skills, and bin/setup.js:68 offers the pi symlink target independently of the package flow. Any two of them together produce the full warning wall; all three produce it on every start.
Prior art for the same shape: #121 / BUG-2026-09-09-pi-duplicate-slash-commands (duplicate slash commands from two providers).
Fix direction
- Add
distribution-targets.yaml(or extend.pi/package.json) declaring per host: one owned path + one mode (package|symlink). scripts/install.shandbin/setup.jsrefuse to create a pi symlink channel when the package channel is present, and print which channel they own.- Add
--verify/bigpowers setup --verifythat reports duplicate discovery roots on a live machine. - Document the pi channel matrix + the acceptance line:
bigpowers: 80 skills loadedwith zero warnings.
Verify
# clean machine, package channel:
pi # → "bigpowers: 80 skills loaded", no collision blocks, no update banner
# clean machine, symlink channel:
bash scripts/install.sh && pi # → same, and ~/.pi/agent/settings.json has no bigpowers package entry
Activity
fix(skills): YAML comments for frontmatter story tags, and a gate tha…
feat(dist): verify-distribution reports duplicate install channels (#226
chore(release): 2.94.0 [skip ci]
github-actions commentedon Nov 6, 2026
🎉 This issue has been resolved in version 2.94.0 🎉
The release is available on:
Your semantic-release bot 📦🚀