skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
bagisto/agent-skills95 installs

bagisto-shop-theme-development

Use when creating or changing a Bagisto storefront theme — a theme package, shop layouts, Blade component overrides, or the Vite asset pipeline for the customer-facing side. Trigger phrases include "shop theme", "storefront theme", "shop layout", "theme package", "vite", "tailwind", "publish views", "custom layout".

How do I install this agent skill?

npx skills add https://github.com/bagisto/agent-skills --skill bagisto-shop-theme-development
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides a standard and secure framework for developing Bagisto storefront themes. It outlines the creation of Laravel packages, asset management via Vite, and the use of Blade components, following established development practices without any malicious patterns.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Shop Theme Development

Overview

Shop theme development in Bagisto involves creating custom storefront themes packaged as Laravel packages. The end result is a self-contained package that can be distributed and maintained independently.

When to Apply

Activate this skill when:

  • Creating custom storefront themes as packages
  • Building theme packages for distribution
  • Working with Vite-powered assets
  • Customizing customer-facing pages
  • Overriding default shop templates

Bagisto Shop Theme Architecture

Core Components

ComponentPurposeLocation
Theme ConfigurationDefines available themesconfig/themes.php
Views PathBlade template filesDefined in theme config
Assets PathCSS, JS, imagesDefined in theme config
Theme MiddlewareResolves active themepackages/Webkul/Shop/src/Http/Middleware/Theme.php
Theme FacadeManages theme operationspackages/Webkul/Theme/src/Themes.php

Key Configuration Properties

// config/themes.php
use Webkul\Theme\Enums\SectionTypeEnum;

'shop-default' => 'default',

'shop' => [
    'default' => [
        'name' => 'Default',
        'assets_path' => 'public/themes/shop/default',
        'views_path' => 'resources/themes/default/views',
        'vite' => [
            'hot_file' => 'shop-default-vite.hot',
            'build_directory' => 'themes/shop/default/build',
            'package_assets_directory' => 'src/Resources/assets',
        ],
        'customize' => [
            'sections' => [
                SectionTypeEnum::IMAGE_CAROUSEL,
                SectionTypeEnum::PRODUCT_CAROUSEL,
                SectionTypeEnum::CATEGORY_CAROUSEL,
                SectionTypeEnum::FOOTER_LINKS,
                SectionTypeEnum::STATIC_CONTENT,
                SectionTypeEnum::SERVICES_CONTENT,
            ],
            'image_cache' => [
                'templates' => [],
                'product_images' => [],
            ],
        ],
    ],
],

customize is the one place a theme registers what it customizes in the storefront; config/themes.php explains each key in Laravel-style comment blocks. Every key under it is optional.

customize.sections: without it the theme offers every core section type in SectionTypeEnum order. A theme's own section types are SectionType classes listed there — see the bagisto-theme-sections skill and UPGRADE.md → Adding sections to a theme.

customize.image_cache.templates: a map of cache/{template}/{path} names to classes with a public applyFilter(), merged over the core imagecache.templates (small, medium, large) for the channels running the theme — the theme overrides a core name or adds a new one, and never edits config/imagecache.php. Webkul\ImageCache\TemplateRegistry resolves them per request host; see UPGRADE.md → Theme Image Cache Templates.

customize.image_cache.product_images opts templates into product image arrays: the product image helper (and every product API, gallery and cart item) always carries small, medium, large and original, plus {name}_image_url only for the names listed there — never every registered template. Admin requests always resolve the core templates (TemplateRegistry::currentTheme() is null under the admin url), and CatalogApiCache keys listings by channel theme.

Reference files — load only what the current task needs

FileLoad when
creating-a-theme.mdScaffolding the theme package and registering it
assets.mdThe Vite pipeline, the build, and the dev-server workflow
layouts.mdShop layouts, Blade components, custom layouts
reference.mdPackage layout, key files, pitfalls, testing

REQUIRED SUB-SKILL: Use bagisto-change-verification before calling any change done.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/bagisto/agent-skills/bagisto-shop-theme-development">View bagisto-shop-theme-development on skillZs</a>