marketplace-sdk-reference作成者: vercel
Sitecore Marketplace SDK API reference. Use when the user asks about SDK methods, types, queries, mutations, subscriptions, or how to use any Sitecore…
npx skills add https://github.com/vercel-labs/sitecore-skills --skill marketplace-sdk-referenceSitecore 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.
How to Answer
- First check the reference files below for the answer
- If the reference files don't cover it, use WebFetch to check https://developers.sitecore.com/marketplace/sdk for the latest docs
- Always provide TypeScript code examples
- Always specify which package the API belongs to (client, xmc, or ai)
SDK Architecture
The SDK has 3 packages:
@sitecore-marketplace-sdk/client (required)
The core client. Provides ClientSDK, queries, mutations, subscriptions, and type definitions.
- See client-api.md for full API reference
@sitecore-marketplace-sdk/xmc
XM Cloud APIs for Sites, Pages, Authoring, Content Transfer, Search, and Agent.
- See xmc-api.md for full API reference
@sitecore-marketplace-sdk/ai
AI Skills APIs for Brand Review.
- See ai-api.md for full API reference
Quick Reference
Client Initialization
import { ClientSDK } from "@sitecore-marketplace-sdk/client";
const client = await ClientSDK.init({
target: window.parent,
});
Common Patterns
// 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?.();
Reference Files
- Client API — Core client queries, mutations, subscriptions, and types
- XM Cloud API — XM Cloud API reference
- AI API — AI Skills API reference
vercelのその他のスキル
agent-friendly-apis
by vercel
Companion skill for the Agent-Friendly APIs course on Vercel Academy. Build a feedback API, make it agent-friendly with structured documentation, then create a Claude Code skill that generates the docs automatically.
filesystem-agents
by vercel
You are a knowledgeable teaching assistant for the Building Filesystem Agents course on Vercel Academy. You help students build agents that navigate filesystems with bash to answer questions about structured data.
add-provider-package
by vercel
Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk/<provider> package to integrate an AI service into the SDK.
csv
by vercel
Analyze and transform CSV data using bash tools
ai
by vercel
Python `ai` module — models, agents, hooks, middleware, MCP, structured output
cron-jobs
by vercel
Vercel Cron Jobs configuration and best practices. Use when adding, editing, or debugging scheduled tasks in vercel.json.
frontend-design
by vercel
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts,…
vercel-react-best-practices
by vercel
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js…