form-compile

Compile 1C managed forms from JSON DSL into Form.xml.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the generation of a complete 1C Form.xml (managed form) from a compact JSON-defined description, eliminating manual XML coding and reducing errors and iteration time.

Core Features & Use Cases

  • Convert JSON DSL definitions (title, properties, events, elements) into a valid 1C Form.xml with namespace declarations and generated IDs.
  • Supports typical form patterns and companion elements; guides you to use form-patterns for complex scenarios.

Quick Start

Provide a JSON form definition and an OutputPath, and the tool will generate Form.xml at the specified path.

Frequently Asked Questions about form-compile

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

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

To generate 1C Form.xml from JSON automatically, provide a compact JSON definition containing form title, properties, events, attributes, and elements along with an OutputPath. The tool compiles the JSON DSL into a complete managed form with namespace declarations and generated IDs.

What is a JSON DSL and how does it work for 1C managed forms?

A JSON DSL for 1C managed forms is a compact JSON definition that describes form structure including title, properties, events, attributes, and elements. The compiler reads this definition to produce a complete Form.xml with proper namespace declarations and generated element IDs.

Can I use this JSON to 1C Form.xml compiler for complex forms?

This JSON to 1C Form.xml compiler targets small to medium forms with typical form patterns and companion elements. For complex form scenarios, the tool guides you to use form-patterns to manage the structure before generating the final XML.

What's the best way to automate 1C Form.xml creation?

The best way to automate 1C Form.xml creation is using a JSON DSL compiler that reads definitions with title, properties, events, attributes, and elements. This eliminates manual XML coding, reduces errors, and shortens iteration time for managed forms.

Why does manual 1C Form.xml coding cause errors?

Manual 1C Form.xml coding causes errors because it requires precise namespace declarations, unique IDs, and companion elements. Automating this with a JSON DSL compiler ensures complete, valid Form.xml generation directly from compact definitions.

Do I need to specify an OutputPath to generate 1C Form.xml?

Yes, you need to specify an OutputPath to generate 1C Form.xml. Along with your JSON form definition, providing the output path tells the compiler where to save the complete managed form file with namespace declarations and generated IDs.