1c-cfe-patch-method

Generate BSL interceptors for borrowed 1C extension methods with decorators.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Generating interceptors for borrowed 1C extension methods with proper decorators.

Core Features & Use Cases

  • Generate interceptors for Before, After, and ModificationAndControl
  • Resolve ModulePath to correct 1C filesystem paths and create or append to Ext files
  • Read NamePrefix from Configuration.xml to form the interceptor procedure name
  • Support Form-borrowing checks and optional Form-based module paths
  • Provide a ready-to-use template with context directives and placeholders

Quick Start

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

Frequently Asked Questions about 1c-cfe-patch-method

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

FAQPage Schema
How do I generate interceptors for borrowed 1C extension methods?

Generating interceptors for 1C extension methods involves running a script with ExtensionPath, ModulePath, MethodName, and InterceptorType. It creates or appends to Ext files and emits annotated BSL code with the selected context keyword and placeholders.

What types of interceptors can I create for 1C:Enterprise extensions?

You can create Before, After, and ModificationAndControl interceptors for 1C:Enterprise extensions. The generator applies proper decorators and context directives based on the selected interceptor type for your borrowed methods.

How does the script resolve ModulePath to a 1C filesystem path?

The script maps ModulePath to the correct 1C filesystem path and reads NamePrefix from Configuration.xml to form the interceptor procedure name. It supports Form-borrowing checks and optional Form-based module paths.

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

Yes, you can append generated interceptor code to an existing 1C module file. The script supports both appending to existing module files and creating new ones when generating BSL code for your extension methods.

How do I handle Form-borrowed modules when creating BSL interceptors?

To handle Form-borrowed modules when creating BSL interceptors, the script includes Form-borrowing checks and supports optional Form-based module paths. This ensures correct context directives are applied during code generation.