magento-xml-specialist — скилл для Claude Code: XML в Magento 2
Скилл для ИИ-агента, который пишет и проверяет XML-конфигурации Magento 2: layout, di.xml, system.xml, module.xml и db_schema.xml.
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a claude-codeЧто делает magento-xml-specialist
Скилл добавляет агенту знание структуры XML-конфигураций Magento 2. Он разбирается в layout-инструкциях, контейнерах и блоках, настройке dependency injection через di.xml, админских настройках в system.xml, объявлении модуля в module.xml и схемах таблиц в db_schema.xml. Внутри — один файл SKILL.md с описанием типов конфигураций и практик.
Полезен, когда нужно быстро собрать layout для новой страницы или прописать виртуальные типы и плагины. Агент подсказывает, как оформить пространства имён, комментарии и наследование конфигураций. Отдельный пункт — валидация XML по схемам: без неё Magento молча игнорирует битый конфиг, и потом приходится искать причину по логам.
Скилл ставится в Claude, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Для установки нужен Node.js и npx — команда тянет файлы из репозитория maxnorm/magento2-agent-skills.
Какие задачи решает
- собрать layout XML для новой страницы
- прописать виртуальные типы и плагины в di.xml
- добавить поля в админскую конфигурацию через system.xml
- описать таблицу и индексы в db_schema.xml
- проверить XML на соответствие схеме до деплоя
Примеры запросов агенту
- создай layout XML для страницы каталога с блоком фильтров
- добавь плагин before к методу getPrice в di.xml
- опиши таблицу заказов с индексом по customer_id в db_schema.xml
Как установить magento-xml-specialist
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a claude-code2Вручную: положить файлы
~/.claude/skills/magento-xml-specialist/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/magento-xml-specialist/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a codex2Вручную: положить файлы
.agents/skills/magento-xml-specialist/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a cursor2Вручную: положить файлы
.cursor/skills/magento-xml-specialist/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install maxnorm/magento2-agent-skills magento-xml-specialist2Вручную: положить файлы
.github/skills/magento-xml-specialist/SKILL.md1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a gemini-cli2Командой платформы
gemini skills install https://github.com/maxnorm/magento2-agent-skills --path skills/magento-xml-specialistВручную: положить файлы
.devin/skills/magento-xml-specialist/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора5
Похожие
Рядом в теме «Бэкенд и API»
Всё по теме «Бэкенд и API» →Вопросы о magento-xml-specialist
Как установить magento-xml-specialist в Claude?
Выполните npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a claude-code. Файл появится в ~/.claude/skills/magento-xml-specialist/SKILL.md.
Что делает magento-xml-specialist?
Помогает агенту создавать и проверять XML-конфигурации Magento 2: layout, di.xml, system.xml, module.xml и db_schema.xml.
Нужен ли Magento 2 для работы скилла?
Скилл описывает структуру XML-файлов Magento 2, поэтому применять его имеет смысл в проекте на этой платформе.
Исходный текст
SKILL.md · MIT
--- name: magento-xml-specialist description: Creates XML configurations for Magento 2 including layout XML, dependency injection, system configuration, and module definition. Use when working with XML configuration files, layout XML, di.xml, or system.xml. Masters XML schema design, validation, and configuration management. --- # Magento 2 XML Specialist Expert specialist in creating comprehensive, well-structured XML configurations that form the backbone of Magento 2 module architecture. ## When to Use - Creating layout XML files - Configuring dependency injection (di.xml) - Setting up system configuration (system.xml) - Defining module structure (module.xml) - Creating database schemas (db_schema.xml) ## XML Configuration Types ### Layout XML - **Layout Instructions**: Expert in layout instructions, containers, and blocks - **Page Layouts**: Create custom page layouts - **Layout Updates**: Implement layout modifications - **Block Configuration**: Configure blocks and containers ### Dependency Injection (di.xml) - **Type Configuration**: Configure types and preferences - **Virtual Types**: Create virtual types for flexibility - **Plugin Configuration**: Configure plugins (before/after/around) - **Argument Injection**: Configure constructor arguments ### System Configuration (system.xml) - **Admin Configuration**: Create admin configuration interfaces - **Field Types**: Configure various field types - **Scope Management**: Handle store/website scope configurations - **Validation**: Implement configuration validation ### Module Definition (module.xml) - **Module Declaration**: Declare modules and dependencies - **Version Management**: Manage module versions - **Dependencies**: Define module dependencies ### Database Schema (db_schema.xml) - **Table Definition**: Define database tables - **Column Definition**: Define columns and data types - **Indexes**: Create database indexes - **Constraints**: Define constraints and relationships ## Best Practices - **Schema Validation**: Always validate XML against schemas - **Namespace Management**: Proper XML namespace usage - **Documentation**: Add XML comments for clarity - **Inheritance**: Understand configuration inheritance - **Performance**: Optimize XML parsing and loading ## References - [Adobe Commerce XML Configuration](https://developer.adobe.com/commerce/php/development/configuration/) - [Layout XML](https://developer.adobe.com/commerce/frontend-core/guide/layouts/) Focus on creating well-structured XML configurations that are maintainable and performant.
© maxnorm · MIT · maxnorm/magento2-agent-skills