skd-compile

Compile JSON DSL definitions into 1C Data Composition Schema Template.xml files.

151|20|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/Arman-Kudaibergenov/1c-ai-development-kit --skill skd-compile-arman-kudaibergenov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skd-compile
Source: https://github.com/Arman-Kudaibergenov/1c-ai-development-kit/tree/main/.claude/skills/skd-compile
Command: npx skills add https://github.com/Arman-Kudaibergenov/1c-ai-development-kit --skill skd-compile-arman-kudaibergenov

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill removes the manual, error-prone work of building a 1C Data Composition Schema (СКД / DCS) XML by hand when you already have a JSON definition of the report structure.

Core Features & Use Cases

  • Generate DCS Template.xml from JSON DSL: Converts a JSON definition into the required Template.xml (DataCompositionSchema).
  • Supports structured report building: Handles data sets (queries/objects/unions), calculated fields, totals, parameters, filters, and grouping structure.
  • Field/type shorthand for speed: Lets you describe fields, roles, restrictions, and data types using concise shorthands (including reference types and StandardPeriod/@autoDates patterns).
  • Production-oriented templates & variants: Emits templates, group templates, and settings variants, including conditional appearance rules.

Example use case: You have a report spec stored as JSON in a repo (datasets, parameters, totals, and filters). Use this Skill to regenerate a fresh Template.xml every time the spec changes—without editing XML manually.

Quick Start

Generate a СКД Template.xml from a JSON definition by running the skd-compile skill with the JSON passed as -Value and saving the result to Template.xml.

Frequently Asked Questions about skd-compile

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

FAQPage Schema
How do I generate a 1C Data Composition Schema XML from JSON?

To generate a 1C Data Composition Schema, you can use a JSON DSL definition compiled into a valid Template.xml file. This approach automates report creation by mapping datasets, fields, parameters, and totals directly from the JSON structure into the required XML format.

What is the best way to automate 1C DCS report building without editing XML manually?

Automating 1C DCS report building is best achieved by defining your report structure, including calculated fields and filters, in a JSON DSL. Compiling this JSON definition into a Template.xml eliminates manual XML editing and regenerates fresh schemas automatically whenever the specification changes.

Can I define 1C SKD datasets and parameters using a JSON shorthand?

Yes, you can define 1C SKD datasets and parameters using a concise JSON shorthand. This shorthand allows you to describe fields, roles, restrictions, and data types, including reference types and StandardPeriod autoDates patterns, which are then resolved during the XML compilation process.

Does the 1C DCS schema compiler support conditional appearance and settings variants?

Yes, the 1C DCS schema compiler supports conditional appearance rules and settings variants. It emits production-oriented templates, group templates, and settings variants from your JSON definition, ensuring the compiled XML includes all necessary structural and conditional formatting rules.

Why does my 1C DCS schema generation fail when the dataSets array is empty?

1C DCS schema generation fails with an empty dataSets array because the compiler enforces a non-empty dataSets requirement. You must supply a valid JSON definition file or value containing at least one dataset to successfully generate the Data Composition Schema Template.xml output.

What input format is required to compile a 1C Data Composition Schema template?

Compiling a 1C Data Composition Schema template requires supplying exactly one JSON DSL input source, either as a DefinitionFile or a Value. This JSON definition must contain your report's datasets, fields, totals, parameters, filters, and grouping structure to produce the valid XML output.