Skip to main content

Module assets

Module assets 

Source
Expand description

The asset corpus: agent skills, rules, subagents and instruction files declared under [[assets]] in spec.toml. Assets have no ids and are only read; checks report on them, and only spec sync assets writes them, into roots that declare copy_of.

Modules§

sync
spec sync assets: copies the source of each [[assets]] root that declares copy_of over that root. The only place specfold writes an asset. Writes stay inside the declared copy root, never touch the source, never follow a symbolic link, and delete only with prune.

Structs§

Asset

Functions§

load
Every declared asset, sorted by path; a file claimed by two roots is read once, by the first.
template
A new asset from a template: where it goes and what it holds. The first declared directory of the kind is used, else the usual location; the flag says whether a declared root covers it.