mxl-compile

mxl-compile is a skill for Claude Code from timoshinoleg-eng/1c-ai-workbench. It costs 34 tokens per session (707 once invoked), scanned A, a copy of 1c-mxl-compile, MIT.

A compiler that turns a compact JSON layout description into Template.xml, the XML file used for a 1C spreadsheet document.

In plain words
What is it for?
Use it to generate 1C print-form layouts from JSON, including layouts measured from screenshots or scans.
Why use it?
It handles XML details such as styles, colors, merged cells, indexes, and namespaces, reducing errors when creating printable forms.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the 1c-skills plugin — 71 skills, 2 hooks shipped together

Good fit Use it to generate 1C print-form layouts from JSON, including layouts measured from screenshots or scans.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timoshinoleg-eng/1c-ai-workbench/mxl-compile
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 timoshinoleg-eng/1c-ai-workbench --skill mxl-compile
Clone the repo
git clone --depth 1 https://github.com/timoshinoleg-eng/1c-ai-workbench

Made for: Claude Code.

Or install 1c-skills, the plugin that ships this one along with the rest of its 71 skills, 2 hooks.

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 mxl-compile

README.md
[![agentmods](https://agentmods.dev/badge/skills/timoshinoleg-eng/1c-ai-workbench/mxl-compile/github.svg)](https://agentmods.dev/skills/timoshinoleg-eng/1c-ai-workbench/mxl-compile)
Your own site
<a href="https://agentmods.dev/skills/timoshinoleg-eng/1c-ai-workbench/mxl-compile"><img src="https://agentmods.dev/badge/skills/timoshinoleg-eng/1c-ai-workbench/mxl-compile/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 mxl-compile

Your own site · 80×15
<a href="https://agentmods.dev/skills/timoshinoleg-eng/1c-ai-workbench/mxl-compile"><img src="https://agentmods.dev/badge/skills/timoshinoleg-eng/1c-ai-workbench/mxl-compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 707 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.
Origin 98% 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.00034 $0.00707
Opus 5 $0.00017 $0.00353
Sonnet 5 $0.00007 $0.00141
Haiku 4.5 $0.00003 $0.00071

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

Security

Grade A, and why

mxl-compile 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/mxl-compile.ps1, scripts/mxl-compile.py), 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.

Origin

This is a copy

98% identical to 1c-mxl-compile — 16 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.

tools/cc-1c-skills/.claude/skills/mxl-compile/SKILL.md · 66 lines

How it starts

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

/mxl-compile — Компилятор макета из DSL

Принимает компактное JSON-определение макета и генерирует корректный Template.xml для табличного документа 1С. Claude описывает что нужно (области, параметры, стили), скрипт обеспечивает корректность XML (палитры, индексы, объединения, namespace).

Использование

/mxl-compile <JsonPath> <OutputPath>

Параметры

Параметр Обязательный Описание
JsonPath да Путь к JSON-определению макета
OutputPath да Путь для генерации Template.xml

Команда

powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/mxl-compile.ps1" -JsonPath "<путь>.json" -OutputPath "<путь>/Template.xml"

Рабочий процесс

  1. Claude пишет JSON-определение (Write tool) → файл .json
  2. Claude вызывает /mxl-compile для генерации Template.xml
  3. Claude вызывает /mxl-validate для проверки корректности
  4. Claude вызывает /mxl-info для верификации структуры

Если макет создаётся по изображению (скриншот, скан печатной формы) — сначала вызвать /img-grid для наложения сетки, по ней определить границы колонок и пропорции, затем использовать "Nx" ширины + "page" для автоматического расчёта размеров.

JSON-схема DSL

Полная спецификация формата: docs/mxl-dsl-spec.md (прочитать через Read tool перед написанием JSON).

Краткая структура:

{ columns, page, defaultWidth, columnWidths,
  fonts: { name: { face, size, bold, italic, underline, strikeout } },
  styles: { name: { font, align, valign, border, borderWidth, wrap, format } },
  areas: [{ name, rows: [{ height, rowStyle, cells: [
    { col, span, rowspan, style, param, detail, text, template }
  ]}]}]
}

Ключевые правила:

  • page — формат страницы ("A4-landscape", "A4-portrait" или число). Автоматически вычисляет defaultWidth из суммы пропорций "Nx"
  • col — 1-based позиция колонки
  • rowStyle — автозаполнение пустот стилем (рамки по всей ширине)
  • Тип заполнения определяется автоматически: param → Parameter, text → Text, template → Template
  • rowspan — объединение строк вниз (rowStyle учитывает занятые ячейки)

Read the full file on GitHub · 66 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. 10d ago First seen · 66 lines · 34 tokens per session scan A 52355469235a

Subscribe to this mod's changes

mxl-compile is a skill published in the GitHub repository timoshinoleg-eng/1c-ai-workbench (0 stars, last pushed 23d ago), licensed MIT. It adds 34 tokens to every session and 707 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to 1c-mxl-compile, differing in 16 lines, and is treated as a copy.