@gemstack/ai-skills@0.2.0
·
16 commits
to main
since this release
Minor Changes
-
3eb72d4: Quality + docs pass for ai-skills:
SkillRegistry.discover()no longer aborts the whole scan when a singleSKILL.mdis unreadable or malformed; the bad bundle is skipped and the rest are still indexed. Passdiscover(root, { onError })to observe what was skipped. This restores the documented "index hundreds of skills safely" contract.- Skill
nameis now validated at parse time against[a-zA-Z0-9_-]instead of being silently mangled later at compose time, so invalid names fail fast with a clear message. load()on an undiscovered name now lists the available skill names (or hints to calldiscover()first).loadSkill()distinguishes a missingSKILL.mdfrom an unreadable one.- Deduplicated the internal
fileExists/isDirectoryhelpers into a shared module. - README: clarified that the tools module is loaded compiled (
tools.js/.mjs/.cjs, nottools.ts), and added a directloadSkill()usage example.