pi-package-authoring
Installation
SKILL.md
Pi package authoring
Grounding
pi-mono/packages/coding-agent/docs/packages.md— manifest, install commands, layout.pi-mono/packages/coding-agent/README.md— Pi Packages section (pi install,package.jsonpikey, keywords).pi-mono/packages/coding-agent/src/core/package-manager.ts—resourcePrecedenceRank(package-origin resources sort after user/project).
Invariants
- Packages integrate through the same resource resolution pipeline as local dirs; package-origin metadata ranks after user/project auto paths — see
resourcePrecedenceRankinpi-mono/packages/coding-agent/src/core/package-manager.ts. - Third-party packages execute code; skills can instruct arbitrary actions — security notes are first-party in
docs/packages.mdand coding-agent README.
Workflows
- Define a package: Mirror the
package.jsonexample fromdocs/packages.md/ README; verify conventional dirs (skills/,extensions/, etc.) against those docs. - Predict overrides: Combine package-manager precedence with
loadSkills“first name wins” (pi-mono/packages/coding-agent/src/core/skills.ts).