Expand description
Shared skill-archive extraction.
Stateless helpers for extracting skill .zip archives into a target
directory. Both the ClawHub marketplace installer and the user-driven
.skill file import use these so that the Zip-Slip defense
([crate::skill::is_safe_relative_path]) and the SKILL.md marker
detection live in exactly one place.
Functionsยง
- extract_
skill_ zip - Extract a skill zip into
target, stripping the detected skill-root prefix so contents land flat intarget. Defends against Zip Slip via [crate::skill::is_safe_relative_path]. - find_
skill_ md - Locate the first
SKILL.md(case-insensitive) withindirrecursively. Returns its path, orNoneif no marker is present. - find_
skill_ root - Find the directory prefix inside the archive that contains a
SKILL.mdmarker. Returns""when the marker sits at the archive root.