From shopware-frontends
Der @shopware/api-client für headless Shopware-Frontends: createAPIClient, invoke(operation), Store-API-Aufrufe, Context-Token-Handling, Request-Hooks, Admin-Client-Variante. Trigger: "@shopware/api-client", "createAPIClient", "invoke api-client", "store-api client js", "apiClient.invoke", "frontends api client". Shopware Frontends.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopware-frontends:sw-api-client-jsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Typisierter Client gegen die **Store API**. `createAPIClient` erzeugt die Instanz, `invoke` ruft eine typisierte
Typisierter Client gegen die Store API. createAPIClient erzeugt die Instanz, invoke ruft eine typisierte
Operation auf.
import { createAPIClient } from '@shopware/api-client';
import type { operations } from '#shopware'; // generierte Typen (sw-api-gen-types)
const apiClient = createAPIClient<operations>({
baseURL: 'https://shop.example.com/store-api',
accessToken: import.meta.env.SHOPWARE_ACCESS_TOKEN, // sw-access-key
});
const { data } = await apiClient.invoke('readProduct post /product', { body: { limit: 10 } });
Der Client verwaltet den sw-context-token automatisch (Warenkorb/Login-State, sw-frontends-session-context).
Request-/Response-Hooks (apiClient.hook) für Token-Persistenz/Fehler. Typen kommen aus @shopware/api-gen.
Für reine API-Fakten (Endpunkte/Header) → Plugin shopware-api.
→ Vollständige Referenz: references/deep/api-client-reference.md
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-frontends