cfe-patch-method

Generates Before, After, and ModificationAndControl interceptors for borrowed 1C extension objects.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Alex1980Alex/1C-Framework --skill cfe-patch-method-alex1980alex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cfe-patch-method
Source: https://github.com/Alex1980Alex/1C-Framework/tree/main/external/cc-1c-skills/.claude/skills/cfe-patch-method
Command: npx skills add https://github.com/Alex1980Alex/1C-Framework --skill cfe-patch-method-alex1980alex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill generates ready-to-paste method interceptors for borrowed 1C extension objects, so you can add behavior before, after, or instead of an original method without hand-writing boilerplate BSL.

Core Features & Use Cases

  • Creates Before, After, and ModificationAndControl stubs for catalog, document, common module, register, and form modules.
  • Resolves the correct BSL destination from a compact ModulePath, reads the extension NamePrefix from Configuration.xml, and appends the generated code to an existing file when needed.
  • Useful when you need to patch validation, logging, calculations, or form event handling in a 1C extension while keeping the original borrowed object untouched.

Quick Start

Use the cfe-patch-method skill to generate a Before interceptor for your borrowed 1C module by providing the extension path, ModulePath, MethodName, and InterceptorType.

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 method interceptors for borrowed 1C extension objects?

To generate method interceptors for borrowed 1C extension objects, provide the extension path, ModulePath, MethodName, and InterceptorType to automatically create ready-to-paste BSL procedure or function stubs.

What types of 1C module hooks can I create for borrowed objects?

You can create Before, After, and ModificationAndControl hooks for catalog, document, common module, register, and form modules to add behavior without hand-writing BSL boilerplate.

How does the extension NamePrefix get resolved for 1C BSL interceptors?

The extension NamePrefix is resolved by reading directly from the Configuration.xml file, ensuring generated method interceptors are correctly named and mapped to the destination BSL file paths.

Can I append generated BSL interceptor code to an existing module file?

Yes, generated BSL interceptor stubs are validated and appended to existing file paths resolved from the compact ModulePath, eliminating the need to manually paste code into separate modules.

What is the best way to patch validation or logging in a 1C extension without modifying the original object?

The best way to patch validation or logging without modifying the original object is generating Before or After interceptors that inject custom behavior into borrowed 1C extension objects while keeping them untouched.

Does this method hook generator work with 1C form modules and register modules?

Yes, the method hook generator works with 1C form modules, register modules, catalog modules, document modules, and common modules, supporting all standard borrowed object types for interceptor generation.