shelf Docs
On this page
shelf detach <skill>
ArgumentDescription
<skill>Skill name

Also takes the global options --json and --actor (CLI overview).

What it does

Closes the loan, removes the skill from the lockfile and records detached in the activity log. Nothing on disk changes. Local edits, if any, stay.

Use it to keep a project-specific variant of a skill, or for an overdue loan with edits you don't want in the library. To publish the edits instead, use shelf promote.

Once detached, the directory is unmanaged: borrowing the same skill again fails with CONFLICT until you move or delete it (unless its files are identical to the library's latest revision, which shelf then takes over).

Examples

terminal
shelf detach pdf-tools
Detached pdf-tools; its files now belong to the project

JSON output

json
{"schemaVersion":1,"ok":true,"data":{"skill":"react-best-practices"}}

Errors

CodeWhen
NOT_INITIALIZEDNot inside a shelf project.
NOT_BORROWEDThe project doesn't borrow the skill.