add-mcp-tools
Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth…
Render any text file (HTML, markdown, config, SQL, email) from a mustache template plus JSON data. Use when an output's shape is fixed ahead of time and only the values change.
$ npx -y skills add decocms/studio --skill templating --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/templatingContext preview
The summary Claude sees to decide when to auto-load this skill.
Render any text file (HTML, markdown, config, SQL, email) from a mustache template plus JSON data. Use when an output's shape is fixed ahead of time and only the values change.
name: templating description: Render any text file (HTML, markdown, config, SQL, email) from a mustache template plus JSON data. Use when an output's shape is fixed ahead of time and only the values change.
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).
| 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`).
| 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 |
Example:
<ul>
{{#items}}<li><b>{{label}}</b>: {{value}}</li>{{/items}}
{{^items}}<li>No items</li>{{/items}}
</ul>create-from-template --template list.template.html \
--data '{"items":[{"label":"CPU","value":"42%"}]}' \
--output list.htmlcouple of fields — easier to iterate on than a long inline string.
drop it when optional keys are intentional.
folder under `/app/org/home/templates/` is a good durable place for organization-wide templates).
Open-source control plane for your AI agents. Connect tools, hire agents, track every token and dollar
Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth…
Prepare code for review by running quality checks, creating conventional commits, and opening pull requests. Use when the user…
Run Studio locally with chats and task runs executing in real Freestyle sandboxes, reachable through an ngrok tunnel. Use when…
Operate the user's deco Studio (decocms) organization from the terminal with their own login. Use when the user asks to read or…
Create and maintain an org's brand as a folder the whole platform reads: colors, type, voice, logo and a deck theme. Use this…
Read and extract text, tables, and structure from .docx Word documents. Use when the user uploads or references a Word file to…