1c-cfe-borrow

Borrow objects from a 1C configuration into an extension with metadata generation.

40|11|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-cfe-borrow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-cfe-borrow
Source: https://github.com/Desko77/claude-code-skills-1c/tree/main/skills/1c-cfe-borrow
Command: npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-cfe-borrow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, and includes scripts (resource) components.

What problem does it solve?

Borrow objects from a 1C configuration into an extension to enable integrations and interceptors without modifying the source ERP config.

Core Features & Use Cases

  • Create borrowed metadata for objects, including ExtendedConfigurationObject references, and register forms in the extension.
  • Support borrowing of related forms and nested structures, and optionally auto-borrow referenced resources such as pictures, styles, and enums.
  • Use case: integrate a legacy ERP object (e.g., Document or Catalog) into an extension to alter behavior or UI without touching the source.

Quick Start

Run the cfe-borrow tool with -ExtensionPath, -ConfigPath, and -Object to borrow the desired object(s) from the source configuration into the extension.

Frequently Asked Questions about 1c-cfe-borrow

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

FAQPage Schema
How do I borrow 1C configuration objects into an extension without modifying the source ERP?

To borrow 1C configuration objects into an extension, this tool generates borrowed metadata with ObjectBelonging=Adopted and ExtendedConfigurationObject references. It allows you to intercept or modify existing configurations without touching the source ERP config.

What does it mean to borrow forms and metadata in 1C extensions?

Borrowing forms and metadata in 1C extensions creates adopted objects that reference the source configuration. The process registers forms, updates ChildObjects ordering, and propagates metadata across extension components for multiple object types.

Can I automatically borrow referenced resources like pictures and styles from a 1C configuration?

Yes, you can automatically borrow referenced resources like pictures and styles from a 1C configuration. The tool optionally auto-borrows these referenced resources from the source configuration when generating extension metadata.

Do I need lxml to borrow objects from a 1C configuration into an extension?

Yes, you need the lxml dependency installed to borrow objects from a 1C configuration into an extension. The tool relies on this library to process and generate the XML metadata required for extension components.

What is the best way to integrate a legacy ERP object into a 1C extension to alter UI behavior?

The best way to integrate a legacy ERP object into a 1C extension is running the cfe-borrow tool with ExtensionPath, ConfigPath, and Object parameters. It borrows the desired object to modify behavior or UI without source changes.

What are the limitations when borrowing nested structures and related forms in 1C extensions?

When borrowing nested structures and related forms in 1C extensions, limitations include dependency on the source configuration remaining intact for references. Borrowed objects require ExtendedConfigurationObject links to stay valid across extension components.