Skip to content
Agentmart
Submit a tool

rendering-templates

Use when a flow must compose human-readable text from data — an email body, a Slack message, a Markdown summary, a plain-text notice.

Skill by Katch-AI

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/katch-ai-rendering-templates

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when a flow must compose human-readable text from data — an email body, a Slack message, a Markdown summary, a plain-text notice. NOT for building JSON or API payloads (pass objects through step outputs or a CODE step instead).

Use cases: documents, backend, data, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/rendering-templates

What's inside

Skill name
rendering-templates
Description
Use when a flow must compose human-readable text from data — an email body, a Slack message, a Markdown summary, a plain-text notice. NOT for building JSON or API payloads (pass objects through step outputs or a CODE step instead).
License
MIT
Instructions
38 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Rendering templates

`@hegl-ai/piece-template`, action `render`, is built into Hegl's AP image. No connection, no install. Props: `template` (Liquid source), `data` (the variables object), `format` (`html`, `markdown`, `slack`, `text`). Output: `{ text }`.

## Delimiters

AP consumes every `{{ … }}` in a string prop before the piece runs, so output tags are `[[ … ]]`. Logic tags stay `{% … %}`.

```json
{
  "template": "<p>Hello [[ customer.name ]],</p>{% for o in orders %}<li>[[ o.id ]]: [[ o.total ]]</li>{% endfor %}",
  "data": "{{trigger.output.body}}",
  "format": "html"
}
```

Put everything the template needs into `data` and reference it with `[[ ]]`. Loops, filters, and escaping only work on values that arrive that way.

## Formats

Every `[[ ]]` value is escaped for the chosen format; a customer-supplied string can never inject markup. Escaping covers text and attribute values, not URL schemes.

- `html`: `& < > " '` become entities. Use for `htmlBody` fragments (see `composing-email-html`).
- `markdown`: formatting, link, heading, table, and HTML characters are backslash-escaped.
- `slack`: `& < >` become entities, Slack's rule for mrkdwn. Slack has no escape for `*`, `_`, `~`, `` ` ``, so those stay live inside values.
- `text`: no escaping.

Append `| raw` as the LAST filter to insert a value you know is already safe markup: `[[ snippet | raw ]]`. A `capture`d or `assign`ed string is escaped again when output; emit it with `| raw`.

## Failure behavior

The step fails, with line and column, on a syntax error, a variable not present in `data`, an unknown filter, or a template that runs too long. There is no partial output. Smoke-test a template once with `trigger_flow` before publishing.

## Not for JSON

Build payloads as objects: a `Property.Json` prop or a CODE step return. Render only the human-readable string, then reference the step's `text` inside the payload.

From Katch-AI/hegl-plugin, MIT.

More from Katch-AI/hegl-plugin

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 3, 2026 (26 days ago)
Last release
Oct 23, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Katch-AI

Cite this page

rendering-templates skill. Agent Mart. https://agentmart.dev/skills/katch-ai-rendering-templates (last updated 2026-10-24)