carbone

carbone is a skill for Claude Code, Codex from carboneio/carbone-mcp. It costs 253 tokens per session (11,385 once invoked), scanned B, a copy of carbone, Apache-2.0.

A guide to Carbone, a template system that merges JSON data into files such as Word, Excel, PowerPoint, HTML, Markdown, and PDF. It explains Carbone's own placeholders, loops, conditions, and formatting rules.

In plain words
What is it for?
Use it to design, validate, fix, or explain templates that generate documents, spreadsheets, presentations, web pages, or text files.
Why use it?
It prevents confusion with other template languages and helps keep templates aligned with the data that is supplied.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to design, validate, fix, or explain templates that generate documents, spreadsheets, presentations, web pages, or text files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/carboneio/carbone-mcp/carbone
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 carboneio/carbone-mcp --skill carbone
Clone the repo
git clone --depth 1 https://github.com/carboneio/carbone-mcp

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 carbone

README.md
[![agentmods](https://agentmods.dev/badge/skills/carboneio/carbone-mcp/carbone/github.svg)](https://agentmods.dev/skills/carboneio/carbone-mcp/carbone)
Your own site
<a href="https://agentmods.dev/skills/carboneio/carbone-mcp/carbone"><img src="https://agentmods.dev/badge/skills/carboneio/carbone-mcp/carbone/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 carbone

Your own site · 80×15
<a href="https://agentmods.dev/skills/carboneio/carbone-mcp/carbone"><img src="https://agentmods.dev/badge/skills/carboneio/carbone-mcp/carbone.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 253 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,385 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod 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.00253 $0.11385
Opus 5.5 $0.00101 $0.04554
Sonnet 5.5 $0.00051 $0.02277
Haiku 4.5 $0.00025 $0.01138

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

Security

Grade B, and why

carbone scanned grade B with 1 finding 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 16d 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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

A PDF template supports **no** pictures, colors, `:html`, charts, barcodes, hyperlinks, `:transform`, file operations or signatures — never suggest them here. Full guide → `references/pdf-templates.md`.
Origin

This is a copy

88% identical to carbone — 140 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/carbone/SKILL.md · 498 lines

How it starts

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

Carbone Universal Templating Language — Skill

Carbone is a declarative templating engine. You provide a template (DOCX, XLSX, PPTX, ODT, HTML, …) with Carbone tags (placeholders in {}), plus a JSON dataset. Carbone merges both to produce the filled document.

NEVER invent Carbone syntax. Carbone is its own language — it is NOT JSONPath, NOT Mustache, NOT Handlebars, NOT Jinja2, NOT any other templating language. Its tag syntax, formatters, loop markers, and filter expressions are unique. Any pattern not explicitly documented in this skill or its reference files does not exist in Carbone. If a user's request cannot be answered from what is documented here, say so — do not guess or adapt syntax from another language.

Design principles — they change how you answer:

  • Adapt the template to the data, never the data to the template. Carbone injects into an unmodified API response. Reach for array filters, sorting, lookups and :set before suggesting the user reshape their JSON.
  • Format-agnostic. Carbone injects into the file's own markup — the XML inside DOCX/ODT/IDML and any other XML-based format, and text files such as TXT, CSV, Markdown or JSON (§9).
  • Backward compatible. Tag syntax survives upgrades — a template written for v2 still renders on v12. Never warn a user that their existing tags will break in a newer version.

1. Tag Types and Prefixes

Tag Purpose
{d.path} Data from the main JSON object (most common)
{c.path} Data from the "complement" object (metadata / computed values)
{c.now} Built-in: current date/time at render time (UTC). Chain with :formatD to display it.
{#alias = d.path} Declare an alias shortcut (removed from output)
{$alias} Use a declared alias
{t(key)} Static i18n translation tag — no quotes needed, whitespace preserved
{o.option=value} Carbone in-template option (removed from output)

Special {o.} options

Common: {o.timezone=Europe/Paris} {o.lang=en-US} {o.converter=L} {o.useHighPrecisionArithmetic=true} {o.exportFormattedValuesAsText=true} (XLSX only) {o.hardRefresh=true} (force converter even when input/output format match — useful for XLSX formula refresh) {o.preReleaseFeatureIn=VERSION} (opt-in pre-release features — e.g. 5018000: XLSX formulas, merged cells, charts and pivot tables follow loop rows). Full in-template option list → references/in-template-options.md.

Read the full file on GitHub · 498 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. 16d ago Changed · +7 lines · +13 tokens per session b0cddc79ca81
  2. 18d ago First seen · 491 lines · 240 tokens per session scan B 77d128bb6798

Subscribe to this mod's changes

carbone is a skill published in the GitHub repository carboneio/carbone-mcp (6 stars, last pushed 11d ago), licensed Apache-2.0. It adds 253 tokens to every session and 11,385 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it B with 1 finding (subtle steering). It is 88% identical to carbone, differing in 140 lines, and is treated as a copy.

Related

carbone compared with skills from other repositories

carbone next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
carbonecarboneio/carbone-mcpSkill611d agoApache-2.0B253Claude Code, Codex
kordocchrisryugj/kordocSkill3.2kyesterdayMITA253Claude Code, Codex
all2mdthomas-villani/all2mdSkill345d agoMITA181Claude Code, Codex
local-doc-to-markdownofershap/mcp-server-anydocSkill02d agoMITA129Claude Code
doc-converterchainlesschain/chainlesschainSkill1115d agononeA19Claude Code
genofficegenspark-ai/genofficeSkill13k3d agoApache-2.0A202Claude Code, Codex
document-generationautomateyournetwork/netclawSkill739todayApache-2.0A118Claude Code