2.6 KiB
2.6 KiB
name, description
| name | description |
|---|---|
| library-skills | Use Library Skills to discover, install, refresh, repair, check, and manage agent skills from installed packages. |
Library Skills
Use this skill when a project might benefit from agent skills bundled by its installed packages, or when existing Library Skills-managed symlinks are stale, broken, orphaned, or need to be checked.
Run commands from the project root.
Agents bundle their own skills by including an .agents/skills directory. More details in Library Skills.
First-Time Setup
- Make sure project dependencies are installed first, for example with
uv syncfor Python projects ornpm install/bun installfor Node.js projects. - Run
uvx library-skillsornpx library-skillsto discover skills bundled by the installed packages and install selected skills interactively. - Use
uvx library-skills --allornpx library-skills --allonly when all newly discovered skills should be installed without selecting individual skills. - Use
uvx library-skills --tool-skillornpx library-skills --tool-skillto copy this Library Skills tool skill into the project so future agents know how to discover, install, update, repair, and check skills.
Commands
- Run
uvx library-skillsornpx library-skillsto discover package-provided skills, install selected new skills, and reconcile existing managed symlinks. - Run
uvx library-skills listornpx library-skills listto inspect discovered and installed skills. - Run
uvx library-skills list --jsonornpx library-skills list --jsonfor machine-readable installed status. - Run
uvx library-skills scan --jsonornpx library-skills scan --jsonfor discovery-only automation. - Run
uvx library-skills --checkornpx library-skills --checkto validate managed skill symlink state without changing files. - Run
uvx library-skills --yesornpx library-skills --yesto repair stale managed symlinks and remove orphaned managed symlinks non-interactively. - Add
--claudewhen.claude/skillsshould also be managed. - Add
--skill NAMEto install a specific discovered skill by name.
Safety
- Prefer rerunning
library-skillsover editing managed symlinks manually. - If installed skill symlinks are broken, dependencies may not be installed yet. Try the project's normal install command first, such as
uv sync,npm install, orbun install, then rerunlibrary-skills. - Do not delete or overwrite hand-authored skill directories.
- Library Skills only removes managed symlinks. It should not remove copied or hand-authored skill directories.