building-blog — Claude Code skill: Next.js + Sanity blog setup
building-blog walks a project through adding a blog to a Next.js site with Sanity CMS: scans the repo, runs the questionnaire, drafts a plan, then implements it against a spec.
no license 61 installs updated 2026-10-24
npx claude-code-templates@latest --skill web-development/building-blogWhat building-blog does
The skill takes on the setup work of putting a blog on a Next.js site that runs on Sanity. It starts by reading the host repo: package.json, next.config, locale folders, tailwind.config, CLAUDE.md, and any existing Sanity studio directory. Whatever it can detect gets filled in, so fewer questions land on you.
Next comes a questionnaire in blog-technical-requirements.md with 30+ questions about scope, SEO, locales, and page speed. In Claude Code it runs through AskUserQuestion, four at a time. Answers go into §1 Project Profile in a project-local copy under docs/blog/. Non-interactive runs fall back to shared defaults and list every assumption. Then you get a one-page plan with phases and open decisions, and nothing gets coded until you approve it.
Implementation follows the spec sections §2–§20, and the §19 checklist decides when the work is done. AI-generated hero images are steered by blog-image-style-guide.md, which describes generation with Gemini 3 Pro Image. MDX-only blogs without a CMS and documentation sites sit outside this skill: the patterns there are different.
What it helps with
- Add a blog to an existing Next.js + Sanity site
- Design the blog surface from scratch
- Collect technical and editorial requirements before a line of code
- Get a phased plan signed off first
- Pick a visual direction for AI-generated hero images
Example prompts for the agent
- Add a blog to this Next.js + Sanity project
- Build the blog section from scratch, locales are already wired with
next-intl - Set up the blog with Sanity and suggest a hero image style
How to install building-blog
1claude-code-templates
npx claude-code-templates@latest --skill web-development/building-blog2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill building-blog -a claude-code3Manually: put the files in place
~/.claude/skills/building-blog/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/building-blog/
1Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill building-blog -a codex2Manually: put the files in place
.agents/skills/building-blog/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill building-blog -a cursor2Manually: put the files in place
.cursor/skills/building-blog/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates cli-tool/components/skills/web-development/building-blog2Manually: put the files in place
.github/skills/building-blog/SKILL.md1Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill building-blog -a gemini-cli2Platform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/web-development/building-blogManually: put the files in place
.devin/skills/building-blog/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about building-blog
How do I install building-blog in Claude Code?
Run npx claude-code-templates@latest --skill web-development/building-blog. The skill is placed at ~/.claude/skills/building-blog/SKILL.md.
What does building-blog do?
It adds a blog to a Next.js site backed by Sanity: scans the repo, runs the requirements questionnaire, returns a one-page plan, then builds to the spec with a checklist that marks done.
Will it work for an MDX blog with no CMS?
No. It targets Next.js sites with Sanity. MDX-only blogs and documentation sites follow different patterns.