Finish setting up a Storyblok project cloned from the Dotfusion Next.js and Storyblok boilerplate (package name boilerplate-nextjs-storyblok). Use when the developer says "let's finish the install", "finish the setup", "set up this project", or right after cloning the template, AND the repository uses Storyblok. Check package.json first, and for boilerplate-nextjs-agilitycms use finish-the-install-agility instead. Sets up secrets in 1Password, then the Storyblok region and space, brand colors, fonts, and site metadata, then verifies the install and the pipeline.
Ships in dotfusion-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill completes the per-project setup of a repository cloned from the Dotfusion Next.js and Storyblok boilerplate. Work through the steps in order. Ask the developer for the non-secret values you need in one batched set of questions before changing files. Never overwrite a value the developer did not ask you to change.
This skill never receives a secret value. The developer puts values into 1Password and this skill materializes the local file from the committed template with op inject. Asking a developer to paste a token into chat is forbidden by How to manage .env files: chat is logged and is not access-controlled like a secrets manager.
Check that this is the boilerplate before doing anything: package.json name is boilerplate-nextjs-storyblok (or a renamed fork of it) and an .env.sample exists at the root. If it does not look like the boilerplate, stop and tell the developer. If package.json name is boilerplate-nextjs-agilitycms, invoke finish-the-install-agility instead.
Read .env.sample so you know the exact variable names. Then tell the developer to do the following, and wait for them to confirm. Do not ask them to send you any of these values.
.env.sample. For Storyblok that is the server preview token and the public token, both in the Storyblok dashboard under Settings then Access Tokens, plus the preview secret and the webhook secret, which the developer generates as random strings. The same two generated values get pasted back into the space's preview URL and webhook config later, so they must come from 1Password rather than being regenerated.op is installed and signed in: op --version and op whoami both succeed.Then replace each secret line in .env.sample with a 1Password secret reference (op://<vault>/<item>/<field>) and commit it. .env.sample is the committed contract: names and references, never values.
Ask the developer for these in one message. None is a secret, so all are safe to discuss:
us or eu.https://www.example.com).Generate .env.local from the committed template rather than writing values by hand:
op inject -i .env.sample -o .env.local
Then set the one value that is a local-only switch rather than a secret: NEXT_PUBLIC_STORYBLOK_IS_PREVIEW=true for local development. Note that the NEXT_PUBLIC_ prefix makes it a public contract, readable by every visitor in the browser bundle, which is correct here because it is a mode flag and not a credential. See How to manage .env files.
Confirm .env.local is in .gitignore. Never commit it, never print its contents, and never read it back. If the developer prefers not to keep secrets on disk, wrap the dev command instead:
op run --env-file=".env.sample" -- npm run dev
If op inject reports an unresolved reference, a secret is missing from the 1Password environment. Report which one and stop. Do not fill it in from another source.
Run nvm use to select the pinned Node version, then npm install. Do not pass --force or --legacy-peer-deps. If the install reports a peer conflict, stop and report it rather than working around it. A handful of EBADENGINE warnings on lint-staged are harmless if Node is older than the pinned .nvmrc; advise the developer to nvm install the exact version.
Update the color values in src/styles/abstracts/_tokens.scss. Change only the values the developer provided. The CSS custom properties in src/styles/base/_root.scss read from these tokens, so you do not edit them directly unless the developer wants a runtime override.
For Google Fonts, import the family with next/font/google in src/app/layout.tsx, apply its CSS variable on the <html> or <body> element, and point --font-family-base and --font-family-heading at that variable. For custom font files, place them under public/fonts, add the @font-face rules to src/styles/base/_fonts.scss, and update the font-family tokens in src/styles/abstracts/_tokens.scss. Keep the token and the applied font in sync.
In src/app/layout.tsx, set the site name and default description in the metadata export. Confirm NEXT_PUBLIC_SITE_URL in .env.local matches the production URL so canonical links, the sitemap, and JSON-LD resolve correctly.
The Storyblok MCP server is already configured in .mcp.json and .vscode/mcp.json at https://mcp.labs.storyblok.com/. Tell the developer:
@storyblok/react SDK that serves the site.Tell the developer that for the site chrome to render real content, four global stories need to exist in their Storyblok space, one per content type:
global/site-settings (content type site-settings): siteName, defaultDescription, logo.global/primary-navigation (content type primary-navigation): links list (label, url, openInNewTab).global/footer-navigation (content type footer-navigation): links list (label, url, openInNewTab).global/social-links (content type social-links): links list (platform, url).The site runs without them (the chrome falls back to safe empty values) but cannot render real navigation until they exist. See docs/architecture.md shared-content contract for the field shapes.
Also tell the developer to set the space's Visual Editor preview URL to http://localhost:3000/api/preview?secret=<STORYBLOK_PREVIEW_SECRET>&slug=. Storyblok appends the slug per story.
Run, in order, and fix anything that fails before reporting success:
npm run typechecknpm run lintnpm run lint:stylesnpm run format:checknpm testIf the Storyblok values resolve from 1Password and at least one story exists in the space, also run npm run build to confirm the site builds against the space.
Then confirm the pipeline matches CI/CD, which requires end-to-end tests on every pull request:
RUN_E2E repository variable to true. It gates the end-to-end and Lighthouse jobs, and a project that merges without them does not meet the delivery standard. This is part of the install, not an optional extra.Summarize what changed and list the remaining manual steps:
NEXT_PUBLIC_STORYBLOK_IS_PREVIEW to false on production and true on preview.https://<your-domain>/api/revalidate?secret=<STORYBLOK_WEBHOOK_SECRET> (Storyblok dashboard, Settings then Webhooks), enabling story published, unpublished, deleted, and moved.project-readme for the root README.md, then project-docs for /docs. A project is not set up until it is documented.op run --env-file=".env.sample" -- npm run dev to start working. The Visual Editor in the Storyblok dashboard renders the local site live.Name every variable you left unresolved, and every value the developer still has to add to 1Password.
project-readme and project-docs, which scaffold the documentation after this skill finishesfinish-the-install-agility for an AgilityCMS projectWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/dotfusion-docs:finish-the-install-storyblokfrom dotfusion-docs
npx claudepluginhub dotfusion/engineering-docs --plugin dotfusion-docs12 skills in this plugin
/accessibilityAudit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible"./engineering-standardsAuthoritative pointer to Dotfusion's engineering standards. Use before writing or changing application code, before opening a pull request, when adding or changing environment variables, when editing CI/CD or deployment config, when wiring observability, when recording an architecture decision, when changing UI (accessibility), when adding a dependency, or when a developer asks "what's our standard for X", "check this against our rules", or "is this the Dotfusion way". Lists every engineering standard, where to find it, and the non-negotiable rules that apply to every change./