Commands
npx skills-package-manager add
Add one or more skills, write pinned specifiers to skills.json, then install and link them immediately.
GitHub sources added through shorthand, full GitHub URLs, or GitHub tree URLs are persisted in skills.json as github:owner/repo#<commit>&path:<path>.
npx skills-package-manager init
Initialize a new skills.json manifest.
npx skills-package-manager init: interactive initialization forinstallDirand additionallinkTargetsnpx skills-package-manager init --yes: non-interactive initialization with defaults- Fails if
skills.jsonalready exists
npx skills-package-manager install
Install all skills defined in skills.json, materialize managed skills into installDir, link them into every linkTarget, and inject the bundled skills-package-manager-cli self skill when selfSkill is enabled.
install does not create a separate lock file. Remote reproducibility comes from pinned specifiers in skills.json.
If patchedSkills contains an entry for a managed skill, the referenced patch file is applied after the base skill content is materialized. local: skills cannot be patched because their source directories are user-owned.
npx skills-package-manager update
Refresh selected remote skills and write the new pins back to skills.json after the updated install succeeds.
Behavior:
- Git and
github:skills are updated to the latestmaincommit. npm:skills are updated to the registrylatestversion.link:,local:, andfile:skills are skipped.- Unknown skill names fail before any install or manifest write.
npx skills-package-manager patch
Prepare a skill for patching.
Workflow:
- Resolve the current manifest content for the target skill.
- Extract an editable copy.
- Reapply the committed patch by default so you continue from the current patched state.
- Write patch edit metadata for
patch-commit.
npx skills-package-manager patch-commit
Generate a patch file from an edited patch directory and commit it into the project.
Workflow:
- Read the patch edit metadata from the directory created by
patch. - Diff the edited copy against the original resolved skill content.
- Write a patch file such as
patches/hello-skill.patch. - Record the patch under
patchedSkillsinskills.json. - Reinstall and relink the patched skill immediately.