building-blog
它能做什么
这项技能引导你的智能体规划并搭建以 Sanity CMS 为后台的 Next.js 网站博客板块。适合开始建设企业或编辑类博客的网站团队。
适用场景
- ✓想为已使用 Sanity 的现有 Next.js 网站添加博客的时候。
- ✓正在规划新的博客板块,需要文章和 SEO 架构的时候。
- ✓想让博客支持多种语言并符合无障碍标准的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/web-development/building-blog/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我用 Sanity 为我的 Next.js 网站添加博客,先从扫描项目开始。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体首先扫描项目中已有的设置,询问剩余的需求问题,然后按照详细的规范进行搭建。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Building a Blog (Next.js + Sanity)
Overview
Universal workflow for adding a blog to a Next.js site backed by Sanity CMS. Targets a corporate blog: SEO-first, i18n-ready, performance-budgeted, accessibility-compliant.
SKILL.md is the orchestrator. The spec lives in the two reference files.
Files
blog-technical-requirements.md— §0 intake questionnaire (30+ questions) → §1 Project Profile → §2–§20 universal spec → checklist. Edit only §0 answers and §1 per project.blog-image-style-guide.md— universal template for AI-generated hero imagery via Gemini 3 Pro Image (Nano Banana Pro). Intake questions on top, aesthetic skeleton in the middle, three example slots at the bottom.
Workflow
Step 1 — Scan the host project (before asking anything)
Read what's already there. Pre-filling answers from detected values is much better than asking the user. Look for:
package.json— Next.js version,next-intl, Sanity packages, Tailwind,framer-motionnext.config.{ts,js,mjs}— existingimages.formats, i18n configsrc/messages/**,src/i18n/**,messages/**— current locale setsrc/app/[locale]/**orapp/[locale]/**— routing patterntailwind.config.*,globals.css, design-system files — tokens, fontsCLAUDE.md,AGENTS.md,GEMINI.md— project conventions and approved overrides- Existing
sanity-studio/orstudio/folder app/layout.{tsx,jsx}— fonts, analytics, motion configpublic/brand/**,public/logo*— publisher logositemap.ts,robots.ts— existing routes.env*files — names of already-set env vars (do not log secret values)
Record findings as a brief "Detected" list before the questionnaire.
Step 2 — Run the intake questionnaire
Open blog-technical-requirements.md and walk through §0.
- Claude Code: use
AskUserQuestion. Group related questions into single calls (max 4 per call). Pre-fill recommended answers from the scan. - Codex / CLIs without an interactive picker: list questions numerically in plain text, ask the user to answer in batches of 5–10. Show recommended answers from the scan.
- Headless / non-interactive: apply universal defaults to whatever the prompt did not explicitly cover; list every assumption.
Write the answers into §1 "Project Profile" (in a project-local copy under docs/blog/, not in the universal source).
Step 3 — Produce the high-level plan
Use the plan template at the end of §0. One page. Phases, locked-in scope, out-of-scope items, open decisions. Wait for explicit user approval. Do not start coding.
Step 4 — Implement against the spec
Follow §2–§20 in order. §19 (Pass/Fail Checklist) is the definition of done. The image style guide drives §20 if AI-generated hero images are in scope.
When NOT to use this skill
- Static / MDX-only blogs (no CMS) — different stack, different patterns
- High-velocity news publishers — sitemap chunking and editor tooling become primary concerns
- Documentation sites — use a docs framework instead
- Marketing landing pages that aren't really a blog
Source
Maintained at BuildShipGrowRepeat/nextjs-sanity-blog-skill. MIT licensed.
常见问题
它会先读取我的项目吗?
会。该技能会先扫描你的包文件、路由和设计文件,再提问。
它包括图片生成吗?
包括。该技能提供了 AI 生成主视觉图的风格指南。
它面向哪些人?
它面向需要 SEO、国际化和性能的企业博客。
详情
作者的原始描述
Use when adding a blog to a Next.js + Sanity site, building a blog section from scratch, integrating Sanity CMS for editorial content, or setting up an SEO-optimized article surface. Triggers on phrases like 'add a blog', 'build the blog', 'create blog section', 'set up blog with Sanity', 'integrate Sanity CMS', 'blog architecture', or any new-blog scoping conversation on a Next.js project.
热度
- GitHub 星标
- 33k
- 排名
- #9103
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。