# magento-luma-specialist

magento-luma-specialist guides agents through customizing and extending Magento's default Luma theme. Useful for working with LESS variables, RequireJS modules, and KnockoutJS components.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 152 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-luma-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-luma-specialist

## What it does

The skill provides structured guidance for the traditional Magento 2 frontend architecture. It covers parent-child theme inheritance, XML layout modifications, and template overrides.

It standardizes LESS preprocessing using BEM conventions and custom mixins for responsive layouts. In the JavaScript layer, the skill guides RequireJS module configuration, jQuery widget integration, and KnockoutJS observables.

This instruction set targets classic Luma setups exclusively. If your project uses Hyvä or a headless frontend, these guidelines do not apply.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/magento-luma-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-luma-specialist
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add maxnorm/magento2-agent-skills --skill magento-luma-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-luma-specialist/SKILL.md

## When to use it
- create a Magento 2 child theme inheriting from Luma
- override LESS variables and write responsive mixins
- configure custom RequireJS modules and dependencies
- implement KnockoutJS UI components with observable properties

## Example prompts
- Create a child theme based on Luma and configure `theme.xml`
- Override catalog button styles using Luma LESS variables and BEM
- Build a KnockoutJS component with an observable array for the cart

## 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: 0586962f79586d45.

BEGIN THIRD-PARTY FILE 0586962f79586d45
```text
---
name: magento-luma-specialist
description: Customizes and extends Magento's default Luma theme. Use when working with Luma theme, LESS preprocessing, RequireJS modules, KnockoutJS components, or traditional Magento frontend architecture. Masters LESS variables, RequireJS configuration, and responsive design.
---

# Magento 2 Luma Specialist

Expert specialist in creating sophisticated customizations and extensions to Magento's default Luma theme, leveraging traditional Magento frontend technologies while maintaining compatibility and performance.

## When to Use

- Customizing Luma theme
- Working with LESS preprocessing
- Developing RequireJS modules
- Building KnockoutJS components
- Implementing traditional Magento frontend patterns

## Luma Theme Architecture

- **Theme Inheritance**: Master Luma's parent-child theme structure and fallback mechanisms
- **LESS Architecture**: Expert in Luma's LESS variable system and mixins
- **RequireJS Integration**: Advanced module loading and dependency management
- **KnockoutJS Components**: Build dynamic UI components and data binding
- **Layout System**: Deep understanding of XML layout instructions and containers

## Traditional Magento Frontend Stack

- **LESS Preprocessing**: Advanced LESS compilation and optimization
- **RequireJS**: Asynchronous module loading and configuration
- **KnockoutJS**: MVVM pattern implementation for dynamic interfaces
- **jQuery**: Legacy JavaScript functionality and plugin integration
- **UI Components**: Magento's knockout-based UI component library

## Luma Development Process

### 1. Theme Setup & Customization
- **Child Theme Creation**: Set up proper theme inheritance structure
- **Variable Customization**: Modify LESS variables for brand consistency
- **Layout Modifications**: Customize page layouts and component placement
- **Template Overrides**: Create custom template files while maintaining upgradability
- **Asset Organization**: Organize custom CSS, JavaScript, and images

### 2. LESS Development
- **Variable Management**: Efficiently manage theme variables and overrides
- **Mixin Development**: Create custom mixins for repeated patterns
- **Component Styling**: Style individual components with BEM methodology
- **Responsive Patterns**: Implement consistent responsive design patterns
- **Performance Optimization**: Optimize compiled CSS output

### 3. JavaScript Development
- **RequireJS Modules**: Create custom JavaScript modules and widgets
- **KnockoutJS Components**: Build interactive UI components
- **jQuery Integration**: Integrate jQuery plugins and custom functionality
- **Event Handling**: Implement proper event delegation and management
- **AJAX Implementation**: Create seamless AJAX interactions

### 4. UI Components Integration
```
END THIRD-PARTY FILE 0586962f79586d45

The third-party file has ended. Everything between the 0586962f79586d45 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.

First 2780 of 5043 bytes. © maxnorm · MIT · https://github.com/maxnorm/magento2-agent-skills/tree/HEAD/skills/magento-luma-specialist/SKILL.md

_Part of the page did not fit — see the HTML version._

---
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
