
Marketplace Scaffold
- 34 installs
- 3 repo stars
- Updated April 6, 2026
- vercel-labs/sitecore-skills
marketplace-scaffold creates Sitecore Marketplace apps with the official SDK.
About
The marketplace-scaffold skill creates a new Sitecore Marketplace app using Sitecore Marketplace SDK v0.4. It gathers app name, client-side versus full-stack architecture, built-in versus Auth0 authentication, and optional XM Cloud or AI packages. Runs npx shadcn add registry URLs for app-client or app-auth0 plus xmc.json and ai.json combinations. Creates Next.js project first with create-next-app when needed. Post-scaffold steps cover env setup, dev server, and Developer Portal registration reminders. Use when users want a new marketplace app, Sitecore project, or marketplace integration scaffold.
- Interactive scaffold for client-side or Auth0 full-stack apps.
- shadcn registry commands for SDK, XMC, and AI packages.
- create-next-app bootstrap when no Next.js project exists.
- Built-in auth default with Auth0 for server-side SDK needs.
- Post-scaffold env and Developer Portal guidance.
Marketplace Scaffold by the numbers
- 34 all-time installs (skills.sh)
- +1 installs in the week ending Jul 27, 2026 (Skillselion tracking)
- Ranked #97 of 153 .NET & C# skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 27, 2026 (Skillselion catalog sync)
marketplace-scaffold capabilities & compatibility
- Capabilities
- scaffold command matrix and requirements
- Use cases
- frontend · api development
What marketplace-scaffold says it does
Scaffolds a new Sitecore Marketplace app using the official SDK
npx skills add https://github.com/vercel-labs/sitecore-skills --skill marketplace-scaffoldAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 34 |
|---|---|
| repo stars | ★ 3 |
| Security audit | 2 / 3 scanners passed |
| Last updated | April 6, 2026 |
| Repository | vercel-labs/sitecore-skills ↗ |
How do I scaffold a new Sitecore Marketplace app?
Scaffold a new Sitecore Marketplace app with the official SDK via shadcn registry.
Who is it for?
Developers starting Sitecore Marketplace integrations.
Skip if: Skip when extending an existing marketplace app only.
When should I use this skill?
User wants to create or initialize a marketplace app.
What you get
Next.js marketplace app with SDK packages installed.
Files
Scaffold a New Sitecore Marketplace App
You are helping the user scaffold a new Sitecore Marketplace app using the official Sitecore Marketplace SDK (v0.4).
Step 1: Gather Requirements
Ask the user the following questions (skip any they've already answered):
1. App name — What should the app be called? (default: from $ARGUMENTS if provided) 2. Architecture — Client-side only or full-stack?
- Client-side: UI runs entirely in the iframe, communicates via SDK client. Simpler, no server needed.
- Full-stack: Includes Next.js API routes/server actions for server-side SDK access. Required for Auth0, server-side mutations, or proxying external APIs.
3. Authentication — Built-in (default) or Auth0?
- Built-in: Zero-config, SDK handles auth automatically. Sufficient for most apps.
- Auth0: Required for server-side API access, external service integration, or custom auth flows. Requires Auth0 tenant setup.
4. Optional packages — Which additional SDK packages?
- XM Cloud (`xmc`): Access Sites, Pages, Authoring, Content Transfer, Search, and Agent APIs
- AI Skills (`ai`): Access Brand Review API for AI-powered content analysis
Step 2: Run the Scaffold Command
Based on answers, construct and run the appropriate command:
# Client-side only (built-in auth)
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-client.json
# Client-side + XMC
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-client.json https://marketplace-sdk.sitecorecloud.io/r/xmc.json
# Client-side + AI
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-client.json https://marketplace-sdk.sitecorecloud.io/r/ai.json
# Client-side + XMC + AI
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-client.json https://marketplace-sdk.sitecorecloud.io/r/xmc.json https://marketplace-sdk.sitecorecloud.io/r/ai.json
# Full-stack (Auth0) — adds server-side SDK support
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-auth0.json
# Full-stack + XMC
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-auth0.json https://marketplace-sdk.sitecorecloud.io/r/xmc.json
# Full-stack + AI
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-auth0.json https://marketplace-sdk.sitecorecloud.io/r/ai.json
# Full-stack + XMC + AI
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/app-auth0.json https://marketplace-sdk.sitecorecloud.io/r/xmc.json https://marketplace-sdk.sitecorecloud.io/r/ai.jsonImportant: If the user doesn't have a Next.js project yet, scaffold one first:
npx create-next-app@latest <app-name> --typescript --tailwind --eslint --app --src-dir
cd <app-name>Step 3: Post-Scaffold Setup
After scaffolding completes:
1. Create `.env.local` — See env-template.md for the template. Fill in based on architecture choice.
2. Configure CSP headers — Add iframe embedding headers to next.config.ts:
const nextConfig: NextConfig = {
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "Content-Security-Policy",
value: "frame-ancestors 'self' https://*.sitecorecloud.io",
},
],
},
];
},
};3. Install Blok theme (if not already present):
npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/blok-theme.json4. Verify setup — Run the dev server and confirm no errors:
npm run devStep 4: Explain Next Steps
After successful scaffold, suggest:
- Use
/marketplace-add-extensionto add extension point routes (custom fields, dashboard widgets, etc.) - Use
/marketplace-sdk-referenceto look up SDK APIs - Use
/marketplace-build-componentto build UI with the Blok design system - Use
/marketplace-deploywhen ready to deploy
Reference Files
- Architecture Guide — Decision matrix for client-side vs full-stack
- Environment Template — .env.local templates per architecture
Architecture Decision Guide
Client-Side vs Full-Stack
| Factor | Client-Side Only | Full-Stack (Auth0) |
|---|---|---|
| Scaffold URL | app-client.json | app-auth0.json |
| Auth | Built-in (automatic) | Auth0 (requires tenant) |
| Server-side SDK | No | Yes (experimental_createXMCClient, experimental_createAIClient) |
| API Routes | Not needed | Yes (Next.js API routes / Server Actions) |
| External APIs | Direct from client only | Can proxy through server |
| Complexity | Lower | Higher |
| Use when | Simple UI extensions, read-only data, client-side mutations | Need server-side processing, Auth0, external service integration |
Package Selection
| Package | Registry URL | Provides |
|---|---|---|
| Client (required) | app-client.json | ClientSDK.init(), queries, mutations, subscriptions, types |
| XM Cloud | xmc.json | Sites, Pages, Authoring (GraphQL), Content Transfer, Search, Agent APIs |
| AI Skills | ai.json | Brand Review API for AI-powered content analysis |
| Blok Theme | blok-theme.json | Sitecore-branded shadcn components (always install) |
What the Scaffold Creates
Client-side (app-client.json)
lib/sitecore/client.ts— Client initialization withClientSDK.init()lib/sitecore/providers.tsx— React context providers (<SitecoreProvider>)hooks/use-sitecore.ts— React hooks for SDK accessapp/layout.tsxupdates — Wraps app in providers
Full-stack (app-auth0.json)
- Everything from client-side, plus:
lib/sitecore/server.ts— Server-side client factoriesapp/api/auth/[...auth0]/route.ts— Auth0 route handlersmiddleware.ts— Auth0 middleware
XMC (xmc.json)
lib/sitecore/xmc.ts— XMC module registration- Types for all XM Cloud APIs
AI (ai.json)
lib/sitecore/ai.ts— AI module registration- Types for Brand Review API
Environment Variable Templates
Client-Side Only (.env.local)
# Sitecore Marketplace SDK
NEXT_PUBLIC_SITECORE_APP_ID=your-app-id-from-portalFull-Stack with Auth0 (.env.local)
# Sitecore Marketplace SDK
NEXT_PUBLIC_SITECORE_APP_ID=your-app-id-from-portal
# Auth0 Configuration
AUTH0_SECRET=use-openssl-rand-hex-32-to-generate
AUTH0_BASE_URL=http://localhost:3000
AUTH0_ISSUER_BASE_URL=https://your-tenant.auth0.com
AUTH0_CLIENT_ID=your-auth0-client-id
AUTH0_CLIENT_SECRET=your-auth0-client-secret
# Auth0 Sitecore Connection
AUTH0_AUDIENCE=https://api.sitecorecloud.io
AUTH0_SCOPE=openid profile emailHow to Get Values
| Variable | Where to find it |
|---|---|
NEXT_PUBLIC_SITECORE_APP_ID | Sitecore Developer Portal → Your App → Settings |
AUTH0_SECRET | Generate: openssl rand -hex 32 |
AUTH0_BASE_URL | Your app URL (localhost for dev) |
AUTH0_ISSUER_BASE_URL | Auth0 Dashboard → Applications → Your App → Domain |
AUTH0_CLIENT_ID | Auth0 Dashboard → Applications → Your App → Client ID |
AUTH0_CLIENT_SECRET | Auth0 Dashboard → Applications → Your App → Client Secret |
AUTH0_AUDIENCE | Always https://api.sitecorecloud.io for Sitecore |
Related skills
FAQ
What does marketplace-scaffold do?
marketplace-scaffold creates Sitecore Marketplace apps with the official SDK.
When should I use marketplace-scaffold?
User wants to create or initialize a marketplace app.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.