SuperAPI AI Directory

cfe-init

General & other

View repository

Updated 10-15 17:18

About this skill

/cfe-init — Creating a 1C configuration extension

Creates an extension scaffold: Configuration.xml, Languages/Русский.xml, optionally Roles/.

Preparation

Before creating an extension, it is recommended to obtain the version and compatibility mode of the base configuration:

/cf-info <ConfigPath> -Mode brief

This will provide CompatibilityMode (pass to -CompatibilityMode) and the configuration version (for -Version, for example <ВерсияКонфигурации>.1).

Parameters

Parameter Description Default
Name Extension name (required) —
Synonym Synonym = Name
NamePrefix Prefix of own objects = Name + "_"
OutputDir Directory for creation src
Purpose Patch (fix) / Customization (modification) / AddOn (supplement) Customization
Version Extension version —
Vendor Vendor —
CompatibilityMode Compatibility mode Version8_3_24
NoRole Without main role false

Command

powershell.exe -NoProfile -File .claude/skills/cfe-init/scripts/cfe-init.ps1 -Name "МоёРасширение"

What is created

<OutputDir>/
├── Configuration.xml         # Свойства расширения
├── Languages/
│   └── Русский.xml           # Язык (заимствованный)
└── Roles/                    # Если не -NoRole
    └── <Prefix>ОсновнаяРоль.xml

Examples

# Расширение-исправление для ERP
... -Name Расш1 -Purpose Patch -CompatibilityMode Version8_3_17 -OutputDir src

# Расширение-доработка с версией
... -Name МоёРасширение -Version "1.0.0.1" -Vendor "Компания" -OutputDir src

# Без роли, с явным префиксом
... -Name ИсправлениеБага -NamePrefix "ИБ_" -Purpose Patch -NoRole -OutputDir src

Verification

/cfe-validate <OutputDir>