skd-compile

Compile 1C Data Composition Schema Template.xml from a compact JSON DSL.

33|8|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/Dach-Coin/claude_rules_1c --skill skd-compile-dach-coin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skd-compile
Source: https://github.com/Dach-Coin/claude_rules_1c/tree/main/.claude/skills/skd-compile
Command: npx skills add https://github.com/Dach-Coin/claude_rules_1c --skill skd-compile-dach-coin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill removes the manual, error-prone work of hand-authoring 1C Data Composition Schema (СКД) XML by generating a valid Template.xml from a compact JSON DSL.

Core Features & Use Cases

  • JSON → Template.xml compilation: Converts a declarative JSON definition (datasets, fields, calculated fields, totals, parameters, templates, group templates, and variants) into the corresponding SКД XML.
  • Rich shorthand support: Accepts compact string shorthands for fields, calculated fields, totals, filters, data parameters, and nested structures, plus an object-form when you need titles and extra properties.
  • Query file inclusion (@file): Loads dataset queries from external .sql files using the @path directive and resolves relative paths.
  • Type and restriction normalization: Normalizes Russian/English type synonyms (e.g., decimal/string/boolean, reference types like CatalogRef.*, StandardPeriod) and maps restriction flags to the correct XML structure.
  • Variant-aware output: Supports settings variants, templates (DSL rows or raw XML fallback), conditional appearance, drilldowns, and group template bindings.

Quick Start

Ask your AI to compile a SКД Template.xml by calling skd-compile with a JSON definition string and an output path for 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 Template.xml from JSON?

You can generate a 1C Data Composition Schema Template.xml from JSON by providing a declarative JSON definition to a compiler that converts datasets, parameters, and totals into the corresponding valid SКД XML structure.

What is the best way to author 1C SКД reports without manually writing XML?

The best way to author 1C SКД reports without manually writing XML is to use a JSON DSL compiler that converts compact string shorthands for fields and filters into a normalized, 1C-compatible Template.xml automatically.

Can I include external SQL query files when building a 1C SКД template?

Yes, you can include external SQL query files when building a 1C SКД template by using the @path directive in your JSON definition, which loads and resolves dataset queries relative to the JSON source file.

Does the 1C SКД JSON compiler support settings variants and conditional appearance?

Yes, the 1C SКД JSON compiler supports settings variants and conditional appearance, along with templates, drilldowns, calculated fields, totals, and group template bindings within the generated Template.xml output.

How does the JSON to SКД compiler handle Russian and English type synonyms?

The JSON to SКД compiler normalizes Russian and English type synonyms like decimal, string, boolean, and reference types such as CatalogRef.*, mapping restriction flags to the correct XML structure for 1C compatibility.

What are the limitations of using JSON DSL for 1C Data Composition Schema generation?

A limitation of using JSON DSL for 1C Data Composition Schema generation is that input must be provided strictly as a JSON file path or inline JSON value, and all @file query inclusions must resolve relative to the JSON source directory.