Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tinacms

БесплатноБез исполняемых скриптовНе проверен

TinaCMS is an open-source headless CMS that keeps content as Markdown, MDX or JSON files in your Git repository and gives editors a visual editing interface…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

TinaCMS

Overview

TinaCMS stores content as files in your repo (Markdown, MDX, JSON) and describes it with a schema in tina/config.ts. The CLI turns the schema into a GraphQL API, a typed client in tina/__generated__/ and an admin UI served from your site at /admin. Editing happens either against local files (tinacms dev) or through Tina Cloud / a self-hosted backend, where saves are written back to Git.

Versions checked on 2026-10-24: tinacms 3.15.0, @tinacms/cli 4.0.3 (Node 22.x || 24.x).

Instructions

Install and run

npx @tinacms/cli@latest init          # adds tinacms, tina/config.ts and scripts to an existing project
npx tinacms dev -c "next dev"          # local admin at http://localhost:3000/admin, local GraphQL on :4001
npx tinacms build && next build        # production build, needs Tina Cloud or self-hosted credentials
npx tinacms build --local --skip-cloud-checks   # offline build with no credentials (CI smoke test)

Commit tina/config.ts and tina/tina-lock.json; the build generates the lock file. tina/__generated__/client.ts embeds the token from your config, so use the client only in server code.

Schema

This config was built with tinacms build --local and compiles as written:

// tina/config.ts
import { defineConfig } from "tinacms";

export default defineConfig({
  branch: process.env.NEXT_PUBLIC_TINA_BRANCH || "main",
  clientId: process.env.NEXT_PUBLIC_TINA_CLIENT_ID!,
  token: process.env.TINA_TOKEN!,

  build: { outputFolder: "admin", publicFolder: "public" },   // admin UI at /admin
  media: { tina: { mediaRoot: "uploads", publicFolder: "public" } },

  schema: {
    collections: [
      {
        name: "post",
        label: "Blog Posts",
        path: "content/posts",
        format: "mdx",                              // mdx | md | json
        fields: [
          { type: "string", name: "title", label: "Title", isTitle: true, required: true },
          { type: "string", name: "description", label: "Description", ui: { component: "textarea" } },
          { type: "datetime", name: "publishedAt", label: "Published Date", required: true },
          { type: "image", name: "heroImage", label: "Hero Image" },
          { type: "string", name: "category", label: "Category",
            options: ["engineering", "product", "culture", "tutorial"] },
          {
            type: "rich-text",
            name: "body",
            label: "Content",
            isBody: true,                           // the MDX body
            templates: [                            // MDX components editors can insert
              {
                name: "Callout",
                label: "Callout Box",
                fields: [
                  { type: "string", name: "type", label: "Type", options: ["info", "warning", "tip", "danger"] },
                  { type: "rich-text", name: "children", label: "Content" },
                ],
              },
            ],
          },
        ],
      },
      {
        name: "page",
        label: "Pages",
        path: "content/pages",
        format: "mdx",
        fields: [
          { type: "string", name: "title", label: "Title", isTitle: true, required: true },
          {
            type: "object",
            name: "blocks",
            label: "Page Blocks",
            list: true,                             // repeatable blocks
            templates: [
              {
                name: "hero",
                label: "Hero Section",
                fields: [
                  { type: "string", name: "heading", label: "Heading" },
                  { type: "string", name: "ctaText", label: "CTA Button Text" },
                  { type: "string", name: "ctaLink", label: "CTA Link" },
                ],
              },
            ],
          },
        ],
      },
    ],
  },
});

Querying content

The generated client exposes queries.<collection> and queries.<collection>Connection. postConnection accepts first, last, before, after, sort (a field name) and filter (checked in the generated GraphQL schema).

import { client } from "@/tina/__generated__/client";

const { data } = await client.queries.postConnection({ sort: "publishedAt", last: 10 });
const posts = data.postConnection.edges?.map((e) => e?.node) ?? [];

const tutorials = await client.queries.postConnection({ filter: { category: { eq: "tutorial" } } });
const post = (await client.queries.post({ relativePath: "hello.mdx" })).data.post;

Visual editing in the Next.js App Router

useTina is a hook, so it must live in a client component. Fetch on the server, pass the result down. Since Next.js 15, params is a promise.

// app/posts/[slug]/page.tsx  (server component)
import { client } from "@/tina/__generated__/client";
import PostView from "./post-view";

export default async function PostPage({ params }: { params: Promise<{ slug: string }> }) {
  const { slug } =
Полный SKILL.md на GitHub

Установить tinacms в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл tinacms?

TinaCMS is an open-source headless CMS that keeps content as Markdown, MDX or JSON files in your Git repository and gives editors a visual editing interface. Use when you need to set up TinaCMS in a Next.js site, define collections and fields in tina/config.ts, query content with the generated GraphQL client, or add live visual editing for a blog or marketing pages.

Как установить скилл tinacms?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tinacms запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tinacms с