Agent skill
cfe-init
Создать расширение конфигурации 1С (CFE) — scaffold XML-исходников. Используй когда нужно создать новое расширение для исправления, доработки или дополнения конфигурации
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/cfe-init
SKILL.md
/cfe-init — Создание расширения конфигурации 1С
Создаёт scaffold расширения: Configuration.xml, Languages/Русский.xml, опционально Roles/.
Подготовка
Если есть выгрузка базовой конфигурации, передай -ConfigPath — скрипт автоматически определит CompatibilityMode и UUID языка из базовой конфигурации.
Авто-определение ConfigPath
Если пользователь не указал -ConfigPath — попробуй определить автоматически:
- Прочитай
.v8-project.jsonиз корня проекта - Разреши целевую базу (по имени, ветке или
default— алгоритм из/db-list) - Если у базы есть поле
configSrc— используй как-ConfigPath - Если
configSrcнет — спроси у пользователя
Если .v8-project.json не найден и -ConfigPath не задан — расширение создастся с предупреждением (UUID языка = нули, CompatibilityMode по умолчанию).
Параметры
| Параметр | Описание | По умолчанию |
|---|---|---|
Name |
Имя расширения (обязат.) | — |
Synonym |
Синоним | = Name |
NamePrefix |
Префикс собственных объектов | = Name + "_" |
OutputDir |
Каталог для создания | src |
Purpose |
Patch (исправление) / Customization (доработка) / AddOn (дополнение) |
Customization |
Version |
Версия расширения | — |
Vendor |
Поставщик | — |
CompatibilityMode |
Режим совместимости | Version8_3_24 |
ConfigPath |
Путь к выгрузке базовой конфигурации (авто-определяет CompatibilityMode и Language UUID) | — |
NoRole |
Без основной роли | false |
Команда
powershell.exe -NoProfile -File .claude/skills/cfe-init/scripts/cfe-init.ps1 -Name "МоёРасширение"
Что создаётся
<OutputDir>/
├── Configuration.xml # Свойства расширения
├── Languages/
│ └── Русский.xml # Язык (заимствованный)
└── Roles/ # Если не -NoRole
└── <Prefix>ОсновнаяРоль.xml
Примеры
# Расширение для ERP с авто-определением совместимости из базовой конфигурации
... -Name Расш1 -ConfigPath C:\WS\tasks\cfsrc\erp_8.3.24 -OutputDir src
# Расширение-исправление с явным режимом совместимости
... -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
Верификация
/cfe-validate <OutputDir>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?