Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

Skill snapshotting.

Capture a skill’s SKILL.md plus sibling assets into .eval-magic/<skill>/snapshots/<label>/, either from the working tree or — read straight from the git object database without touching the working tree — as it existed at a git ref. The evals/ directory is always excluded; a .snapshot-meta.json records the source so teardown knows whether the snapshot is reproducible.

Functions§

snapshot
Snapshot the skill under skill_subdir into <workspace_root>/<skill_name>/snapshots/<label>/. With reference set, the content is read from that git ref; otherwise from the working tree. Errors if a snapshot with this label already exists.