cf-init — Claude Code skill: what it does, how to install
Scaffolds an empty 1C enterprise configuration XML source tree directly from the command line.
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
/plugin install 1c-skills@cc-1c-skillsWhat cf-init does
This skill scaffolds a fresh 1C configuration source tree containing Configuration.xml alongside language metadata. It executes an internal script, cf-init.ps1, through PowerShell. You provide the required configuration name, while target output defaults to src.
Configuration parameters include FormatVersion (defaults to 2.17) and CompatibilityMode (defaults to Version8_3_24). Setting the format version higher than the target 1C runtime version prevents files from loading properly.
Without PowerShell accessible in your execution environment, the generation script fails immediately.
What it helps with
- scaffold a blank 1C configuration in raw XML files
- configure target compatibility mode and format version on setup
- generate starting metadata folders with custom vendor and version values
Example prompts for the agent
- /cf-init WarehouseManagement -OutputDir src
- /cf-init AccountingBase -Synonym "Accounting" -Version "1.0.0.1" -Vendor "1C"
- /cf-init CustomProject -FormatVersion 2.20 -CompatibilityMode Version8_3_27 -OutputDir test-tmp/cf
How to install cf-init
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 cf-init -a claude-code3Manually: put the files in place
~/.claude/skills/cf-init/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cf-init/
1Skills CLI (Vercel)
npx skills add Nikolay-Shirokov/cc-1c-skills --skill cf-init -a codex2Manually: put the files in place
.agents/skills/cf-init/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/cf-init/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Nikolay-Shirokov/cc-1c-skills cf-init2Manually: put the files in place
.github/skills/cf-init/SKILL.mdPlatform CLI
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/cf-initManually: put the files in place
.devin/skills/cf-init/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 cf-init
How to install cf-init in Claude Code?
Run /plugin marketplace add Nikolay-Shirokov/cc-1c-skills first, then run /plugin install 1c-skills@cc-1c-skills.
What does cf-init do?
It creates initial XML files for a new 1C project, including Configuration.xml and base language definitions.
What default values does cf-init use for format and compatibility?
Default settings apply FormatVersion 2.17 and CompatibilityMode Version8_3_24, matching 1C platform 8.3.24 requirements.
Source text
SKILL.md · MIT
---
name: cf-init
description: Создать пустую конфигурацию 1С (scaffold XML-исходников). Используй когда нужно начать новую конфигурацию с нуля
argument-hint: <Name> [-Synonym <name>] [-OutputDir src]
allowed-tools:
- Bash
- Read
- Glob
---
# /cf-init — Создание пустой конфигурации 1С
Создаёт scaffold исходников пустой конфигурации 1С: `Configuration.xml`, `Languages/Русский.xml`.
## Параметры и команда
| Параметр | Описание |
|----------|----------|
| `Name` | Имя конфигурации (обязат.) |
| `Synonym` | Синоним (= Name если не указан) |
| `OutputDir` | Каталог для создания (default: `src`) |
| `Version` | Версия конфигурации |
| `Vendor` | Поставщик |
| `CompatibilityMode` | Режим совместимости (default: `Version8_3_24`) |
| `FormatVersion` | Версия формата выгрузки (default: `2.17`) |
Оба параметра задаются от **целевой платформы** — той, на которой конфигурация будет работать, — но по
разным правилам.
`FormatVersion` — **не выше** версии формата целевой платформы: 8.3.24 — `2.17`, 8.3.25 — `2.18`,
8.3.26 — `2.19`, 8.3.27 — `2.20`, 8.5 — `2.21`. Ниже брать можно: платформа читает свой формат и любой
более старый, поэтому дефолт `2.17` подходит для всей линейки 8.3.24 и выше.
`CompatibilityMode` влияет на доступную функциональность. Если в задаче не оговорено иное — **равен
целевой платформе** (`Version8_3_27` для 8.3.27); это то же самое, что «Не использовать» в
Конфигураторе, и именно такое значение платформа проставляет новой базе. Более низкий режим берут
осознанно — когда конфигурация должна работать и на старых платформах; он отключает возможности,
появившиеся позже. Выше целевой платформы — нельзя: такая конфигурация загрузится, но работать на ней
не будет.
```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/cf-init.ps1" -Name "МояКонфигурация"
```
## Примеры
```powershell
# Базовая конфигурация
... -Name МояКонфигурация -Synonym "Моя конфигурация" -OutputDir test-tmp/cf
# С версией и поставщиком
... -Name TestCfg -Synonym "Тестовая" -Version "1.0.0.1" -Vendor "Фирма 1С" -OutputDir test-tmp/cf2
# Под платформу 8.3.27 — версия формата и режим совместимости вместе
... -Name TestCfg -FormatVersion 2.20 -CompatibilityMode Version8_3_27 -OutputDir test-tmp/cf3
```
## Верификация
```
/cf-init TestConfig -OutputDir test-tmp/cf
/cf-info test-tmp/cf — проверить созданное
/cf-validate test-tmp/cf — валидировать
```
© Nikolay Shirokov · MIT · Nikolay-Shirokov/cc-1c-skills