magento-frontend
Installation
SKILL.md
Magento 2 Frontend Development
Before writing code
Fetch live docs:
- Web-search
site:developer.adobe.com commerce frontend-corefor frontend development guide - Fetch
https://developer.adobe.com/commerce/frontend-core/guide/css/preprocessfor CSS/LESS docs - Web-search
site:developer.adobe.com commerce frontend-core guide layoutsfor layout XML reference - Web-search
site:developer.adobe.com commerce frontend-core guide templatesfor template guide
Layout XML
How Layouts Work
Layout files map to route handles and define the page structure:
- Containers — structural wrappers (header, content, footer)
- Blocks — content-rendering units tied to PHP classes and templates
- Handle naming:
<route>_<controller>_<action>.xml(e.g.,catalog_product_view.xml) default.xml— applies to all pages