Extracts XML source code from 1C report (.erf) files.

Install

mkdir -p .claude/skills/erf-dump && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14608" && unzip -o skill.zip -d .claude/skills/erf-dump && rm skill.zip

Installs to .claude/skills/erf-dump

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Разобрать ERF-файл отчета 1С в XML-исходники. Используй когда пользователь просит разобрать, декомпилировать отчет, получить исходники из ERF файла
147 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Decompile 1C ERF report files into XML source code.
  • Use local 1C configuration data for proper decompilation.
  • Resolve database connection parameters from `.v8-project.json`.
  • Auto-detect `v8path` if not explicitly provided.
  • Offer to register unregistered databases after execution.

How it works

The skill uses a PowerShell script to decompile the ERF file, use 1C configuration data from `.v8-project.json` or provided connection parameters to ensure correct handling of linked types.

Inputs & outputs

You give it
Path to an ERF file and an optional output directory.
You get back
XML source code extracted from the ERF file, saved to a specified directory.

When to use erf-dump

  • Decompiling 1C reports
  • Extracting report source code
  • Analyzing legacy 1C reports

About this skill

/erf-dump - Разборка отчета

Usage

/erf-dump <ErfFile> [OutDir]
ПараметрОбязательныйПо умолчаниюОписание
ErfFileда-Путь к ERF-файлу
OutDirнетsrcКаталог для выгрузки исходников

Параметры подключения (обязательно)

Для разборки EPF/ERF требуется информационная база с конфигурацией. Без базы ссылочные типы безвозвратно теряются.

  1. Прочитай .v8-project.json из корня проекта. Возьми v8path и разреши базу:
  2. Если пользователь указал параметры подключения (путь, сервер) - используй напрямую
  3. Если указал базу по имени - ищи по id / alias / name в .v8-project.json
  4. Если не указал - сопоставь текущую ветку Git с databases[].branches
  5. Если ветка не совпала - используй default
  6. Если .v8-project.json нет или база не найдена - сообщи пользователю об ошибке. Для dump база обязательна: в пустой базе ссылочные типы (CatalogRef, DocumentRef и т.д.) безвозвратно сбрасываются в строки. Предложи указать базу или зарегистрировать через /db-list add.

Если v8path не задан - автоопределение: Get-ChildItem "C:\Program Files\1cv8\*\bin\1cv8.exe" | Sort -Desc | Select -First 1 Если использованная база не зарегистрирована - после выполнения предложи добавить через /db-list add.

Команда

Используй общий скрипт из epf-dump:

powershell.exe -NoProfile -File .claude/skills/epf-dump/scripts/epf-dump.ps1 <параметры>

Параметры скрипта

ПараметрОбязательныйОписание
-V8Path <путь>нетКаталог bin платформы (или полный путь к 1cv8.exe)
-InfoBasePath <путь>*Файловая база
-InfoBaseServer <сервер>*Сервер 1С (для серверной базы)
-InfoBaseRef <имя>*Имя базы на сервере
-UserName <имя>нетИмя пользователя
-Password <пароль>нетПароль
-InputFile <путь>даПуть к ERF-файлу
-OutputDir <путь>даКаталог для выгрузки исходников
-Format <формат>нетHierarchical (по умолч.) / Plain

* - обязательно хотя бы одно подключение. Без базы скрипт завершится с ошибкой (dump в пустой базе безвозвратно теряет ссылочные типы)

Примеры

# Разборка отчета (файловая база)
powershell.exe -NoProfile -File .claude/skills/epf-dump/scripts/epf-dump.ps1 -InfoBasePath "C:\Bases\MyDB" -InputFile "build/МойОтчет.erf" -OutputDir "src"

# Серверная база
powershell.exe -NoProfile -File .claude/skills/epf-dump/scripts/epf-dump.ps1 -InfoBaseServer "srv01" -InfoBaseRef "MyDB" -UserName "Admin" -Password "secret" -InputFile "build/МойОтчет.erf" -OutputDir "src"

When not to use it

  • When the ERF file is not from 1C.
  • When XML source code is not the desired output.
  • When a 1C informational base with configuration is not available.

Limitations

  • The skill requires an informational base with configuration for proper decompilation.
  • The skill relies on the `.v8-project.json` file for connection parameters.
  • The skill uses a PowerShell script, implying a Windows environment.

How it compares

This workflow specifically targets 1C ERF files for decompilation into human-readable XML, preserving linked types by using an informational base, unlike generic file decompilers.

Compared to similar skills

erf-dump side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
erf-dump (this skill)03moNo flagsIntermediate
sqlite-inspector59moReviewIntermediate
unity-editor-toolkit107moReviewAdvanced
bullmq-specialist256moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry