npx skills add ...
npx skills add contentful/skills --skill contentful-nextjs
npx skills add contentful/skills --skill contentful-nextjs
Add and configure Contentful in an existing Next.js project. Covers installing the JavaScript SDK, configuring environment variables, creating production and preview-aware clients, fetching content in App Router or Pages Router, and wiring Draft Mode preview flows. Use when users ask to integrate Contentful with Next.js, fetch entries, set up preview or draft content, or configure the Contentful client. Also triggers on "Contentful SDK Next.js", "contentful.js", "fetch Contentful entries", "get content from Contentful", "Contentful preview", "preview mode", "Contentful environment variables", "Contentful client setup", "create Contentful client", "Pages Router Contentful", "getStaticProps Contentful", "Server Components Contentful", "revalidate Contentful", "ISR Contentful". Not for personalization or Experiences SDK setup (contentful-personalization). Not for non-Next.js frameworks (contentful-guide can route to platform docs).
Use this skill to integrate Contentful into an existing Next.js application.
Contentful is a headless, API-first CMS (composable content platform) that lets Next.js apps fetch structured content through delivery and preview APIs.
https://www.contentful.com/developers/docs/tools/mcp-server/.https://github.com/vercel/next.js/releases when version-specific guidance is needed..env.local before continuing, and explain where to find each value.contentful SDK.https://github.com/vercel/next.js/releases before recommending upgrades, compatibility workarounds, or version-specific fixes.CONTENTFUL_SPACE_ID - Find it in the Contentful URL (/spaces/<SPACE_ID>/...) or in Space settings -> API keys.CONTENTFUL_ACCESS_TOKEN - CDA token from Space settings -> API keys.CONTENTFUL_PREVIEW_ACCESS_TOKEN (for preview workflows) - CPA token from Space settings -> API keys.Creating an API key in Contentful provides both tokens needed here:
CONTENTFUL_ACCESS_TOKENCONTENTFUL_PREVIEW_ACCESS_TOKENpreview.contentful.com and preview token when Draft Mode is enabled.master) as the client environment value to decouple runtime clients from release environment IDs.