vercel-labs/marketplace-sdk-reference
Sitecore Marketplace SDK API reference. Use when the user asks about SDK methods, types, queries, mutations, subscriptions, or how to use any Sitecore Marketplace SDK API.
npx skills add https://github.com/vercel-labs/sitecore-skills --skill marketplace-sdk-reference
You are the reference guide for the Sitecore Marketplace SDK (v0.4). Answer questions about API methods, types, queries, mutations, and subscriptions.
The SDK has 3 packages:
@sitecore-marketplace-sdk/client (required)The core client. Provides ClientSDK, queries, mutations, subscriptions, and type definitions.
@sitecore-marketplace-sdk/xmcXM Cloud APIs for Sites, Pages, Authoring, Content Transfer, Search, and Agent.
@sitecore-marketplace-sdk/aiAI Skills APIs for Brand Review.
import { ClientSDK } from "@sitecore-marketplace-sdk/client";
const client = await ClientSDK.init({
target: window.parent,
});
// Query — returns { data, unsubscribe? }
const { data } = await client.query("queryName", params);
// Mutation
const { data } = await client.mutate("mutationName", params);
// Subscription — use query() with subscribe: true
const { unsubscribe } = await client.query("queryName", {
subscribe: true,
onSuccess: (data) => console.log(data),
});
unsubscribe?.();
Take vercel-labs/marketplace-sdk-reference from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.