Skip to main content

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.search
  • m.group
  • _INDEXED_ARG_RE.sub
  • _SHORT_ARG_RE.sub
  • out.rstrip

Used By

Source

View on GitHub

praisonaiagents/skills/substitution.py at line 37

Skills Concept

Skills Feature