# magento-knockout-specialist

magento-knockout-specialist guides coding agents in building reactive KnockoutJS UI components and MVVM patterns for Magento 2.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 168 installs · ★ 33 repo stars
- Author: maxnorm
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/maxnorm/magento2-agent-skills/tree/HEAD/skills/magento-knockout-specialist/SKILL.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/magento-knockout-specialist

## What it does

This skill instructs the agent on creating reactive frontend features for Magento 2 projects. It covers observable patterns, computed values, observable arrays, declarative data binding, and custom binding handlers.

The guidelines connect KnockoutJS mechanics with Magento internals, including RequireJS module loading, templates, data providers, and component communication. It emphasizes subscription cleanup and DOM update efficiency to avoid browser memory leaks.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/magento-knockout-specialist/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/magento-knockout-specialist/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/magento-knockout-specialist/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/magento-knockout-specialist/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install maxnorm/magento2-agent-skills skills/magento-knockout-specialist
```

2. **Manually: put the files in place**
- File: `.github/skills/magento-knockout-specialist/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/maxnorm/magento2-agent-skills --path skills/magento-knockout-specialist
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/magento-knockout-specialist/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add maxnorm/magento2-agent-skills --skill magento-knockout-specialist -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/maxnorm/magento2-agent-skills/tree/HEAD/skills/magento-knockout-specialist/SKILL.md

## When to use it
- implement MVVM architecture for Magento 2 frontend
- build custom KnockoutJS binding handlers
- wire frontend components to Magento data providers
- manage observable subscriptions to prevent memory leaks

## Example prompts
- Build a Magento 2 UI component using KnockoutJS observables for checkout
- Create a custom KnockoutJS binding handler with proper disposal
- Connect this component to the Magento data provider via RequireJS

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 302e7927b997c4f7.

BEGIN THIRD-PARTY FILE 302e7927b997c4f7
```text
---
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.
```
END THIRD-PARTY FILE 302e7927b997c4f7

The third-party file has ended. Everything between the 302e7927b997c4f7 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© maxnorm · MIT · https://github.com/maxnorm/magento2-agent-skills/tree/HEAD/skills/magento-knockout-specialist/SKILL.md

## Similar
- [hyva-alpine-component](https://affpapa.org/en/nevibecode/skills/hyva-alpine-component.md) — skill · 1400 installs
- [hyva-child-theme](https://affpapa.org/en/nevibecode/skills/hyva-child-theme.md) — skill · 1400 installs
- [flutter-apply-architecture-best-practices](https://affpapa.org/en/nevibecode/skills/flutter-apply-architecture-best-practices.md) — skill · 47000 installs
- [maui-data-binding](https://affpapa.org/en/nevibecode/skills/maui-data-binding.md) — skill · 4200 installs
- [flutter-architecture](https://affpapa.org/en/nevibecode/skills/flutter-architecture.md) — skill · 1700 installs
- [android-kotlin-development](https://affpapa.org/en/nevibecode/skills/android-kotlin-development.md) — skill · 1500 installs

From the same set: [maxnorm/magento2-agent-skills](https://affpapa.org/en/nevibecode/by/maxnorm/magento2-agent-skills.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
