writing-handlebars

writing-handlebars is a skill for Claude Code from celigo/ai. It costs 50 tokens per session (5,328 once invoked), scanned A, original, MIT.

A guide to writing Handlebars expressions, a template language used in Celigo to insert, transform, format, or conditionally select values at runtime.

In plain words
What is it for?
Use it to create dynamic mappings, HTTP request bodies and URLs, SQL queries, filters, API values, loops, conditions, text transformations, and date values.
Why use it?
It helps prevent incorrect values caused by using the wrong data context, field syntax, escaping, helper, or date format.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the celigo plugin — 24 skills, 5 commands, 1 MCP server shipped together

Good fit Use it to create dynamic mappings, HTTP request bodies and URLs, SQL queries, filters, API values, loops, conditions, text transformations, and date values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/celigo/ai/writing-handlebars
View source ↗ celigo/ai
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 celigo/ai --skill writing-handlebars
Clone the repo
git clone --depth 1 https://github.com/celigo/ai

Made for: Claude Code.

Or install celigo, the plugin that ships this one along with the rest of its 24 skills, 5 commands, 1 MCP server.

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 writing-handlebars

README.md
[![agentmods](https://agentmods.dev/badge/skills/celigo/ai/writing-handlebars.svg)](https://agentmods.dev/skills/celigo/ai/writing-handlebars)
Your own site
<a href="https://agentmods.dev/skills/celigo/ai/writing-handlebars"><img src="https://agentmods.dev/badge/skills/celigo/ai/writing-handlebars.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,328 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
  • Socket pass 17 Jun 2026
  • Snyk fail 17 Jun 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.00050 $0.05328
Opus 5 $0.00025 $0.02664
Sonnet 5 $0.00010 $0.01066
Haiku 4.5 $0.00005 $0.00533

Measured 7d ago against content hash 6f84de244922, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

writing-handlebars 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 7d ago.

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.

skills/writing-handlebars/SKILL.md · 373 lines

How it starts

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

Writing Handlebars Expressions

Handlebars is Celigo's template language for embedding dynamic values into resource configurations. Any string field that the platform evaluates at runtime can contain Handlebars expressions.

Concerns when writing Handlebars:

  • Context -- where the expression runs determines what data is available and how output is treated
  • Braces -- double {{ }} vs triple {{{ }}} controls output escaping
  • Field access -- record. prefix in all contexts (AFE 2.0), @root for job/settings/connection, bracket notation for special characters
  • Helpers -- 79 custom helpers for math, string manipulation, dates, encoding, regex, and more
  • Block helpers -- #each, #if, #compare, #with for iteration and conditional logic
  • Date/time -- moment.js format tokens with timezone support

Used across exports, imports, mappings, output filters, and APIs.

Where Handlebars Are Used

Mapping extracts

In import mappings[].extract fields, Handlebars concatenates, transforms, or conditionally selects values. The context is the current record.

HTTP request templates

Export and import http blocks use Handlebars in relativeURI, body, headers, and postBody. Triple braces are essential to avoid HTML encoding of query parameters and JSON.

RDBMS SQL queries

SQL queries in rdbms.query use Handlebars with the mandatory record. prefix. Triple braces prevent encoding of SQL-significant characters like commas and quotes. For full SQL patterns (MERGE, upsert, bulk operations, dialect differences), see writing-sql.

Output filters

Expression-based filters on exports use Handlebars to evaluate whether a record passes through or gets skipped.

File paths and names

Dynamic file names in FTP/S3 exports and imports use Handlebars for timestamps and record-derived values.

Delta tokens

Platform-injected variables like {{{lastExportDateTime}}} provide the last successful export timestamp for incremental syncs. These are not record fields -- the platform injects them at runtime into the export's HTTP/query context only.

Read the full file on GitHub · 373 lines

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. 7d ago First seen · 373 lines · 50 tokens per session scan A 6f84de244922

Subscribe to this mod's changes

writing-handlebars is a skill published in the GitHub repository celigo/ai (3 stars, last pushed 3d ago), licensed MIT. It adds 50 tokens to every session and 5,328 once invoked, about $0.0003 per session on Opus 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-31.