Steeve

Carbone Skill for AI - Teach your AI to build document templates

by
Carbone is a universal document-generation engine: feed it a template file and JSON file, and it produces pixel-perfect documents at scale. The Carbone Skill teaches AI assistants like Claude or ChatGPT the entire Carbone templating language. Describe what you want in plain language and your AI writes correct Carbone syntax, builds templates in DOCX, XLSX, PPTX, HTML or PDF, and validates tags before you render automatically at scale.

Add a comment

Replies

Best
Mateusz Gierlach

Teach your AI to build document templates: A "Skill" that teaches AI your templating syntax is a clever distribution move. How do you validate that the AI-generated Carbone syntax is correct before render — is there a semantic check on the template structure? The validate-before-execute pattern is something I care about a lot.

Steeve

Hello @mateusz_gierlach ! The simplest way to put it: the Skill helps write correct templates, and Carbone's engine renders them. Two separate steps.

The answer in detail:

  1. The Skill is a knowledge layer for the AI. Before anything gets rendered, it checks the template against Carbone's real, documented rules, things like loop blocks not interleaving, show/hide conditions being paired, and formatters actually existing rather than being invented. If something doesn't match the language, it gets flagged instead of passed through. That's your validate-before-execute step.

  2. Then Carbone's engine takes the finished template plus your JSON and generates the document. That's where the final grammar enforcement happens at render.


I'm available to make a live demo :) in the meantime, have a good day!

Luigi Fernandez Ortega

Congrats to the Carbone team! Teaching the AI to write the templates instead of just filling them is a smart inversion. Does the skill validate its generated tags against the engine before returning the template, or does it rely on the model getting the syntax right first time?

Steeve

Thanks @luigi_receiptorai!

To answer your question: it doesn't run the tags through the engine before returning them. It grounds the model in Carbone's full documented syntax plus a validation checklist, so it checks its own output against the real rules as it writes (loops not interleaving, conditions paired, formatters that actually exist).


So it's not blind trust, but not a live engine check either. Final grammar enforcement still happens at rendering a document, the Skill catches the structural mistakes before you get there.

I'm available if you have questions or even for a live demo :D