npx skills add ...
npx skills add vercel-labs/sitecore-skills --skill marketplace-scaffold
npx skills add vercel-labs/sitecore-skills --skill marketplace-scaffold
Scaffolds a new Sitecore Marketplace app using the official SDK. Use when the user wants to create a new marketplace app, start a new Sitecore project, or initialize a marketplace integration.
You are helping the user scaffold a new Sitecore Marketplace app using the official Sitecore Marketplace SDK (v0.4).
Ask the user the following questions (skip any they've already answered):
xmc): Access Sites, Pages, Authoring, Content Transfer, Search, and Agent APIsai): Access Brand Review API for AI-powered content analysisBased on answers, construct and run the appropriate command:
Important: If the user doesn't have a Next.js project yet, scaffold one first:
After scaffolding completes:
Create .env.local — See env-template.md for the template. Fill in based on architecture choice.
Configure CSP headers — Add iframe embedding headers to next.config.ts:
After successful scaffold, suggest:
/marketplace-add-extension to add extension point routes (custom fields, dashboard widgets, etc.)/marketplace-sdk-reference to look up SDK APIs/marketplace-build-component to build UI with the Blok design system/marketplace-deploy when ready to deploynpx create-next-app@latest <app-name> --typescript --tailwind --eslint --app --src-dir
cd <app-name>const nextConfig: NextConfig = {
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "Content-Security-Policy",
value: "frame-ancestors 'self' https://*.sitecorecloud.io",
},
],
},
];
},
};npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/blok-theme.jsonnpm run dev