Skip to main content

Module skill_file

Module skill_file 

Source
Expand description

A computer-use skill as one file (docs/specs/SPEC_PACKS_2026_11_05.md §5 and §10.5): a zip with the extension .skill that holds the skill’s folder, named <publisher>-<id>, and nothing else. Exporting writes the folder the catalog holds; importing unpacks it into a scratch folder and reads it like any other folder (computer_use_skill::read_folder), so every check a folder gets, a .skill gets.

The reader trusts nothing in the zip: names are checked before anything is written, and the sizes are counted as they are read, not taken from the headers. Scripts always arrive unapproved, so a .skill installs, never approves.

Structs§

Exported
An exported skill, ready to write.

Constants§

EXTENSION
The extension of the file.

Functions§

export
The catalog skill skill_id as a .skill file.
extract
Unpack the .skill at zip_path into dest, which is left holding one folder. Every entry is checked and read before anything is written, so a file that fails a check leaves dest as it was.