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.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat 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 Ato review the extension - Verify transferred code patches between
src/cfe/extnameandsrc/cfusing 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-skillsThis 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-code3Manually: put the files in place
~/.claude/skills/cfe-diff/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cfe-diff/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill cfe-diff -a codex2Manually: put the files in place
.agents/skills/cfe-diff/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/cfe-diff/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills cfe-diff2Manually: put the files in place
.github/skills/cfe-diff/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/cfe-diffManually: put the files in place
.devin/skills/cfe-diff/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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