marketplace-add-xmc

作成者: vercel

Sitecore MarketplaceアプリにXM Cloud API統合を追加します。ユーザーがサイト、ページ、オーサリング、コンテンツ転送、検索、またはエージェントAPIにアクセスしたい場合に使用します…

npx skills add https://github.com/vercel-labs/sitecore-skills --skill marketplace-add-xmc

Add XM Cloud API Integration

You are helping the user add XM Cloud API integration to their Sitecore Marketplace app.

Prerequisites

The XMC package must be installed. If not:

npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/xmc.json

Step 1: Determine Which API

Ask the user (or infer from $ARGUMENTS) which XMC API they need:

APINamespaceUse For
Sitesxmc.sites.*List/get sites, current site context
Pagesxmc.pages.*List/get pages, current page context
Authoringxmc.authoring.*GraphQL queries/mutations against authoring API
Content Transferxmc.contentTransfer.*Import/export content
Searchxmc.search.*Search content items
Agentxmc.agent.*Invoke XM Cloud agents

Step 2: Choose Client-Side or Server-Side

  • Client-side: Use client.query() / client.mutate() — simpler, works in any architecture
  • Server-side: Use experimental_createXMCClient() — requires Auth0 (full-stack architecture)

Step 3: Implement

See xmc-patterns.md for complete code patterns for each API.

Step 4: Suggest Related Skills

  • Use /marketplace-build-component to build UI for the data
  • Use /marketplace-sdk-reference for detailed type information

Reference Files

vercelのその他のスキル

benchmark-sandbox
vercel
Vercel Sandbox上でvercel-pluginの評価シナリオを実行し、ローカルのWezTermパネルの代わりに使用します。Claude Codeとプラグインがプリインストールされた一時的なマイクロVMをプロビジョニングします…
official
emil-design-eng
vercel
このスキルは、Emil KowalskiのUIポリッシュ、コンポーネントデザイン、アニメーションの決定、そしてソフトウェアを素晴らしいものにする目に見えない細部に関する哲学をエンコードしています。
official
vercel-react-best-practices
vercel
Vercel EngineeringによるReactおよびNext.jsのパフォーマンス最適化ガイドライン。このスキルは、React/Next.jsのコードを記述、レビュー、またはリファクタリングする際に使用すべきものです。
official
vercel-react-best-practices
vercel
Vercel EngineeringによるReactおよびNext.jsのパフォーマンス最適化ガイドライン。このスキルは、React/Next.jsのコードを記述、レビュー、またはリファクタリングする際に使用すべきものです。
official
write-guide
vercel
現実世界のユースケースを段階的な例を通じて教える技術ガイドを作成します。概念は読者が必要とするタイミングでのみ導入されます。
official
release
vercel
Vercelプラグインをリリース — ゲートを実行し、バージョンを上げ、アーティファクトを生成し、コミットしてプッシュします。「リリースして」「出荷して」「バージョンを上げてプッシュして」または「リリースを切って」と依頼されたときに使用します。
official
deepsec
vercel
dev3000からチェックアウトしたVercelプロジェクトに対してDeepSecを実行します。ワンクリックDeepSecセットアップ、プロジェクトコンテキストのブートストラップ、制限付きの初回パス処理などに使用します。
official
backport-pr
vercel
マージされたNext.jsのプルリクエストをcanaryからnext-16-2などの以前のリリースブランチにバックポートします。ユーザーがバックポート、チェリーピック、またはオープンを依頼した場合に使用します…
official