cfe-patch-method

Generate a Before interceptor for the ПриЗаписи method in a 1C extension module.

140|16|Updated May 2, 2026
One-click install
npx skills add https://github.com/IngvarConsulting/unica --skill cfe-patch-method-ingvarconsulting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cfe-patch-method
Source: https://github.com/IngvarConsulting/unica/tree/main/plugins/unica/skills/cfe-patch-method
Command: npx skills add https://github.com/IngvarConsulting/unica --skill cfe-patch-method-ingvarconsulting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables developers to automatically generate interceptors for methods in 1C extension objects, streamlining code modification and enhancement.

Core Features & Use Cases

  • Interceptor Generation: Creates or appends code with decorators to intercept object methods in 1C configurations.
  • Versatile Module Handling: Supports different module paths and interceptor types for server and client.
  • Use Case: A developer needs to quickly generate a "Before" method hook to execute custom code prior to standard logic, reducing manual coding effort.

Quick Start

Use the cfe-patch-method skill to generate a "Before" interceptor for the "ПриЗаписи" method in the specified extension path.

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 in a 1C extension?

To generate a method interceptor in a 1C extension, this Skill automates creating BSL code with decorators for a specified module path. It targets server-side execution to intercept object methods like 'ПриЗаписи' without manual coding.

What is a Before interceptor used for in 1C configurations?

A Before interceptor in 1C configurations executes custom code prior to standard object logic. It hooks into methods like 'ПриЗаписи' to run custom pre-processing checks before the main transaction occurs.

Can I use this to add server-side decorators to an existing BSL file?

Yes, you can add server-side decorators to an existing BSL file. The interceptor generation process appends code with appropriate decorators directly into the extension's module file for server-side execution.

Does this method hook support both client and server modules?

Yes, method hooks support both client and server modules. The interceptor generation handles versatile module paths and different interceptor types to ensure compatibility across the 1C extension environment.

What's the best way to automate code generation for patching 1C object methods?

The best way to automate code generation for patching 1C object methods is using an extension-based interceptor approach. This reduces manual coding by automatically generating decorator-wrapped hooks for specified modules.