Shopware Utils logo

Shopware Utils

Community
alpham8
shopware-utils

Use when working with the dustin/shopware-utils library in Shopware 6 plugins — creating Plugin or AdditionalBundle classes, registering bundles, themes, migrations, configuration objects, or auto-installing resources (custom fields, document types, payment methods, mail templates).

Overview

Publisheralpham8
Repositoryagentic-webdev
Skill nameshopware-utils
Stars
4
Forks
0
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by alpham8 on GitHub. Read the source before you install it.

Installation

Install the Shopware Utils AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/alpham8/agentic-webdev/tree/master/skills/shopware-utils
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alpham8/agentic-webdev.git /tmp/agentic-webdev
mkdir -p .claude/skills
cp -r /tmp/agentic-webdev/skills/shopware-utils .claude/skills/shopware-utils
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Shopware Utils in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Shopware Utils on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Shopware Utils is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

dustin/shopware-utils

Library for structuring large Shopware 6 plugins with sub-bundles, auto-resource installation, and config-as-service.

Docs: https://dustinsimon.gitbook.io/shopware-utils

Installation

bash
composer require dustin/shopware-utils

Plugin & AdditionalBundle

Use Dustin\ShopwareUtils\Core\Framework\Plugin instead of the Shopware base class. Sub-features go into AdditionalBundle classes — same lifecycle hooks as a plugin, but invisible in admin and always activated with the main plugin.

Plugin (main class)

php
use Dustin\ShopwareUtils\Core\Framework\Plugin;

class MyPlugin extends Plugin
{
    protected function createAdditionalBundles(): array
    {
        return [
            new MyFeatureBundle(),
            new ShopwareUtils(),   // always include
        ];
    }

    public function getTablesToRemove(): array
    {
        return ['my_table', 'my_other_table'];  // dropped on uninstall
    }
}

AdditionalBundle

php
use Dustin\ShopwareUtils\Core\Framework\AdditionalBundle;

class MyFeatureBundle extends AdditionalBundle
{
    // install(), activate(), update() available — same signature as Plugin
    public function getTablesToRemove(): array
    {
        return ['feature_table'];
    }
}

Rules:

  • Bundle subdirectory name must match the class name (e.g. MyFeatureBundle/)
  • Bundles share the parent plugin's install/activate lifecycle
  • Not visible as separate plugins in Shopware admin

Themes

Implement ThemeInterface on Plugin or AdditionalBundle. One theme per bundle max.

php
use Dustin\ShopwareUtils\Core\Framework\Plugin;          // or AdditionalBundle
use Shopware\Storefront\Framework\ThemeInterface;

class MyThemePlugin extends Plugin implements ThemeInterface {}

Bundle directory name must equal class name — required for theme asset resolution.


Migrations

Migrations live in Migration/ of the plugin or bundle. Create via console:

bash
# For a plugin
bin/console database:create-migration --plugin MyPlugin --name MyMigration

# For an AdditionalBundle
bin/console database:create-migration --bundle MyFeatureBundle --name MyMigration

Tables listed in getTablesToRemove() are automatically deleted on uninstall (DELETE → DROP in order).


Configuration (config.xml as service)

All XML files in Resources/config/ — except services.xml and routes.xml — are treated as Shopware plugin config files and auto-installed with their default values. Values are deleted on uninstall.

Use config as injected service:

Resources/config/services.yaml:

yaml
services:
    MyPlugin\Config\MyConfig:
        factory: ['@Dustin\ShopwareUtils\Core\System\SystemConfiguration\ConfigurationFactory', 'create']
        arguments:
            - 'MyPlugin'          # plugin name / config scope
            - !tagged_iterator my_plugin.config

Config class:

php
use Dustin\ShopwareUtils\Core\System\SystemConfiguration\Configuration;

class MyConfig extends Configuration
{
    public function getMyValue(): string
    {
        return $this->get('MyPlugin.config.myValue');
    }
}

Auto-installing Resources

All resources are installed/updated via bin/console plugin:update <PluginName>.

Custom Fields — Resources/custom_fields/<name>.json

json
{
    "name": "my_custom_field_set",
    "editable": false,
    "label": { "de-DE": "Mein Set", "en-GB": "My set" },
    "translated": true,
    "position": 1,
    "customFields": {
        "my_field": {
            "type": "text",
            "label": { "de-DE": "Feld", "en-GB": "Field" }
        }
    },
    "relations": ["product", "category"]
}

Installed, updated, and removed on uninstall automatically.

Document Types — Resources/document_types/<technicalName>.json

json
{
    "technicalName": "my_document_type",
    "fileNamePrefix": "doc_",
    "translations": { "de-DE": { "name": "Mein Typ" }, "en-GB": { "name": "My type" } }
}

Not uninstalled if in use.

Payment Methods — Resources/payment_methods/<technicalName>.json

json
{
    "technicalName": "my_payment",
    "handlerIdentifier": "My\\Payment\\Handler",
    "active": true,
    "media": "logo.png",
    "translations": { "de-DE": { "name": "Zahlung" }, "en-GB": { "name": "Payment" } }
}

position, active, name, description — installed only, not updated (editable in admin).

Mail Template Types — Resources/mail_template_types/<technicalName>.json

json
{
    "technicalName": "my_mail_type",
    "availableEntities": { "customer": "customer" },
    "translations": { "de-DE": { "name": "Mein Typ" }, "en-GB": { "name": "My type" } }
}

Not uninstalled if in use.

Mail Templates — Resources/mail_templates/ (5 files per template)

<name>.json
<name>.de-DE.twig          ← plain text
<name>.de-DE.html.twig     ← HTML
<name>.en-GB.twig
<name>.en-GB.html.twig
json
{
    "id": "befd8c25231344929c2648d90e986904",
    "name": "my_template",
    "type": "my_mail_template_type",
    "translations": {
        "de-DE": { "subject": "Betreff", "senderName": "Shop" },
        "en-GB": { "subject": "Subject", "senderName": "Shop" }
    }
}

Installed only — never updated or uninstalled (user-editable in admin).


Resource Directory Overview

<BundleOrPlugin>/
└── Resources/
    ├── config/
    │   ├── services.yaml
    │   └── my_config.xml          ← auto-installed plugin config
    ├── custom_fields/
    │   └── my_set.json
    ├── document_types/
    │   └── my_type.json
    ├── payment_methods/
    │   └── my_payment.json
    ├── mail_template_types/
    │   └── my_type.json
    └── mail_templates/
        ├── my_template.json
        ├── my_template.de-DE.twig
        ├── my_template.de-DE.html.twig
        ├── my_template.en-GB.twig
        └── my_template.en-GB.html.twig

Frequently asked questions

What does the Shopware Utils AI skill do?

Use when working with the dustin/shopware-utils library in Shopware 6 plugins — creating Plugin or AdditionalBundle classes, registering bundles, themes, migrations, configuration objects, or auto-installing resources (custom fields, document types, payment methods, mail templates).

Why use Shopware Utils on TypingMind?

Because you install it once and use it with any model. Shopware Utils is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Shopware Utils in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/alpham8/agentic-webdev/tree/master/skills/shopware-utils. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Shopware Utils?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Shopware Utils?

As many as you like. As long as a model supports skills, you can use Shopware Utils with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Shopware Utils AI skill free?

It is published on GitHub by alpham8. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇