1c-form-validate

Validates structural correctness of exported 1C managed form Form.xml files.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-form-validate-pavelvdo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-form-validate
Source: https://github.com/pavelvdo/universal-xml-exchange2/tree/main/.cursor/skills/1c-forms/validate
Command: npx skills add https://github.com/pavelvdo/universal-xml-exchange2 --skill 1c-form-validate-pavelvdo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Exported 1C managed form files (Form.xml) can contain structural defects such as duplicate element IDs, missing companion elements, broken DataPath references, or commands without handlers. Manually inspecting large XML dumps for these errors is slow and error-prone, and defects often surface only at runtime in the 1C platform. ## Core Features & Use Cases - Structural validation: Checks root element and version, AutoCommandBar presence, ID uniqueness across separate element/attribute/command pools, and MainAttribute count. - Reference integrity: Verifies DataPath attributes exist, button CommandName references resolve to declared commands, events have handler names, and commands define an Action. - Companion element checks: Ensures InputField, Table, Button, and other element types include required companions like ContextMenu and ExtendedTooltip. - Use Case: After exporting a document form from Configurator to src/, run the validator on Form.xml to catch a duplicate element ID and a missing ExtendedTooltip before committing the change. ## Quick Start Ask the assistant to run 1c-form-validate against the exported Form.xml file path to check the managed form for structural errors.

Frequently Asked Questions about 1c-form-validate

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

FAQPage Schema
How do I validate a 1C managed form Form.xml file?

Run the form-validate.ps1 PowerShell script with the -FormPath parameter pointing to the exported Form.xml. It checks ID uniqueness, companion elements, DataPath references, and command handlers, returning exit code 0 when all checks pass.

What structural errors does 1C form validation detect?

It detects duplicate element, attribute, and command IDs, missing AutoCommandBar, missing companion elements like ContextMenu and ExtendedTooltip, DataPath references to nonexistent attributes, buttons referencing undefined commands, empty event handlers, and multiple MainAttribute flags.

Does the validator modify or fix Form.xml files?

No, the validator is strictly read-only. It reports structural errors but never edits the file; fixes must be made in Configurator or in the BSL code that builds form elements at runtime, followed by a re-export.

Which Form.xml versions are supported by the validator?

The validator recognizes form versions 2.17 and 2.20 as known versions. Other versions produce a warning rather than an error, and a missing version attribute also triggers a warning.

Why does form validation stop before checking everything?

The script stops after reaching the MaxErrors limit, which defaults to 30 errors. You can raise this limit with the -MaxErrors parameter, or fix the reported errors and re-run the validation.