Skip to main content

Module skill

Module skill 

Source
Expand description

Skill data types: what a loaded SKILL.md is (SkillEntry), where it came from, and the $ARGUMENTS-style substitution applied to its body.

Structs§

InvocationVars
What ${AGIX_SKILL_DIR} and ${AGIX_SESSION_ID} stand for in one invocation.
SkillEntry
单个 Skill:从 <dir>/<skill_name>/SKILL.md 的 YAML frontmatter 抽出。

Enums§

SkillSource
Skill 来源 – user / project;同名时后入者覆盖先入者(见下方扫描顺序)
SkillTier
The user-level directory a skill came from: the state root’s own skills/ (shared by every scene) or the scene’s.

Functions§

body_runs_commands
Whether a skill body holds a command its expansion would run: an inline !`cmd` or a ```! block.
expand_skill_vars_named
Expands the variables in a skill body: for each name in arg_names (the skill’s arguments: frontmatter list, in order), $name in the body is replaced with the positional argument at that index (whitespace-separated, same splitting as $1..$9). A name with no corresponding argument expands to an empty string, unlike an indexed placeholder with no argument, which is left unchanged — that asymmetry is intentional, not a bug.