Shopware Deploymentのロゴ

Shopware Deployment

コミュニティ
alpham8
shopware-deployment

Shopwareプラグインのコードの配置場所やインストール方法を決めるときに使います。custom/static-pluginsをComposer path repositoryとして使う方法、Shopware StoreをComposer repositoryとして使う方法、パートナー向けワイルドカードテスト環境を扱います。Composer path repository、store.shopware.comのrequire、プロジェクト内のプラグイン配置に関する質問で起動します。

Add to TypingMind

概要

公開者alpham8
リポジトリagentic-webdev
スキル名shopware-deployment
スター
4
フォーク
0
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    alpham8がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Shopware Deployment」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/alpham8/agentic-webdev/tree/master/skills/shopware-deployment
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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-deployment .claude/skills/shopware-deployment
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでShopware Deploymentを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にShopware Deploymentを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Shopware Deploymentは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Shopware 6 — Plugin Deployment Patterns

See the shopware skill for the map of Shopware skills.

Plugin Deployment Patterns

custom/static-plugins/ for project-specific code:

For larger Shopware projects, client-specific plugins and themes that are not published to the Shopware Store are placed in custom/static-plugins/ instead of custom/plugins/. This directory is symlinked into vendor/ via Composer's path repository type:

json
{
    "repositories": [
        { "type": "path", "url": "custom/static-plugins/MyPlugin" }
    ],
    "require": {
        "vendor/my-plugin": "*"
    }
}

Composer creates a symlink vendor/vendor/my-plugin → ../../custom/static-plugins/MyPlugin/. This ensures the plugin is autoloaded via Composer's classloader and follows the same dependency resolution as Store plugins, while keeping project-specific code clearly separated and version-controlled in the project repository.

Shopware Store as Composer repository:

The Shopware Plugin Store can be added as a Composer repository to install Store plugins via composer require instead of manual upload:

json
{
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.shopware.com"
        }
    ]
}

Store plugins are then installed with: composer require store.shopware.com/pluginname.

Shopware Partner wildcard environments:

Shopware Partners can set up wildcard test environments. These allow testing any Store plugin before purchasing, so agencies can evaluate plugins for clients without incurring costs upfront. The wildcard license covers all plugins on the test domain.

Plugin base class (src/SwagExample.php):

php
namespace Swag\Example;

use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;

class SwagExample extends Plugin
{
    public function uninstall(UninstallContext $context): void
    {
        parent::uninstall($context);

        if ($context->keepUserData()) {
            return;
        }

        /** @var Connection $connection */
        $connection = $this->container->get(Connection::class);

        // Check existence before dropping (idempotency)
        $columns = $connection->fetchAllAssociative(
            'SHOW COLUMNS FROM `my_table` LIKE :col',
            ['col' => 'my_column']
        );

        if (count($columns) === 0) {
            return;
        }

        $connection->executeStatement(
            'ALTER TABLE `my_table` DROP FOREIGN KEY `fk.my_table.my_column`, DROP COLUMN `my_column`'
        );
    }
}

Always check keepUserData() before touching the database in uninstall(). Drop FK constraints before columns.

composer.json (complete recommended structure):

json
{
    "name": "vendor/plugin-name",
    "description": "Short description.",
    "version": "1.0.0",
    "type": "shopware-platform-plugin",
    "license": "MIT",
    "authors": [
        { "name": "Developer Name", "email": "dev@example.com", "role": "Developer" },
        { "name": "Company GmbH", "email": "info@example.com", "homepage": "https://example.com/", "role": "Manufacturer" }
    ],
    "require": {
        "shopware/core": ">=6.6.0 <6.8.0",
        "shopware/administration": ">=6.6.0 <6.8.0"
    },
    "extra": {
        "shopware-plugin-class": "Vendor\\PluginName\\PluginName",
        "manufacturerLink": { "de-DE": "https://example.com/", "en-GB": "https://example.com/" },
        "supportLink":      { "de-DE": "https://example.com/kontakt/", "en-GB": "https://example.com/contact/" },
        "label":       { "de-DE": "Plugin Name DE", "en-GB": "Plugin Name EN" },
        "description": { "de-DE": "Beschreibung DE", "en-GB": "Description EN" }
    },
    "autoload": {
        "psr-4": { "Vendor\\PluginName\\": "src/" }
    }
}

Critical: manufacturerLink and supportLink must be locale-keyed objects, not plain strings. PluginService::getTranslations() iterates all four extra keys with foreach — a plain string causes a fatal error on plugin:refresh.

Admin dependency: Always require shopware/administration (same version range) for plugins that add or override admin components.

Plugin icon: Place a 128×128 PNG at src/Resources/config/plugin.png. Shopware stores it as a blob in plugin.icon on plugin:refresh.

Scaffold with: bin/console plugin:create SwagExample


よくある質問

AIスキル「Shopware Deployment」では何ができますか?

Shopwareプラグインのコードの配置場所やインストール方法を決めるときに使います。custom/static-pluginsをComposer path repositoryとして使う方法、Shopware StoreをComposer repositoryとして使う方法、パートナー向けワイルドカードテスト環境を扱います。Composer path repository、store.shopware.comのrequire、プロジェクト内のプラグイン配置に関する質問で起動します。

TypingMindでShopware Deploymentを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Shopware Deploymentはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにShopware Deploymentをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/alpham8/agentic-webdev/tree/master/skills/shopware-deploymentを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Shopware Deploymentを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Shopware Deploymentで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもShopware Deploymentを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Shopware Deployment」は無料ですか?

alpham8がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇