1c-form-compile

Compile 1C managed form JSON DSL definitions into Form.xml files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of Form.xml files for 1C:Enterprise managed forms, transforming a concise JSON definition into a complete, valid XML structure. This significantly speeds up form development by eliminating manual XML authoring and ensuring correct syntax and namespaces.

Core Features & Use Cases

  • JSON to XML Conversion: Converts a custom JSON DSL into a fully compliant Form.xml.
  • Automatic ID Generation: Assigns sequential IDs to form elements.
  • Namespace Declaration: Includes all necessary 1C XML namespaces.
  • Companion Element Creation: Automatically generates elements like ExtendedTooltip and ContextMenu.
  • Use Case: You have defined a new form for a custom document in a JSON format. Use this Skill to generate the Form.xml file, which you can then integrate into your 1C configuration.

Quick Start

Compile the form definition located at 'path/to/form.json' into an output file at 'path/to/output/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 file from JSON?

To generate a 1C Form.xml from JSON, compile a custom JSON DSL into a fully compliant XML structure using a PowerShell script. This outputs a complete managed form definition with correct namespaces and sequential element IDs.

Does generating 1C managed form XML require PowerShell?

Generating 1C managed form XML requires PowerShell to execute the form-compile.ps1 script. The PowerShell environment processes the JSON input and handles the automated creation of the final XML output.

What is the best way to automate 1C form development without writing XML manually?

Automating 1C form development is best achieved by defining form elements, attributes, and commands in a concise JSON DSL. This eliminates manual XML authoring and ensures valid syntax and correct namespaces.

How does the compiler handle form elements like ExtendedTooltip and ContextMenu?

The compiler automatically generates companion elements like ExtendedTooltip and ContextMenu during the XML conversion. It assigns sequential IDs to all form elements to ensure a complete configuration structure.

Can I define event handlers and commands in the JSON for 1C forms?

You can define event handlers and commands within the JSON DSL for 1C forms. The compiler supports various form elements and attributes, transforming them into a complete Form.xml definition with necessary namespaces.