About form-info
form-info is a command-line skill for 1C developers that summarizes Form.xml structure, attributes, commands, and events. It supports pagination and handler locations to make large forms easier to inspect.
Key features
- 01Prints the form element tree
- 02Lists attributes and types
- 03Shows commands and events
- 04Expands sections by name
- 05Limits and paginates output
- 06Shows handler names and line ranges
Use cases
- 01Inspecting a large Form.xml
- 02Finding form commands and events
- 03Browsing selected collapsed sections
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ nikolay-shirokov/ cc-1c-skills --skill form-infoAfter installing, type/form-infoin Claude Code to confirm it loaded.
Bundled filesscripts/form-info.ps1scripts/form-info.py
Details
From the project README/form-info — Компактная сводка формы
Читает Form.xml и выводит дерево элементов, реквизиты с типами, команды, события. Заменяет чтение тысяч строк XML.
Команда
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/form-info.ps1" -FormPath "<путь к Form.xml>"
Параметры
| Параметр | Обязательный | Описание |
|---|---|---|
| FormPath | да | Путь к файлу Form.xml |
| Expand | нет | Раскрыть свёрнутую секцию по имени или title, * — все |
| Limit | нет | Макс. строк (по умолчанию 150) |
| Offset | нет | Пропустить N строк (пагинация) |
| Handlers | нет | Имена обработчиков событий и команд с диапазонами строк в модуле формы |
Вывод самодокументирован. [Group:AH]/[Group:AV] = AlwaysHorizontal/AlwaysVertical.
Командная панель ([CmdBar]) и контекстное меню ([ContextMenu]) элемента показываются в дереве, когда в них есть свои кнопки или отключено автозаполнение. Панель таблицы с нестандартным именем — суффикс [cmdBar:Имя] у таблицы; стандартное имя — <Таблица>КоманднаяПанель. [std] — стандартная команда (Close, у таблицы — Товары.Add), [cmd] — команда формы.