pnpm plugin
pnpm-plugin-skills automatically installs agent skills during pnpm install.
How it works
The plugin hooks into pnpm's preResolution lifecycle and performs skill synchronization before dependency resolution. A typical run will:
- Read
skills.jsonfrom the workspace root - Resolve and synchronize
skills-lock.yaml - Materialize skills into
installDir - Create symbolic links for all
linkTargets - Take the fast path when the lockfile has not changed
Enable it
Then add the following to the workspace root:
Suitable team scenarios
- You want developers to run only
pnpm installwithout remembering extra skill installation commands - You want skill dependencies to be initialized together with Node dependencies in a monorepo
- You want CI to restore skill context in a unified way
Relationship with the CLI
The pnpm plugin does not replace spm. A typical recommendation is:
- Use
spm addto manage manifest changes - Use
pnpm installfor automatic day-to-day synchronization - Use
spm updateto proactively refresh remote skill versions