Expand description
Bring a skill in from outside the catalog: a local folder, a git repository over HTTPS, or a
single SKILL.md at an HTTPS URL. This module only reads and parses; it never writes the
catalog. The caller shows the whole text (and a diff against what the catalog holds), and
writes only what the person approved.
Limits are deliberate: HTTPS only (a git ext:: or file:// source would run or read
something local), no symlinks followed, a size cap per file and a count cap per source.
Structs§
- Candidate
- One
SKILL.mdfound in a source. - Scan
- What a scan found, with the reasons anything was left out.
Functions§
- fetch_
git - Shallow-clone an HTTPS git repository into a scratch folder, scan it, delete the folder. The clone runs with every protocol but https switched off, never asks for a password, and is stopped when it runs past the time or size limit.
- fetch_
url - One
SKILL.mdfetched from an HTTPS URL. - parse_
skill_ md - Split a
SKILL.mdinto name, description and body. Tolerant of what skills in the wild carry: quoted or bare values, a folded or literal block for the description, extra frontmatter fields (ignored) and CRLF line ends. Without frontmatter the whole text is the body. - scan_
dir - Every
SKILL.mdunderroot(a skill folder, a pack of them, or one markdown file). A folder with its ownSKILL.mdis one skill and is not searched further. Symlinks are not followed.