Parent: #554
Problem
Root Markdown skills use the containing skills directory as baseDir. The manager's deletion operation validates containment and then recursively removes baseDir.
Deleting one root Markdown skill can therefore delete sibling skills and other contents of the shared directory.
Evidence and reproduction
Source baseline: 57f1407142e6318a5d0c935127b6461a5e87526a.
In a temporary project, create .pi/skills/one.md and .pi/skills/two.md, each with valid skill frontmatter. Discover them with create_skills_manager({ cwd }), then call delete_skill('one').
Observed: both skills were discovered, but two.md no longer existed after deleting one.
The isolated probe used the actual manager and scanner source with SDK leaf imports. It did not delete any real user skill files.
Acceptance criteria
Scope boundaries
Represent deletion ownership explicitly enough to distinguish a file from a dedicated skill directory. Do not migrate discovery locations, redesign skill profiles, or consolidate importer UIs in this issue.
Related history
Preserve that boundary; this issue repairs deletion ownership.
Parent: #554
Problem
Root Markdown skills use the containing skills directory as
baseDir. The manager's deletion operation validates containment and then recursively removesbaseDir.Deleting one root Markdown skill can therefore delete sibling skills and other contents of the shared directory.
Evidence and reproduction
Source baseline:
57f1407142e6318a5d0c935127b6461a5e87526a.In a temporary project, create
.pi/skills/one.mdand.pi/skills/two.md, each with valid skill frontmatter. Discover them withcreate_skills_manager({ cwd }), then calldelete_skill('one').Observed: both skills were discovered, but
two.mdno longer existed after deletingone.The isolated probe used the actual manager and scanner source with SDK leaf imports. It did not delete any real user skill files.
Acceptance criteria
Scope boundaries
Represent deletion ownership explicitly enough to distinguish a file from a dedicated skill directory. Do not migrate discovery locations, redesign skill profiles, or consolidate importer UIs in this issue.
Related history
Preserve that boundary; this issue repairs deletion ownership.