bitrix-modules

Automate Bitrix module creation and maintenance with CModule and make:module.

33|3|Updated Jun 5, 2025
One-click install
npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-modules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bitrix-modules
Source: https://github.com/bxmaximum/bitrix_ai_challenge/tree/main/.agents/skills/bitrix-modules
Command: npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-modules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Покрывает создание и сопровождение собственного модуля Bitrix в /local/modules/<vendor>.<module>/ — класс CModule, install/index.php, DoInstall и DoUninstall, install/version.php с $arModuleVersion, регистрация событий и агентов на установке, опции модуля (options.php), генерация через make:module. Применяется при создании нового модуля, доработке установки/удаления, регистрации обработчиков событий и публикации опций модуля в админке. Ключевые термины — CModule, DoInstall, DoUninstall, module manifest, install/index.php, make:module, vendor.module.

Core Features & Use Cases

  • Автоматизация создания и сопровождения модуля Bitrix: skeleton, версия, структура каталогов.
  • Интеграция регистраторов событий и агентов: OnAfterUserAdd, планирование задач и триггеров в рамках локального модуля.
  • Управление конфигурацией: настройка модульных опций через options.php и регистрация возможностей в административной панели.
  • Use Case: Разработка нового модуля vendor.module и его публикация в админке Bitrix.

Quick Start

Создайте новый скелет модуля Bitrix с помощью команды make:module vendor.module.

Frequently Asked Questions about bitrix-modules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Bitrix module skeleton in /local/modules/vendor.module/?

To create a Bitrix module, run the make:module vendor.module command to generate a complete skeleton in /local/modules/, including the CModule class, install/index.php, and version.php with $arModuleVersion.

How do I register Bitrix events and agents during module installation?

Register Bitrix events and agents by defining them within the DoInstall method in install/index.php, ensuring handlers like OnAfterUserAdd and scheduled tasks are configured when the module is installed.

What is the standard way to manage Bitrix module options in the admin panel?

Manage Bitrix module options by configuring options.php, which registers module settings and capabilities in the administrative panel, allowing users to customize the module behavior after installation.

How does the uninstall process work for a custom Bitrix module?

The Bitrix module uninstall process is handled by the DoUninstall method in install/index.php, which removes registered events, agents, and module data, ensuring a clean removal from the Bitrix environment.

Can I use this approach to maintain versioning for a local Bitrix module?

Yes, Bitrix module versioning is maintained via install/version.php, where the $arModuleVersion array defines the current version, allowing the CModule mechanism to track and apply updates correctly.

What is needed to build a custom Bitrix module with admin configuration?

Building a custom Bitrix module requires a vendor.module directory structure, a CModule class implementation, DoInstall and DoUninstall logic, and an options.php file to provide administrative configuration capabilities.