Shopware Composable Frontends logo

Shopware Composable Frontends

Community
alpham8
shopware-composable-frontends

Use when building a headless Shopware 6 frontend with Composable Frontends — architecture, how it differs from the classic Twig storefront, CMS component resolution, and known gotchas. Triggers on Nuxt or Vue headless storefronts, shopware-frontends packages, or Store API driven frontends.

Overview

Publisheralpham8
Repositoryagentic-webdev
Skill nameshopware-composable-frontends
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 Composable Frontends 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-composable-frontends
  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-composable-frontends .claude/skills/shopware-composable-frontends
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Shopware Composable Frontends 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 Composable Frontends 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 Composable Frontends 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.

Shopware — Composable Frontends (Headless)

See the shopware skill for the map of Shopware skills.

Shopware Composable Frontends (Headless)

Headless Vue 3 + Nuxt storefront that communicates exclusively via the Store API. Successor to the archived shopware-pwa (Vue Storefront). Fully replaces the classic Twig-based Storefront.

shopware-pwa is archived (Oct 2024). All new headless work uses Shopware Composable Frontends (@shopware/* packages).

Architecture

PackagenpmPurpose
API Client@shopware/api-clientTyped Store API abstraction, auth/context-token management
Composables@shopware/composablesVue 3 composables: useProduct, useCart, useListing, useCustomer, etc.
CMS Base Layer@shopware/cms-base-layerVue components for all default CMS sections/blocks/elements
Helpers@shopware/helpersPrice formatting, translations, URL handling
Nuxt Module@shopware/nuxt-moduleWires up API client + composables + context for Nuxt
API Gen CLI@shopware/api-genGenerates TypeScript types from your Shopware instance's API schema

Tech stack: Vue 3 + Nuxt 4 + TypeScript + UnoCSS/Tailwind. SSR by default.

vs. Classic Storefront (Twig)

AspectClassic StorefrontComposable Frontends
RenderingPHP/Twig (server)Vue/Nuxt (Node.js SSR)
ExtensionTwig blocks, PHP eventsVue components, Nuxt layers
DeploymentSame process as ShopwareSeparate Node.js application
CMS customizationPHP DataResolver + Twig templateVue component (naming convention)
Plugin effectsSubscribers, decorators, TwigNo effect — Store API only
StylingSCSS + Shopware theme systemFree choice (Tailwind, UnoCSS, etc.)

CMS Component Resolution

The Store API returns a nested CMS tree. Each node's type is converted to a PascalCase Vue component:

CMS type "image-text" → component CmsBlockImageText
CMS type "product-listing" → component CmsElementProductListing

Custom CMS blocks from backend plugins have no Vue implementation by default — you must create them manually.

Composable Frontends Gotchas

  1. Sales Channel type must be "Storefront" — Do NOT use the "Headless" type. The Headless type does not generate SEO URLs. This is counterintuitive but required for proper URL resolution.

  2. devStorefrontUrl for local dev — Customer registration requires a storefrontUrl matching a domain in Admin > Sales Channel > Domains. Set in nuxt.config.ts:

    typescript
    shopware: {
        devStorefrontUrl: 'https://your-production-domain.com',
    }

    Or via env: NUXT_PUBLIC_SHOPWARE_DEV_STOREFRONT_URL.

  3. Store API access token is public — The token appears in client-side code. Only data visible on a normal storefront should be exposed. Use a Vite proxy for production to hide the backend URL:

    typescript
    vite: {
        server: {
            proxy: {
                '/store-api': {
                    target: 'https://your-shopware-backend.com',
                    changeOrigin: true,
                    secure: false,
                },
            },
        },
    }
  4. SSR + DDEV self-signed certs — SSR causes 500 errors because Node.js rejects self-signed SSL certificates. Workaround (dev only):

    dotenv
    NODE_TLS_REJECT_UNAUTHORIZED=0
  5. CORS with local frontend — Frontend at localhost:3000 is cross-origin to the Shopware backend. Fix with server-side proxy (see above) or set Access-Control-Allow-Origin on the backend.

  6. Custom CMS blocks not rendered — Only default Shopware CMS blocks have Vue implementations in @shopware/cms-base-layer. Plugin-added blocks must be manually implemented as Vue components following the CmsBlock<PascalCaseType> / CmsElement<PascalCaseType> naming convention.

  7. Missing createShopwareContext — Occurs when @shopware/nuxt-module is installed but the composables layer is not extended. Fix:

    typescript
    // nuxt.config.ts
    extends: ['@shopware/composables/nuxt-layer'],
  8. Type generation recommended — Default types may not match your instance's custom entities. Run @shopware/api-gen against your Shopware instance for accurate TypeScript types.

  9. Demo Store Template is deprecated — Use the Vue Starter Template with Nuxt layers pattern instead.

  10. No automated migration from shopware-pwa — Package names changed (@shopware-pwa/* → @shopware/*), composable API signatures differ, Vue 2→3 and Nuxt 2→4 migration required. Effectively a frontend rewrite.

  11. Routing via useNavigationSearch — Uses Shopware's SeoUrl system. A catch-all route resolves the path to one of three types: frontend.detail.page (product), frontend.navigation.page (category), frontend.landing.page (landing page).

  12. API Client hooks — Use onContextChanged, onResponseError, onSuccessResponse for global request/response handling. The client manages the sw-context-token cookie automatically.

Frequently asked questions

What does the Shopware Composable Frontends AI skill do?

Use when building a headless Shopware 6 frontend with Composable Frontends — architecture, how it differs from the classic Twig storefront, CMS component resolution, and known gotchas. Triggers on Nuxt or Vue headless storefronts, shopware-frontends packages, or Store API driven frontends.

Why use Shopware Composable Frontends on TypingMind?

Because you install it once and use it with any model. Shopware Composable Frontends 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 Composable Frontends in TypingMind?

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

Which AI models can use Shopware Composable Frontends?

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 Composable Frontends?

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

Is the Shopware Composable Frontends 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 👇