magento-requirejs-specialist — скилл для Claude Code
Скилл magento-requirejs-specialist помогает писать AMD-модули на RequireJS для Magento 2, настраивать зависимости и готовить сборку фронтенда.
MIT 150 установок ★ 33 обновлён 2026-01-24
npx skills add maxnorm/magento2-agent-skills --skill magento-requirejs-specialist -a claude-codeЧто делает magento-requirejs-specialist
Скилл направляет агента при разработке клиентского кода под Magento 2. Он задаёт правила для структуры AMD-модулей, внедрения зависимостей, интеграции с темами оформления и работы со встроенной системой UI-компонентов.
Внутри заложены практики по связке скриптов с событиями Magento, отправке AJAX-запросов и сборке продакшен-бандлов через r.js. Подход жёстко привязан к соглашениям платформы, поэтому код генерируется с учётом стандартных путей и плагинов RequireJS.
Какие задачи решает
- написать AMD-модуль по стандартам Magento 2
- сконфигурировать пути и зависимости в RequireJS
- разработать пользовательский JavaScript-виджет для темы
- настроить AJAX-взаимодействие с бэкендом через API
- подготовить клиентские скрипты к оптимизации через r.js
Примеры запросов агенту
- Создай AMD-модуль для всплывающей корзины в теме Magento 2
- Настрой зависимости RequireJS для кастомного слайдера товаров
- Свяжи JavaScript-виджет с UI-компонентом через события Magento
Как установить magento-requirejs-specialist
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-requirejs-specialist -a claude-code2Вручную: положить файлы
~/.claude/skills/magento-requirejs-specialist/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/magento-requirejs-specialist/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-requirejs-specialist -a codex2Вручную: положить файлы
.agents/skills/magento-requirejs-specialist/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-requirejs-specialist -a cursor2Вручную: положить файлы
.cursor/skills/magento-requirejs-specialist/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install maxnorm/magento2-agent-skills skills/magento-requirejs-specialist2Вручную: положить файлы
.github/skills/magento-requirejs-specialist/SKILL.md1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-requirejs-specialist -a gemini-cli2Командой платформы
gemini skills install https://github.com/maxnorm/magento2-agent-skills --path skills/magento-requirejs-specialistВручную: положить файлы
.devin/skills/magento-requirejs-specialist/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-requirejs-specialist -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о magento-requirejs-specialist
Как установить magento-requirejs-specialist в Claude Code?
Выполните в терминале команду npx skills add maxnorm/magento2-agent-skills --skill magento-requirejs-specialist -a claude-code. Файл инструкции сохранится по пути ~/.claude/skills/magento-requirejs-specialist/SKILL.md.
Что делает magento-requirejs-specialist?
Скилл обучает ассистента правилам архитектуры фронтенда Magento 2: созданию модулей по стандарту AMD, управлению зависимостями RequireJS и интеграции с UI-компонентами.
Для каких задач в Magento 2 пригодится этот скилл?
Он нужен для написания тем, создания виджетов, организации обмена данными по AJAX и оптимизации production-сборок скриптов с помощью r.js.
Исходный текст
SKILL.md · MIT
--- name: magento-requirejs-specialist description: Develops AMD modules using RequireJS for Magento 2. Use when creating JavaScript modules, managing dependencies, or optimizing JavaScript loading. Masters module loading, dependency management, and build optimization. --- # Magento 2 RequireJS Specialist Expert specialist in creating efficient, modular JavaScript architectures using AMD (Asynchronous Module Definition) patterns. ## When to Use - Creating JavaScript modules - Managing JavaScript dependencies - Optimizing JavaScript loading - Building custom widgets - Working with Magento's JavaScript framework ## RequireJS Architecture ### AMD Modules - **Module Definition**: Expert in Asynchronous Module Definition pattern - **Dependency Management**: Advanced dependency injection and module loading - **Module Configuration**: RequireJS configuration and path optimization - **Plugin System**: RequireJS plugins and custom loaders - **Build Optimization**: r.js optimization and production builds ### Magento Integration - **Theme Integration**: RequireJS integration with Magento themes - **Widget Development**: Custom JavaScript widgets and components - **UI Component Integration**: Integration with Magento's UI component system - **Backend Communication**: AJAX and API communication patterns - **Event System**: Integration with Magento's event system ## Best Practices - **Module Organization**: Logical code organization and structure - **Dependency Management**: Clean dependency injection patterns - **Performance**: Optimize module loading and execution - **Code Reusability**: Create reusable module patterns - **Build Optimization**: Optimize for production builds ## References - [RequireJS Documentation](https://requirejs.org/) - [Adobe Commerce JavaScript](https://developer.adobe.com/commerce/frontend-core/guide/javascript/) Focus on creating modular, maintainable JavaScript architectures.
© maxnorm · MIT · maxnorm/magento2-agent-skills