Skip to content

fix(skills): pi supports skills — add .pi/skills install paths#565

Merged
platinummonkey merged 1 commit into
mainfrom
fix/pi-supports-skills
Jun 5, 2026
Merged

fix(skills): pi supports skills — add .pi/skills install paths#565
platinummonkey merged 1 commit into
mainfrom
fix/pi-supports-skills

Conversation

@platinummonkey
Copy link
Copy Markdown
Collaborator

Summary

pi.dev supports skills (https://pi.dev/docs/latest/skills) but was incorrectly marked as extension-only in pup, causing pup skills install --name dd-apm pi to fail with a misleading error message. This PR fixes the platform spec and updates all affected tests.

Changes

  • src/skills.rs:634-644 — Set project_skills=".pi/skills" and user_skills=".pi/agent/skills" in the pi PlatformSpec; remove stale comments calling pi extension-only
  • src/skills.rs — Replace tests asserting pi had no skills dir with tests verifying the correct project and user-scope paths, including a dedicated user-scope test for the asymmetric .pi/agent/skills path
  • src/commands/skills.rs — Replace three tests expecting extension-only errors for pi with tests verifying successful skill installation

Testing

  • All 1258 tests pass (cargo test --bin pup -- --test-threads=1)
  • cargo clippy -- -D warnings clean
  • cargo fmt --check clean

Related Issues

Closes #562


🤖 Generated with Claude Code

pi.dev has supported skills since at least their current docs release
(https://pi.dev/docs/latest/skills). The platform was incorrectly
marked as extension-only, causing `pup skills install --name dd-apm pi`
to fail with a misleading "pi only support extensions" error.

- Set project_skills=".pi/skills", user_skills=".pi/agent/skills" in
  the pi PlatformSpec (matches the pi docs' canonical paths)
- Remove stale comments and tests asserting pi is extension-only
- Add tests verifying skills install to the correct pi paths, including
  a user-scope test covering the asymmetric .pi/agent/skills path

Fixes #562

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@platinummonkey platinummonkey requested a review from a team as a code owner June 5, 2026 15:10
@dd-octo-sts-aad58d
Copy link
Copy Markdown

🐑 PR Shepherd is maintaining this PR

I watch your PR and automatically fix CI failures, rebase your branch, handle flaky tests, and push it to the merge queue when it's ready.

More about what I do → Guide

To pause me on this PR, add the flow-skip label.

@platinummonkey platinummonkey merged commit 30f90ef into main Jun 5, 2026
7 checks passed
@platinummonkey platinummonkey deleted the fix/pi-supports-skills branch June 5, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] pi is incorrectly marked as not supporting skills

1 participant