breeze-theme
Skill4 starsChanged 57 days agoMITView on GitHub
Scaffold a Swissup Breeze (Breezefront) child theme: theme.xml with a Swissup/breeze-* parent, a Breeze-only layout handle, and web/css/breeze/_default.less overrides. Use for a new Breeze child or custom theme. Detects Breeze via magento2-tools:context (theme.breeze) and refuses when absent. Sibling to magento2-tools:frontend (generic Luma/Hyva/custom themes); this is Breeze-specific. Adapt a module: magento2-tools:breeze-adapt; check compatibility: magento2-tools:breeze-compat.
In this repository35 other files it gives its agents.
- a11y-auditSkill
- admin-formSkill
- admin-listingSkill
- auditSkill
- breeze-adaptSkill
- breeze-compatSkill
- cli-commandSkill
- contextSkill
- data-migrationSkill
- debugSkill
- deploySkill
- docsSkill
- eav-attributeSkill
- extension-pointSkill
- featureSkill
- fixSkill
- frontendSkill
- 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
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Append-safe: Never overwrite an existing theme.xml / registration.php.
- Distinctive: line 56
Ask (offer detected defaults):
- Very specific: line 66
If bin/magento is available AND the user opts in, prefer the Breeze generator and then layer the templated overrides on top:
- Very specific: line 84
Apply the shared module-hygiene baseline (required): After generating the theme's PHP files, run …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Magento 2 Breeze Child Theme
Scaffolds a Swissup Breeze child theme. Breeze is a
high-performance frontend framework that replaces RequireJS/Knockout/jQuery with a Cash-based
stack; a Breeze child theme inherits one of the Swissup Breeze parent themes and overrides assets
through the Breeze-specific web/css/breeze/ directory.
Core Rules
- Breeze-required. Resolve
contextand readtheme.breeze.installed. If it isfalse, do NOT scaffold — print the install path and stop:composer require swissup/breeze-evolution && \ bin/magento setup:upgrade --safe-mode=1 && \ bin/magento marketplace:package:install swissup/breeze-evolution - One theme per invocation. This skill produces exactly one child theme.
- Append-safe. Never overwrite an existing
theme.xml/registration.php; if the target theme directory already exists, stop and report rather than clobber. - Parent is a Breeze theme. The
<parent>isSwissup/breeze-blank,Swissup/breeze-evolution, orSwissup/breeze-enterprise— default to the detected installed parent (theme.breeze.parentor the matchedtheme.breeze.packages), else ask. - Breeze overrides live in
web/css/breeze/. Storefront CSS goes inweb/css/breeze/_default.less(auto-included by Breeze on every page) and uses the@criticalguard.web/css/source/_extend.lessremains the Luma-side hook for any blank/luma fallback. - Coding style. Any generated PHP follows PER-CS 3.0 with the Magento 2 coding standard taking
precedence;
--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.breeze (installed / active / parent / packages) and
php_constraint / framework_constraint. Enforce the Breeze-required rule above.
Phase 1 — Inputs
Ask (offer detected defaults):
- Vendor (PascalCase, e.g.
Acme) — default{ctx.vendor}. - Theme name (e.g.
BreezeCustom). - Parent theme:
breeze-blank|breeze-evolution|breeze-enterprise— default = detected. - Title (human-readable, shown in admin).
Phase 2 — Generate
Target: {ctx.magento_root}/app/design/frontend/{Vendor}/{Theme}/.
If bin/magento is available AND the user opts in, prefer the Breeze generator and then layer the
templated overrides on top:
{ctx.magento_cli} breeze:theme:create {vendor_lower}/{theme_lower} --parent=Swissup/breeze-{parent}Otherwise scaffold manually from templates:
registration.php(fromtemplates/theme-registration.php)theme.xml(templates/theme.xml;<parent>Swissup/breeze-{parent}</parent>)composer.json(templates/theme-composer.json)web/css/breeze/_default.less(templates/breeze_default.less)web/css/source/_extend.less(templates/_extend.less)Magento_Theme/layout/breeze_default.xml(templates/breeze_default-layout.xml)
Phase 3 — Verify
xmllint --nooutontheme.xmland the layout file.php -lonregistration.php.- Confirm the parent theme code matches an installed
theme.breeze.packagesentry. - Apply the shared module-hygiene baseline (required). After generating the theme's PHP
files, run
${CLAUDE_PLUGIN_ROOT}/skills/context/scripts/add-license-headers.sh {ctx.magento_root}/app/design/frontend/{Vendor}/{Theme} {Vendor}to stamp the standard copyright header onto every new.php(e.g.registration.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
Files created + activation:
{ctx.magento_cli} setup:upgrade
{ctx.magento_cli} setup:static-content:deploy -fThen set the theme active in Content → Design → Configuration (per store view) or via
config:set design/theme/theme_id.
Inputs
/breeze-theme [--vendor=Acme] [--name=BreezeCustom] [--parent=breeze-evolution]Outputs
A registered Breeze child theme under {ctx.magento_root}/app/design/frontend/{Vendor}/{Theme}/.
Reference Files
references/breeze-theme-patterns.md— directory layout, parent choice,@criticalLESS guard,web/css/breeze/vsweb/css/source/and activation.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/breeze_default.lesstemplates/_extend.lesstemplates/breeze_default-layout.xml
Acceptance Criteria
- The theme registers under
app/design/frontend/{Vendor}/{Theme}/with aSwissup/breeze-*parent. theme.xmland the layout file passxmllint --noout;registration.phppassesphp -l.web/css/breeze/_default.lessexists and uses the@criticalguard.- The skill refuses (with the install command) when
theme.breeze.installedisfalse.
Related Skills
| Phase | Skill |
| 0 | context |
| (sibling) | frontend for non-Breeze themes/components |
| (next) | breeze-adapt to adapt modules to the theme |
| (check) | breeze-compat to verify a module's Breeze compatibility |
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.

