Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

nextjs-tinacmsNext.js tinacms 搜索

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

706

周安装

30

GitHub Stars

公开资料未说明

下载量

247
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nextjs-tinacms(Next.js tinacms 搜索)
来源仓库:https://github.com/baphomet480/claude-skills
仓库路径:skills/nextjs-tinacms
安装命令:
npx skills add https://github.com/baphomet480/claude-skills --skill nextjs-tinacms
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/baphomet480/claude-skills --skill nextjs-tinacms

简介

用于查找和筛选 Next.js 项目中 TinaCMS 的内容管理系统方案。

  • 适合在 Codex、Claude、Cursor 等宿主中根据关键词快速定位候选实现。
  • 使用时需结合项目内容结构和编辑需求,评估 CMS 集成的可行性。
  • 安装方式:GitHub 仓库,命令为 npx skills add <repo> --skill nextjs-tinacms。
  • 注意:需确认权限范围和维护状态,避免触发不必要的文件读写或网络请求。

SKILL.md

Next.js 16 + React 19 + TinaCMS + Vercel

Opinionated for: Next.js App Router + TinaCMS + Tina Cloud + Vercel + Tailwind CSS 4 + shadcn/ui.

Two workflows: New Project (scaffold from scratch) or Add CMS (integrate into existing Next.js 15/16 project).

Stack

TechnologyVersionKey Feature
Next.js16.xTurbopack default, "use cache", proxy.ts, async params
TinaCMS3.xGit-backed CMS, visual click-to-edit, GraphQL schema API, ESM-only
React19.xServer Components, Actions, use(), useEffectEvent
Tailwind CSS4.xCSS-first config (@import "tailwindcss"), no JS config needed
shadcn/uiCLI v4Copy-paste components, npx shadcn create, tw-animate-css
Vercel--Deploy target. @vercel/analytics, @vercel/speed-insights, Deploy Hooks
Tina Cloud--Default CMS backend. Free tier (2 users), editorial workflow on Team Plus+

Quick Start

npx create-next-app@latest my-site --typescript --tailwind --app --src-dir
cd my-site
npx @tinacms/cli@latest init

Verify: tinacms dev then open http://localhost:3000/admin/index.html.

Local dev runs in local-only mode -- content reads/writes directly to the filesystem, no Tina Cloud connection needed. Production builds connect to Tina Cloud via NEXT_PUBLIC_TINA_CLIENT_ID and TINA_TOKEN env vars on Vercel.

Critical Knowledge

  1. Server-Client split is mandatory. useTina() requires "use client". Every editable page needs a Server Component (data fetcher) + Client Component (visual editing wrapper).
  2. Build order matters. Always "build": "tinacms build && next build". Wrong order breaks with Cannot find module '../tina/__generated__/client'.
  3. Pin exact TinaCMS versions. No caret ranges. UI assets drift from CDN. Keep tinacms and @tinacms/* synced via package grouping (RenovateBot or Dependabot).
  4. tina/__generated__/ should be gitignored. Only tina-lock.json must be committed. The __generated__/ folder is rebuilt by tinacms build.
  5. TinaCMS 3.x is ESM-only. Config files must use import syntax. Set "type": "module" in package.json or use .ts extensions.
  6. Async params in Next.js 16. Every page.tsx, layout.tsx, route.ts must await params -- sync access fully removed.
  7. proxy.ts replaces middleware.ts. Lives at project root, exports proxy function, runs Node.js runtime only. Codemod: npx @next/codemod@canary middleware-to-proxy.
  8. Security: @tinacms/cli >= 2.1.8 required. CVE-2026-28792 (Critical, CVSS 9.6) -- drive-by attacks via CORS + path traversal in older versions.
  9. Dev command is tinacms dev -c "next dev". Never next dev alone -- the local GraphQL server won't run.

Version Floors

Look up current stable versions before scaffolding (npm view <pkg> version).

PackageMinimumWhy
next>= 16.0.10Security patches
tinacms>= 3.3.xVisual selector, ESM-only, current schema API
@tinacms/cli>= 2.1.8CVE-2026-28792 fix
react / react-dom>= 19.0.xServer Components, Actions (19.2.x for useEffectEvent)
tailwindcss>= 4.xCSS-first config (v3.4.x also acceptable)
Node.js>= 20.9.0Next.js 16 requirement

Key Imports

ImportFromUsed For
defineConfigtinacmsSchema configuration in tina/config.ts
useTinatinacms/dist/reactLive editing in Client Components
tinaFieldtinacms/dist/reactClick-to-edit data attributes
TinaMarkdowntinacms/dist/rich-textRich text rendering
client@/tina/__generated__/clientGraphQL queries (auto-generated)

Collections

Add based on project needs:

CollectionTypeWhen Needed
pagesFolder + blocksAlways
globalSingletonAlways (site settings, SEO defaults)
navigationSingletonAlways (can include footer links)
postsFolderIf site has a blog
authorsFolderIf site has a blog
footerSingletonIf footer warrants its own collection
notFoundSingletonOptional

Common Tasks

Create a new block

Add a template object to the blocks field's templates array in tina/config.ts. Every block needs ui.defaultItem. Optional: ui.previewSrc for visual selector thumbnails.

Add visual editing to a page

  1. Server Component fetches {data, query, variables} from Tina client
  2. Client Component calls useTina() with those props
  3. Add data-tina-field={tinaField(data.page, 'fieldName')} on DOM elements

Enable caching

Set cacheComponents: true in next.config.ts, then use "use cache" directive with cacheLife() presets: seconds, minutes, hours, days, weeks, max.

Deploy to Vercel

  1. Build command: tinacms build && next build
  2. Set Vercel env vars: NEXT_PUBLIC_TINA_CLIENT_ID, TINA_TOKEN, NEXT_PUBLIC_TINA_BRANCH
  3. Install @vercel/analytics + @vercel/speed-insights, render <Analytics /> and <SpeedInsights /> in root layout
  4. Set up a Deploy Hook for content change rebuilds
  5. Use Vercel Team Environment Variables to share keys across preview/production

Always use Tina Cloud unless the project has a specific reason to self-host. See references/deployment.md for self-hosted as a secondary option.

Claude Code Automations

Set up in .claude/settings.json early in Day 0:

{
  "hooks": {
    "PreToolUse": [{
      "matcher": "Edit|Write",
      "hooks": [{
        "type": "prompt",
        "prompt": "If the file path contains 'tina/__generated__/' or ends with 'tina-lock.json', BLOCK this edit. These files are auto-generated by tinacms build and must not be manually edited."
      }]
    }],
    "PostToolUse": [{
      "matcher": "Edit|Write",
      "hooks": [{
        "type": "command",
        "command": "npx prettier --write $CLAUDE_FILE_PATH 2>/dev/null || true"
      }]
    }]
  },
  "permissions": {
    "allow": [
      "Bash(npx tinacms dev:*)",
      "Bash(npx tinacms build:*)",
      "Bash(pnpm dev:*)",
      "Bash(pnpm build:*)",
      "Bash(npx shadcn@latest add:*)"
    ]
  }
}

MCP servers:

  • claude mcp add context7 -- npx -y @upstash/context7-mcp@latest -- live TinaCMS/Next.js/React/Tailwind docs
  • claude mcp add playwright -- npx -y @anthropic-ai/mcp-server-playwright@latest -- test visual editing in browser

Consider creating project-level skills for repeated tasks:

  • /new-block -- scaffold a block template + component + renderer mapping
  • /tinacms-check -- audit schema for missing ui.itemProps, broken tinaField, version drift

Agentic Workflow & Vibe Coding

  • Iterative Building: Do not expect a perfect CMS integration on the first try. Draft the schema and visual editing wrapper, test the connection locally (tinacms dev), isolate any specific data-fetching or rendering error, adjust exactly ONE field or query at a time, and refresh until the click-to-edit experience is seamless.
  • Vibe Coding: Commit your working Next.js pages and Tina schema configurations locally before attempting complex block template additions or deploying to Vercel. Ensure tina-lock.json is included in these commits.

Reference Files

FileWhen To Read
references/schema-design.mdDesigning collections, blocks, fields, content hooks
references/visual-editing.mdServer/client split, draft mode, click-to-edit debugging
references/seo-meta.mdMetadata, JSON-LD, OG tags, sitemaps, RSS
references/deployment.mdTina Cloud vs self-hosted, media providers, env vars
references/setup-checklist.mdPhased implementation checklist (MVP / Polish / Comprehensive)
templates/tina-config-starter.tsProduction tina/config.ts with 5 block templates
templates/page-server-client.tsxServer/client page pattern with metadata and static params

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.04%
按下载量换算94

Claude

28.63%
按下载量换算71

Cursor

19.14%
按下载量换算47

Gemini CLI

9.34%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills