Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/skills / loader / loadSkillFromSource
Function: loadSkillFromSource()
ts
function loadSkillFromSource(source, options?): Promise<Skill>;Defined in: packages/skills/src/loader/index.ts:123
Load a single skill from any supported source. The loader runs the full frontmatter validator and resolves the supply-chain trust policy so the returned Skill is ready to be inserted into a SkillRegistry.
Parameters
| Parameter | Type |
|---|---|
source | SkillSource |
options | LoadSkillOptions |
Returns
Promise<Skill>