К основному содержанию
скилл CX Codex

magento-xml-specialist — скилл для Claude Code: XML в Magento 2

Скилл для ИИ-агента, который пишет и проверяет XML-конфигурации Magento 2: layout, di.xml, system.xml, module.xml и db_schema.xml.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist -a claude-code
Открыть на GitHub

Что делает 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-code

2Вручную: положить файлы

~/.claude/skills/magento-xml-specialist/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/magento-xml-specialist/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора5

Похожие

xxe-xml-external-entity yaklang Скилл передаёт агенту сценарии выявления XXE-уязвимостей. Пригодится при аудите парсеров XML, SVG, SOAP и документов Office. CX Codex +1 3 600установок migrate-xml-views-to-jetpack-compose Google LLC Ведёт миграцию одного XML-экрана Android в Jetpack Compose: от аудита до проверки и удаления устаревшей разметки. CX Codex +1 2 400установок xml-sitemap kostja94 Скилл собирает XML-карту сайта по списку страниц, проверяет её и подсказывает, что делать с lastmod и разбивкой на индекс. CX Codex +1 1 200установок hyva-create-module hyva-themes Создаёт заготовку модуля Magento 2 в app/code/: registration.php, composer.json и etc/module.xml. Пригодится, когда нужен новый модуль без ручного копирования шаблонов. CX Codex +1 1 300установок shopify-migration nexscope-ai Скилл для ИИ-агента, который ведёт миграцию магазина на Shopify: план работ, перенос данных, редиректы URL. CX Codex +1 998установок odoo-development Mindrally Скилл для ИИ-агента, который подсказывает, как писать модули Odoo: модели на Python ORM, XML-представления, права доступа. CX Codex +1 2 300установок

Рядом в теме «Бэкенд и 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

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой