1c-form-compile

Compile a compact JSON DSL into a complete 1C Form.xml.

413|90|Updated Aug 31, 2025
One-click install
npx skills add https://github.com/comol/cursor_rules_1c --skill 1c-form-compile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-form-compile
Source: https://github.com/comol/cursor_rules_1c/tree/main/.cursor/skills/1c-form-compile
Command: npx skills add https://github.com/comol/cursor_rules_1c --skill 1c-form-compile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Takes a compact JSON definition (20–50 lines) and generates a complete, valid Form.xml (100–500+ lines) with namespace declarations, auto-generated companion elements, and sequential IDs.

Core Features & Use Cases

  • Converts a JSON DSL into a full 1C Form.xml with all required namespaces, IDs, and companion elements.
  • Maps top-level JSON DSL structures to 1C form constructs (elements, attributes, events) and supports multi-language Title content.
  • Suitable for building 1C forms for data processors, documents, catalogs, registers, and other object types from a compact DSL.

Quick Start

Run the 1c-form-compile tool with a JSON path and an output path to generate the Form.xml.

Frequently Asked Questions about 1c-form-compile

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

FAQPage Schema
How do I generate a 1C Form.xml from JSON automatically?

To generate a 1C Form.xml from JSON automatically, compile a compact JSON DSL into a complete form definition. The compiler handles elements, attributes, events, and multi-language RU texts while allocating sequential IDs.

Can I use a JSON DSL to build 1C forms for catalogs and documents?

Yes, you can use a JSON DSL to build 1C forms for catalogs, documents, and data processors. The DSL maps top-level structures to 1C form constructs and generates valid XML with required namespaces.

What is the best way to convert a compact JSON definition into a full 1C form?

The best way to convert a compact JSON definition into a full 1C form is using a dedicated compiler that expands 20-50 lines of DSL into 100-500+ lines of Form.xml, auto-generating companion elements and validating output.

Does the 1C form compiler handle multi-language text and sequential ID allocation?

Yes, the 1C form compiler handles multi-language text by supporting RU Title content and allocates sequential IDs. It validates the generated output against the DSL rules to ensure correct form structure.

Why does my manually written 1C Form.xml have missing companion elements?

Manually writing 1C Form.xml often results in missing companion elements because of complex namespace declarations. Compiling from a JSON DSL automatically generates these required companions and validates the structure.

What are the limitations of using a JSON DSL for 1C form generation?

A limitation of using a JSON DSL for 1C form generation is that output is validated strictly against DSL rules, meaning any unsupported form constructs not defined in the DSL schema will fail compilation.