render_skill_body
Function
This function is defined in the substitution module.Render a SKILL.md body with placeholders substituted.
Signature
Parameters
str
required
The markdown body (post-frontmatter) of a SKILL.md file.
str
default:"''"
The raw argument string after the skill name (e.g. when a user types
/deploy staging prod, raw_args="staging prod").Optional[str]
Absolute path to the skill’s directory.
Optional[str]
Current session identifier for logging/correlation.
Returns
str
Rendered body ready to feed to the LLM.
Uses
_INDEXED_ARG_RE.search_SHORT_ARG_RE.searchm.group_INDEXED_ARG_RE.sub_SHORT_ARG_RE.subout.rstrip
Used By
Source
View on GitHub
praisonaiagents/skills/substitution.py at line 37
