form-edit

Add elements, attributes, and event handlers to existing 1C Form.xml files via PowerShell.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the modification of existing 1C managed forms (Form.xml) by injecting new elements, attributes, and associated event handlers.

Core Features & Use Cases

  • Adds new form elements (inputs, groups, tables, etc.) and their UI attributes to an existing Form.xml, with automatic ID generation and companion elements (ContextMenu, ExtendedTooltip).
  • Generates event bindings and handlers according to the JSON description, enabling rapid form customization without manual XML editing.
  • Use cases include extending a form after initial compilation, batch updates across multiple forms, and applying consistent UI patterns across a project.

Quick Start

Run the skill with the path to Form.xml and a JSON description to add specified elements and attributes.

Frequently Asked Questions about form-edit

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

FAQPage Schema
How do I add elements to an existing 1C Form.xml after compilation?

You can extend 1C managed forms by providing a JSON description of additions and the Form.xml path. A PowerShell script then modifies the XML programmatically, automatically generating required IDs and companion elements.

Can I batch update multiple 1C managed forms with new UI elements?

Yes, batch updates across multiple 1C managed forms are supported. By applying a JSON description to many Form.xml files within a Cursor workflow, UI changes propagate automatically without manual XML editing.

Does form-edit work with event handlers in 1C managed forms?

Yes, it generates event bindings and handlers according to your provided JSON description. This enables rapid UI customization in 1C managed forms by automatically injecting event handlers into the Form.xml.

What do I need to provide to modify a 1C Form.xml programmatically?

You need a JSON description detailing the specific elements, attributes, and event handlers to add, plus the file path to the target Form.xml. The skill uses these inputs to automatically generate IDs and companion elements.

What are the limitations of using a script to modify 1C Form.xml?

A key limitation is that it requires a precisely structured JSON description and PowerShell execution to function. It is designed specifically for extending existing compiled 1C managed forms rather than generating entirely new forms from scratch.