frontend
Skill4 starsChanged 57 days agoMITView on GitHub
Frontend scaffolding for Magento 2: themes, RequireJS modules, Knockout components, LESS/CSS, transactional email templates, static asset wiring. Use to add frontend behaviour or a theme. Detects Luma, Hyva, or a custom theme and generates matching scaffolds. For Swissup Breeze stores (magento2-tools:context theme.breeze) defer theme creation to magento2-tools:breeze-theme and widget/JS work to magento2-tools:breeze-adapt. For a CMS widget (etc/widget.xml) use magento2-tools:widget.
37 other projects use a version of this.
Adopted by
Most recently taken up by
- Mazalucas/El-DT-Lightweight-Armytheir own version, first seen Oct 5, 2026
- Univers42/claude-deal-with-the-deviltheir own version, first seen Oct 4, 2026
- futhr/futhrtheir own version, first seen Oct 1, 2026
- theopenco/llmgatewaytheir own version, first seen Oct 1, 2026
- speakeasy-api/gramtheir own version, first seen Oct 1, 2026
- notque/vexjoy-agenttheir own version, first seen Sep 26, 2026
Used with
Projects with it also use backend, programming and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xiaobei930Skillbackend
Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or microservices.
Also in 10 projects that use this
Xia-AtaraxiaSkillprogramming
Guides correctness-first, type-strict Python and TypeScript implementation. Use when asked to write a `.py` or `.ts` file, scaffold a Python/TypeScript project, add strict types, assess an implementation diff for correctness or type holes, or fix a reproducible defect. Not for smell-only assessment or behavior-preserving restructuring — use refactor; not for suite-level test architecture — use testing.
Also in 3 projects that use this
iankikuSkilldata
(forwward) Designs analytics systems, writes SQL queries, plans event tracking, and builds dashboards for product and user metrics. Triggers on SQL, analytics, dashboards, tracking, data pipelines, or user behavior analysis.
Also in 3 projects that use this
GoogleSkillquality
Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.
Also in 3 projects that use this
AnthropicSkillarchitecture
Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.
Also in 6 projects that use this
xiaobei930Skilldatabase
Database design, query optimization, migrations, and indexing. Use when designing schemas, writing queries, or managing migrations.
Also in 3 projects that use this
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- theopenco/llmgateway★ 1.7ksame name
- notque/vexjoy-agent★ 424same name
- speakeasy-api/gram★ 271same name
- telagod/code-abyss★ 242same name
- ThePrimeagen/skills★ 234same name
- jh941213/my-cc-harness★ 126same name
- xiaobei930/cc-best★ 48same name
- neuron-one/GODMODE★ 33same name
- vechain/vechain-ai-skills★ 15same name
- DojoCodingLabs/code-sensei★ 14same name
27 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- a11y-auditSkill
- admin-formSkill
- admin-listingSkill
- auditSkill
- breeze-adaptSkill
- breeze-compatSkill
- breeze-themeSkill
- cli-commandSkill
- contextSkill
- data-migrationSkill
- debugSkill
- deploySkill
- docsSkill
- eav-attributeSkill
- extension-pointSkill
- featureSkill
- fixSkill
- graphqlSkill
- i18nSkill
- indexerSkill
- lintSkill
- marketplaceSkill
- message-queueSkill
- module-createSkill
- perf-auditSkill
- releaseSkill
- remediateSkill
- reviewSkill
- securitySkill
- system-configSkill
- test-generateSkill
- triageSkill
- upgradeSkill
- webapiSkill
- widgetSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 0 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Append-safe: Never overwrite an existing requirejs-config.js or email_templates.xml — append/merge.
- Very specific: line 57
If the theme is Hyva and the user asks for ko-component, suggest alpine-component instead — Hyva doesn't run Knockout.
- Very specific: line 62
If theme.breeze.active is true (or the user asks for a "Breeze theme" / "Breeze child theme") and the operation is theme → stop and route …
- Very specific: line 67
If theme.breeze.active is true and the operation is requirejs-module or ko-component, note that Breeze does not run RequireJS/Knockout on …
- Very specific: line 72
If theme.breeze.installed is true but active is false, surface that Breeze is installed but not the active theme, and ask which stack the …
- Very specific: line 120
Apply the shared module-hygiene baseline (required): After generating or modifying PHP files, run …
“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Magento 2 Frontend Create
Frontend-specific scaffolding module-create doesn't cover.
Core Rules
- Theme-aware. Detect theme from
context(Luma / Hyva / custom). Hyva installs use Alpine.js + Tailwind, NOT Knockout/RequireJS. - Breeze-aware.
contextemits a separatetheme.breezeobject (installed/active/parent) for Swissup Breeze (Breezefront) stores. Breeze replaces RequireJS/Knockout/jQuery with a Cash-based stack, and a Breeze child theme has a different layout (web/css/breeze/_default.lesswith@criticalguards, aSwissup/breeze-*parent, a Breeze-only layout handle). This skill does NOT scaffold Breeze themes or Breeze widgets — it routes them: theme work →breeze-theme, widget/JS adapter work →breeze-adapt. See Phase 1. - One operation per invocation. Each call generates ONE of: theme, RequireJS module, KO/Alpine component, LESS scaffold, email template, static asset.
- Layout-driven. Generated assets include the layout XML to activate them, not just the source files.
- Append-safe. Never overwrite an existing
requirejs-config.jsoremail_templates.xml— append/merge. - Coding style. Any generated PHP (blocks, ViewModels) follows PER-CS 3.0 as the baseline,
with the Magento 2 coding standard taking precedence on any conflict;
--standard=Magento2PHPCS is the gate. Seecontext/references/php-coding-style.md. - Source of truth. Generate from templates → shared references → baked-in Magento 2 knowledge
→ official Magento/Adobe docs (live-fetched only when uncertain). Do NOT read, grep, or "study"
other modules under
app/code/vendor/*/Magento core to infer conventions, entity shapes, naming, or wiring. Narrow exceptions: the target module/class of this operation, and the specific contract of a module this code explicitly depends on. Affirm sources in the final report. Seecontext/references/source-of-truth.md.
Workflow
Phase 0 — Context Resolution
Invoke context. Capture theme detection result.
Phase 1 — Operation Plan
Ask:
- Operation: theme | requirejs-module | ko-component | alpine-component | email-template | static-asset
- Parent theme (for theme operation)
- Module to host (for non-theme operations)
If the theme is Hyva and the user asks for ko-component, suggest alpine-component
instead — Hyva doesn't run Knockout.
Breeze routing (check theme.breeze from Phase 0):
- If
theme.breeze.activeis true (or the user asks for a "Breeze theme" / "Breeze child theme") and the operation istheme→ stop and route tobreeze-theme. A Breeze child theme is not a Luma/Hyva scaffold; generating one here would produce the wrong structure (Lumaweb/css/source/instead of Breezeweb/css/breeze/with@criticalguards, and a Luma parent instead ofSwissup/breeze-*). - If
theme.breeze.activeis true and the operation isrequirejs-moduleorko-component, note that Breeze does not run RequireJS/Knockout on Breeze-enhanced pages. Generate the Luma-fallback scaffold if the user still wants it, but suggestbreeze-adaptto add the matching Cash$.widgetadapter (runbreeze-compatfirst to see what needs adapting). - If
theme.breeze.installedis true butactiveis false, surface that Breeze is installed but not the active theme, and ask which stack the user is targeting before scaffolding.
Phase 2 — Generate
Per operation:
Theme
theme.xml,registration.php,composer.json- Parent theme reference
web/css/source/_extend.lessview.xmlMagento_Theme/layout/default.xmlstub
RequireJS module
view/frontend/web/js/{name}.jswith module patternview/frontend/requirejs-config.jsregistration (append-safe)
Knockout component (UI component)
- Component class extending
uiComponent - HTML template
- LESS/CSS sibling
- Layout XML wiring
Alpine component (Hyva)
view/frontend/templates/{name}.phtmlwithx-data,x-show, etc.view/frontend/layout/{handle}.xmlto render the template
Email template
view/frontend/email/{name}.htmletc/email_templates.xmlregistration (append-safe)etc/config.xmldefault path
Static asset
view/frontend/web/css/...orview/frontend/web/images/...- Layout reference
Phase 3 — Verify
xmllint --noouton every XML file.node --checkon every JS file.npm run lintif the project has a JS linter.- Apply the shared module-hygiene baseline (required). After generating or modifying PHP
files, run
${CLAUDE_PLUGIN_ROOT}/skills/context/scripts/add-license-headers.sh <path> {Vendor}— where<path>is the hostapp/code/{Vendor}/{Module}/(or theapp/design/frontend/{Vendor}/{Theme}/theme dir) — to stamp the standard copyright header onto every new.php(idempotent — it skips files that already carry it). When adding acomposer.jsonrequireentry, resolve a bounded constraint via${CLAUDE_PLUGIN_ROOT}/skills/context/scripts/resolve-dep-constraint.sh <vendor/package>— never"*". Seecontext/references/module-hygiene.md.
Phase 4 — Report
Brief: files created + activation commands.
Theme generation requires:
{ctx.magento_cli} setup:upgrade
{ctx.magento_cli} setup:static-content:deploy -fDocs may now be stale. This change modified module code. Run
docs --module={Vendor}_{Module}to refresh the module's README, CHANGELOG, anddocs/*.md(technical reference, guides, and API references as applicable).
Inputs
/frontend <operation> [operation-specific flags]Outputs
Files written under {ctx.magento_root}/app/code/{Vendor}/{Module}/view/frontend/ or
src/app/design/frontend/{Vendor}/{Theme}/.
Reference Files
references/theme-patterns.md— Luma inheritance, Hyva inheritance, custom theme.references/requirejs-patterns.md— module structure, deps, shim.references/ko-component-patterns.md— UI component vs KO-only.references/alpine-patterns.md— Hyva Alpine.js patterns.references/less-css-rules.md—_module.lessconvention, var/mixin scoping.references/email-template-rules.md— Magento-specific variable syntax, fallback paths.references/static-asset-rules.md— publish path, fallback chain.context/references/source-of-truth.md— source-of-truth hierarchy + the no-unrelated-module-scanning rule (allowed reads, live-doc fetch protocol, report affirmation).
Templates
templates/theme.xmltemplates/theme-registration.phptemplates/theme-composer.jsontemplates/theme-view.xmltemplates/requirejs-module.jstemplates/requirejs-config.jstemplates/ko-ui-component.jstemplates/ko-ui-component.htmltemplates/alpine-component.phtmltemplates/email-template.htmltemplates/email_templates.xmltemplates/_extend.less
Theme Awareness
| Detected theme | Default scaffolds |
| Luma | Standard Magento patterns; RequireJS-heavy |
| Hyva | Tailwind/Alpine.js; no KO; AlpineJS components instead |
Breeze (theme.breeze.active) | Cash-based stack; no RequireJS/KO. Route theme → breeze-theme, widgets → breeze-adapt |
| Custom | Ask user; default to Luma unless told otherwise |
Acceptance Criteria
- Theme generation produces a working theme registered in
app/design/frontend/. - RequireJS modules pass
node --check. - KO components render in browser without errors when wired correctly.
- Hyva-detected projects do NOT receive KO scaffolds — Alpine scaffolds instead.
Related Skills
| Phase | Skill |
| 0 | context |
| 1 (Breeze theme) | breeze-theme — scaffold a Swissup Breeze child theme |
| 1 (Breeze widget/JS) | breeze-adapt — build the Breeze Cash adapter; breeze-compat to scope it first |
| (after Phase 3) | review for the host module |
| (caller) | feature Phase 5 (F* tasks) |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

