cfe-patch-method

Generate .bsl method interceptors for 1C extension objects.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/mmmmmm786mngb-jpg/WIM_DEV --skill cfe-patch-method
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cfe-patch-method
Source: https://github.com/mmmmmm786mngb-jpg/WIM_DEV/tree/main/.cursor/skills/cfe-patch-method
Command: npx skills add https://github.com/mmmmmm786mngb-jpg/WIM_DEV --skill cfe-patch-method

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Reduces manual boilerplate when creating interceptors for borrowed 1C extension methods by generating ready-to-use patch files.

Core Features & Use Cases

  • Generates .bsl file with appropriate decorator and context annotations.
  • Creates a new interceptor file or appends to an existing one.
  • Supports ModulePath formats for catalogs, documents, forms, and common modules with Before/After/ModificationAndControl.

Quick Start

Run the cfe-patch-method script with -ExtensionPath, -ModulePath, -MethodName, and -InterceptorType to generate the interceptor in your extension.

Frequently Asked Questions about cfe-patch-method

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

FAQPage Schema
How do I generate a method interceptor for a 1C extension?

To generate a 1C extension method interceptor, run the script with ExtensionPath, ModulePath, MethodName, and InterceptorType. It outputs a ready-to-use .bsl patch file with the appropriate decorator and context annotations.

What is method interception in 1C extensions used for?

Method interception in 1C extensions is used to supply custom code before, after, or instead of borrowed methods. This technique reduces manual boilerplate by generating patch files with appropriate decorators for catalogs, documents, forms, and common modules.

Does the 1C extension patch generator support common modules and forms?

Yes, the 1C extension patch generator supports ModulePath formats for catalogs, documents, forms, and common modules. It handles Before, After, and ModificationAndControl interceptor types to supply code around the original method.

Can I append new interceptors to an existing .bsl patch file?

Yes, you can append new interceptors to an existing .bsl patch file. The script creates a new interceptor file if one does not exist, or appends the generated method patch to your current extension file.

What inputs do I need to create a 1C method patch file?

You need ExtensionPath, ModulePath, MethodName, and InterceptorType to create a 1C method patch file. You can also supply an optional Context parameter to generate the ready-to-use .bsl interceptor.

Are there limitations when intercepting borrowed methods in 1C extensions?

When intercepting borrowed methods in 1C extensions, you must select the correct InterceptorType from Before, After, or ModificationAndControl. The generator requires accurate ModulePath formats matching your target catalogs, documents, forms, or common modules.