templating

templating is a skill for Claude Code, Codex from decocms/studio. It costs 44 tokens per session (698 once invoked), scanned A, original, MIT.

A tool that fills mustache templates with JSON data to produce text files such as HTML, Markdown, configuration, SQL, or email files. Mustache is a simple placeholder syntax such as {{name}}.

In plain words
What is it for?
Use it to render files from inline data or a data file, require all placeholders to have values, include reusable partials, and choose whether inserted text is escaped.
Why use it?
It avoids rewriting the same file structure by hand when only the values change and can report missing or invalid input.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to render files from inline data or a data file, require all placeholders to have values, include reusable partials, and choose whether inserted text is escaped.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/decocms/studio/templating
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add decocms/studio --skill templating
Clone the repo
git clone --depth 1 https://github.com/decocms/studio

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for templating

README.md
[![agentmods](https://agentmods.dev/badge/skills/decocms/studio/templating/github.svg)](https://agentmods.dev/skills/decocms/studio/templating)
Your own site
<a href="https://agentmods.dev/skills/decocms/studio/templating"><img src="https://agentmods.dev/badge/skills/decocms/studio/templating/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for templating

Your own site · 80×15
<a href="https://agentmods.dev/skills/decocms/studio/templating"><img src="https://agentmods.dev/badge/skills/decocms/studio/templating.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 698 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00698
Opus 5.5 $0.00018 $0.00279
Sonnet 5.5 $0.00009 $0.00140
Haiku 4.5 $0.00004 $0.00070

Measured 13d ago against content hash d411028dbc49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

templating scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (create-from-template.mjs, vendor/mustache.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/sandbox/image/skills/templating/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

templating — fill data into text-file templates

Render any text file (HTML, markdown, config, SQL, email, …) from a mustache template plus JSON data. Use this whenever the shape of an output is known ahead of time and only the values change — it is faster and less error-prone than writing the file by hand.

Other skills build on this one (e.g. slides composes presentation decks from slide templates).

Quick reference

Task Command
Render with inline data create-from-template --template t.html --data '{"name":"Ada"}' --output out.html
Render with a data file create-from-template --template t.html --data @data.json --output out.html
Fail on missing keys add --strict
Overwrite existing output add -f
Use partials ({{>name}}) add --partials-dir ./partials

The command prints the absolute output path on success and exits non-zero with a message on any error (bad JSON, missing template, existing output without -f, missing keys under --strict).

Template syntax (mustache)

Syntax Meaning
{{name}} Insert value, HTML-escaped
{{{name}}} Insert value raw (no escaping) — for trusted HTML fragments
{{#items}}…{{/items}} Repeat block for each array item; also renders for truthy values
{{.}} The current item inside a list block
{{^items}}…{{/items}} Render block only when the value is empty/falsy/missing
{{user.name}} Dotted path lookup
{{>header}} Include partial header (resolved from --partials-dir as header or header.html)
{{!comment}} Comment, never rendered

Read the full file on GitHub · 67 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed d411028dbc49
  2. 1mo ago First seen · 67 lines · 44 tokens per session scan A f4f34de58fbe

Subscribe to this mod's changes

templating is a skill published in the GitHub repository decocms/studio (409 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 698 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.