form-add

Create and register managed forms in 1C configuration objects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates creating a managed form scaffold for a 1C configuration object, including metadata, Form.xml, and server module, and registers the new form in the object's ChildObjects.

Core Features & Use Cases

  • Create the form metadata, Form.xml, and Module.bsl in a single operation.
  • Register the form in the parent object's ChildObjects with correct placement and default form settings when requested.
  • Validate object type and purpose, ensuring only valid combinations, and provide end-to-end scaffolding for common object types (Document, Catalog, InformationRegister, etc.).

Quick Start

Run form-add with an ObjectPath and FormName and optionally --purpose and --set-default to create and register a new managed form.

Frequently Asked Questions about form-add

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

FAQPage Schema
How do I create and register a managed form in a 1C configuration object?

To create and register a managed form in 1C, you need to generate the form skeleton, XML metadata, and server module, then register it in the parent object's ChildObjects. This automation handles the entire scaffolding process in a single operation.

What 1C object types are supported for automated form scaffolding?

Automated form scaffolding supports common 1C configuration object types including documents, catalogs, and registers. The process enforces object-type and purpose validation to ensure only valid combinations are generated for these configurations.

How do I set a newly created 1C form as the default form for an object?

To set a newly created 1C form as the default, you can use the optional set-default parameter during form creation. This configures the DefaultForm properties within the parent object's metadata during the registration step.

What files are generated when adding a managed form to 1C metadata?

Adding a managed form to 1C metadata generates Form.xml for the form structure and Module.bsl for the server module. The process also creates the necessary form metadata and registers the new form within the parent object's ChildObjects.

Can I automate 1C form registration without manually editing ChildObjects metadata?

Yes, you can automate 1C form registration without manual edits by running a script that generates the metadata and automatically registers the new form in the parent object's ChildObjects with correct placement and default settings.

Why does 1C form creation fail when using an invalid object type or purpose?

1C form creation fails with invalid types because the scaffolding process enforces object-type and purpose validation. This ensures only valid combinations are processed, preventing the generation of incompatible form metadata for unsupported 1C configuration objects.