pub fn render_system(
template: &str,
workspace: &Path,
skills: &[Skill],
tools: &[ToolSpec],
) -> Result<String, Error>Expand description
Renders a SYSTEM.md template: {{ workspace }} becomes the
workspace path, skills holds the discovered skills as name,
description, and path fields, and tools holds the advertised
tool specs as name, description, and parameters (the JSON
schema, renderable with tojson) — all there for
{% for %}/{% if %}. Undefined variables render empty; syntax and
filter errors return with template positions.