You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- Add `local:` skill specifiers for existing user-owned skill
directories.
- Install `local:` skills in place without copying, replacing, patching,
or pruning their source directories.
- Link agent targets directly to the local source directory and maintain
`.gitignore` unignore rules for repo-local skills.
- Update tests, docs, and the bundled `skills-package-manager-cli`
guidance.
## Related Links
web-infra-dev/rsbuild#7565
<!-- Provide links to related issues, discussions, or design notes -->
## Checklist
<!-- Check and mark with an "x" -->
- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).
Testing:
- `pnpm build`
- `pnpm test`
- `pnpm build:website`
- `pnpm check` (passes with existing warnings)
After `npx skills-package-manager add`, the newly added skills are resolved, materialized into `installDir`, and linked to each configured `linkTarget` immediately.
59
+
After `npx skills-package-manager add`, the newly added skills are resolved, installed or registered according to their protocol, and linked to each configured `linkTarget` immediately.
59
60
60
61
#### How it works
61
62
@@ -104,9 +105,9 @@ Install all skills declared in `skills.json`:
104
105
npx skills-package-manager install
105
106
```
106
107
107
-
This resolves each skill from its specifier, materializes it into `installDir` (default `.agents/skills/`), and creates symlinks for each `linkTarget`.
108
+
This resolves each skill from its specifier, installs managed skills into `installDir` (default `.agents/skills/`), registers `local:` skills in place, and creates symlinks for each `linkTarget`.
108
109
When `selfSkill` is `true`, `npx skills-package-manager install` also installs the bundled `skills-package-manager-cli` skill so users get guidance for `skills.json`, `skills-lock.yaml`, and `npx skills-package-manager` commands. This helper skill is not written to `skills-lock.yaml`.
109
-
If `patchedSkills` contains an entry for a skill, the corresponding patch file is applied after the skill is materialized.
110
+
If `patchedSkills` contains an entry for a managed skill, the corresponding patch file is applied after the skill is materialized. `local:` skills cannot be patched because their source directories are user-owned.
110
111
111
112
### `npx skills-package-manager patch`
112
113
@@ -154,7 +155,7 @@ Behavior:
154
155
155
156
- Uses `skills.json` as the source of truth
156
157
- Re-resolves git refs and npm package targets
157
-
- Skips `link:` skills, including the bundled self skill
158
+
- Skips local `link:` and `local:` skills, including the bundled self skill
158
159
- Fails immediately for unknown skill names
159
160
- Writes `skills-lock.yaml` only after fetch and link succeed
0 commit comments