Skip to main content
skill CX Codex

cfe-diff — Claude Code skill: what it does, how to install

Analyzes 1C CFE configuration extensions, inspects borrowed metadata objects, and checks if code patches reached the main configuration.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills
Open on GitHub

What cfe-diff does

The skill runs the cfe-diff.ps1 PowerShell script via bash tools. It takes -ExtensionPath and -ConfigPath as required arguments. In Mode A, it inspects the CFE extension, categorizing items into [BORROWED] and [OWN] elements while listing method interceptors, attributes, tabular sections, and form event hooks.

In Mode B, it inspects modification handlers and verifies whether code insertion blocks were migrated into the target configuration modules. Each module check reports [TRANSFERRED], [NOT_TRANSFERRED], or [NEEDS_REVIEW] statuses. Without PowerShell available in the operating system, the script fails to execute.

What it helps with

  • inspect metadata and borrowed objects in 1C CFE extensions
  • identify method interceptors across borrowed forms and modules
  • verify that code modification blocks were transferred into main configuration

Example prompts for the agent

  • Run cfe-diff -ExtensionPath src/cfe/extname -ConfigPath src/cf -Mode A to review the extension
  • Verify transferred code patches between src/cfe/extname and src/cf using Mode B
  • Check borrowed forms and command call types in extension src/cfe/extname

How to install cfe-diff

1Plugin marketplace

/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skills

This installs the whole 1c-skills plugin with all its skills

2Skills CLI (Vercel)

npx skills add Nikolay-Shirokov/cc-1c-skills --skill cfe-diff -a claude-code

3Manually: put the files in place

~/.claude/skills/cfe-diff/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cfe-diff/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cfe-diff

How to install cfe-diff in Claude Code?

Add the marketplace via /plugin marketplace add Nikolay-Shirokov/cc-1c-skills, then install the plugin using /plugin install 1c-skills@cc-1c-skills.

What does cfe-diff do?

It parses 1C extension directories to inventory borrowed objects and checks whether custom code additions were ported into the main configuration.

What is the difference between Mode A and Mode B?

Mode A generates an overview of borrowed objects, interceptor annotations, and forms, while Mode B checks whether inserted code blocks exist in target configuration files.

Source text

SKILL.md · MIT
---
name: cfe-diff
description: Анализ расширения конфигурации 1С (CFE) — состав, заимствованные объекты, перехватчики, проверка переноса. Используй когда нужно понять что содержит расширение или проверить перенесены ли вставки в конфигурацию
argument-hint: -ExtensionPath <path> -ConfigPath <path> [-Mode A|B]
allowed-tools:
  - Bash
  - Read
  - Glob
---

# /cfe-diff — Анализ расширения конфигурации

Анализирует расширение в двух режимах: обзор изменений (Mode A) или проверка переноса (Mode B).

## Параметры

| Параметр | Описание | По умолчанию |
|----------|----------|--------------|
| `ExtensionPath` | Путь к расширению (обязат.) | — |
| `ConfigPath` | Путь к конфигурации (обязат.) | — |
| `Mode` | `A` (обзор) / `B` (проверка переноса) | `A` |

## Команда

```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/cfe-diff.ps1" -ExtensionPath src\cfe\extname -ConfigPath src\cf -Mode A
```

## Mode A — обзор расширения

Для каждого объекта показывает:
- `[BORROWED]` — заимствованный: перехватчики (`&Перед`, `&После`, `&ИзменениеИКонтроль`, `&Вместо`), собственные реквизиты/ТЧ/формы
- `[OWN]` — собственный: количество реквизитов, ТЧ, форм

Для каждой формы заимствованного объекта показывается:
- `(borrowed)` / `(own)` — заимствованная или собственная форма
- callType-события формы и элементов
- callType на командах

## Mode B — проверка переноса

Для каждого `&ИзменениеИКонтроль` извлекает блоки `#Вставка`/`#КонецВставки` из расширения и ищет их в соответствующем модуле конфигурации.

Статусы:
- `[TRANSFERRED]` — код найден в конфигурации
- `[NOT_TRANSFERRED]` — код не найден
- `[NEEDS_REVIEW]` — нет блоков `#Вставка` или модуль конфигурации не найден

## Примеры

```powershell
# Обзор — что изменено в расширении
... -ExtensionPath src\cfe\extname -ConfigPath src\cf -Mode A

# Проверка переноса — все ли #Вставка перенесены
... -ExtensionPath src\cfe\extname -ConfigPath src\cf -Mode B
```

© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills

Topics and platforms

SKILL.md skills catalog →

From the same set59

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor