magento-knockout-specialist — скилл для Claude Code
Скилл magento-knockout-specialist помогает писать реактивные фронтенд-компоненты на KnockoutJS для Magento 2 с учётом архитектуры MVVM.
MIT 168 установок ★ 33 обновлён 2026-01-24
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a claude-codeЧто делает magento-knockout-specialist
Скилл направляет агента при разработке пользовательского интерфейса в Magento 2. Он фокусируется на работе с observable, вычисляемыми свойствами, двусторонним связыванием данных и собственными обработчиками привязок (custom bindings).
Внутри заложены правила стыковки KnockoutJS с инфраструктурой платформы: загрузчиком RequireJS, шаблонизатором, провайдерами данных и шиной событий. Отдельное внимание уделено очистке подписок и оптимизации перерисовки DOM, чтобы избежать утечек памяти в браузере.
Какие задачи решает
- спроектировать UI-компонент по шаблону MVVM для Magento 2
- написать кастомный binding handler для KnockoutJS
- связать фронтенд-компонент с провайдером данных платформы
- настроить подписки и очистку памяти в observables
Примеры запросов агенту
- Создай UI-компонент на KnockoutJS для выбора адреса в корзине Magento 2
- Напиши кастомный binding handler для KnockoutJS с корректной отпиской
- Свяжи этот фронтенд-компонент с data provider через RequireJS
Как установить magento-knockout-specialist
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a claude-code2Вручную: положить файлы
~/.claude/skills/magento-knockout-specialist/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/magento-knockout-specialist/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a codex2Вручную: положить файлы
.agents/skills/magento-knockout-specialist/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a cursor2Вручную: положить файлы
.cursor/skills/magento-knockout-specialist/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install maxnorm/magento2-agent-skills skills/magento-knockout-specialist2Вручную: положить файлы
.github/skills/magento-knockout-specialist/SKILL.md1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a gemini-cli2Командой платформы
gemini skills install https://github.com/maxnorm/magento2-agent-skills --path skills/magento-knockout-specialistВручную: положить файлы
.devin/skills/magento-knockout-specialist/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о magento-knockout-specialist
Как установить magento-knockout-specialist в Claude Code?
Выполните команду npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a claude-code. Файл инструкции запишется в ~/.claude/skills/magento-knockout-specialist/SKILL.md.
Что делает magento-knockout-specialist?
Он задаёт контекст для генерации кода UI-компонентов Magento 2, отслеживая правильное применение KnockoutJS, RequireJS и паттерна MVVM.
Какие аспекты производительности учитывает этот скилл?
Скилл ориентирует агента на своевременную очистку подписок observable, оптимизацию рендеринга шаблонов и аккуратное обновление узлов DOM.
Исходный текст
SKILL.md · MIT
--- name: magento-knockout-specialist description: Develops reactive UI components using KnockoutJS for Magento 2. Use when working with UI components, implementing MVVM patterns, or building interactive frontend features. Masters observable patterns, data binding, and custom bindings. --- # Magento 2 KnockoutJS Specialist Expert specialist in creating sophisticated, reactive user interfaces using Magento's KnockoutJS framework. ## When to Use - Building UI components - Implementing MVVM patterns - Creating interactive frontend features - Working with Magento UI components - Building dynamic data binding ## KnockoutJS Mastery ### MVVM Pattern - **Model-View-ViewModel**: Expert implementation of MVVM architecture - **Observable Patterns**: Advanced usage of observables, computed observables, and observable arrays - **Data Binding**: Two-way data binding and declarative binding syntax - **Custom Bindings**: Development of custom binding handlers - **Component Architecture**: Reusable component development ### Magento Integration - **UI Components**: Integration with Magento's UI component framework - **RequireJS Integration**: Module loading and dependency management - **Template System**: KnockoutJS template integration - **Data Providers**: Integration with Magento's data provider architecture - **Event System**: Event handling and inter-component communication ## Best Practices - **Memory Management**: Efficient observable management and cleanup - **Rendering Optimization**: Optimize template rendering and DOM updates - **Subscription Management**: Efficient subscription handling and disposal - **Performance**: Optimize for performance - **Accessibility**: Ensure accessibility compliance ## References - [KnockoutJS Documentation](https://knockoutjs.com/) - [Adobe Commerce UI Components](https://developer.adobe.com/commerce/frontend-core/ui-components/) Focus on creating reactive, maintainable UI components.
© maxnorm · MIT · maxnorm/magento2-agent-skills