dcs-compile

Generates 1C:Enterprise Data Composition Schema XML from a compact JSON definition.

1|2|Updated Jul 19, 2026
One-click install
npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill dcs-compile-ingvarconsulting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dcs-compile
Source: https://github.com/IngvarConsulting/unica-marketplace/tree/main/plugins/unica/skills/dcs-compile
Command: npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill dcs-compile-ingvarconsulting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing a 1C:Enterprise Data Composition Schema (СКД) Template.xml by hand is verbose and error-prone. This Skill compiles a compact JSON DSL into a complete DataCompositionSchema XML, covering data sets, fields, parameters, filters, settings variants, and output templates. ## Core Features & Use Cases - JSON-to-XML compilation: Converts a JSON definition into a valid Template.xml via the unica.dcs.compile MCP tool, accepting either a file path or an inline JSON string. - Rich DSL shorthand: Supports shorthand syntax for fields, calculated fields, totals, parameters (including @autoDates), filters, grouping structures, and settings variants, plus object forms for advanced cases like conditional appearance and template drilldown. - Output templates: Defines tabular output layouts with rows, cell merging, built-in styles, and custom styles from dcs-styles.json files. - Use Case: A 1C developer needs a sales report schema with period parameters, grouping by organization, and totals. They write a short JSON definition and compile it directly into a ready-to-use Template.xml, then verify it with unica.dcs.validate and unica.dcs.info. ## Quick Start Ask the assistant to compile your JSON data composition schema definition into a Template.xml file at the desired output path using the dcs-compile skill.

Frequently Asked Questions about dcs-compile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a 1C Data Composition Schema from JSON?▼

Write a JSON definition describing dataSets, fields, parameters, and settingsVariants, then call the unica.dcs.compile MCP tool with DefinitionFile or Value plus an OutputPath. The tool generates a complete Template.xml DataCompositionSchema.

How do I add period parameters to a 1C СКД report?▼

Define a StandardPeriod parameter with the @autoDates flag, for example "Период: StandardPeriod = LastMonth @autoDates". This automatically creates НачалоПериода and КонецПериода dates you can reference as &НачалоПериода and &КонецПериода in your query.

Can I use an external SQL query file in the JSON definition?▼

Yes, set the query property to an @file reference such as "@queries/sales.sql". The path resolves relative to the JSON definition file first, then the current working directory.

How do I validate the generated Template.xml schema?▼

Call unica.dcs.validate with the TemplatePath to check XML structure, and unica.dcs.info to get a schema summary and inspect settings variants. Both tools take the workspace cwd and the output template path.

What field types does the DCS JSON DSL support?▼

Supported types include string(N), decimal(D,F), boolean, date, dateTime, CatalogRef.X, DocumentRef.X, EnumRef.X, and StandardPeriod. Composite types use an array, and roles like @dimension or @balance plus restrictions like #noFilter are added via shorthand flags.

When does compilation run in dry-run mode?▼

Compilation is a mutating operation, so dryRun stays enabled by default. Pass dryRun: false only when the user explicitly requested the change, and the vendor support guard may block edits to locked or read-only supported objects.