Creates an extension scaffold: Configuration.xml, language in Languages/, optionally Roles/.
Preparation
If there is an export of the base configuration, pass -ConfigPath — the script will automatically take from the base configuration CompatibilityMode and the language.
Auto-detection of ConfigPath
If the user did not specify -ConfigPath — try to determine automatically:
- Read
.v8-project.jsonfrom the project root - Resolve the target base (by name, branch, or
default— algorithm from/db-list) - If the base has a field
configSrc— use as-ConfigPath - If
configSrcis absent — ask the user
If .v8-project.json is not found and -ConfigPath is not set — the extension will be created with a warning (language UUID = zeros, CompatibilityMode by default).
Parameters
| Parameter | Description | Default |
|---|---|---|
Name |
Extension name (required) | — |
Synonym |
Synonym | = Name |
NamePrefix |
Prefix of own objects | = Name + "_" |
OutputDir |
Directory for creation; put the extension in its own subdirectory named after the name: src\cfe\<Name> |
src |
Purpose |
Patch (fix) / Customization (modification) / AddOn (supplement) |
Customization |
Version |
Extension version | — |
Vendor |
Vendor | — |
CompatibilityMode |
Compatibility mode; if ConfigPath is set, it is determined from the base configuration and this parameter is not needed |
Version8_3_24 |
ConfigPath |
Path to the base configuration export (auto-determines CompatibilityMode and language) | — |
NoRole |
Without the main role | false |
Command
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/cfe-init.ps1" -Name "МоёРасширение" -OutputDir "src\cfe\МоёРасширение" -ConfigPath "src\cf"
Examples
# Расширение для ERP с авто-определением совместимости из базовой конфигурации
... -Name Расш1 -ConfigPath src\cf -OutputDir src\cfe\Расш1
# Расширение-исправление с явным режимом совместимости
... -Name Расш1 -Purpose Patch -CompatibilityMode Version8_3_17 -OutputDir src\cfe\Расш1
# Расширение-доработка с версией
... -Name МоёРасширение -Version "1.0.0.1" -Vendor "Компания" -OutputDir src\cfe\МоёРасширение
# Без роли, с явным префиксом
... -Name ИсправлениеБага -NamePrefix "ИБ_" -Purpose Patch -NoRole -OutputDir src\cfe\ИсправлениеБага
Verification
/cfe-validate <OutputDir> -ConfigPath <ConfigPath>