Documentation / @agentick/core / substituteSkillVars
Function: substituteSkillVars()
substituteSkillVars(
template,opts?):string
Defined in: core/src/skill/substitute.ts:61
Apply skill substitutions to a template string.
Order of substitution matters — ${VAR} first (unambiguous), then $ARGUMENTS[N] and $ARGUMENTS (specific tokens), then $N, then $name (broadest). This way $ARGUMENTS isn't matched by the $name pattern, and $0 doesn't get matched as a name.
Parameters
template
string
opts?
SubstituteOptions = {}
Returns
string