← スキル一覧に戻る

tina-cms
by wlfmnstr
⭐ 0🍴 0📅 2025年11月5日
SKILL.md
name: tina-cms description: Tina CMS configuration with GitHub backend. Use when setting up or configuring Tina CMS.
Tina CMS Skill
Installation
npm install tinacms @tinacms/cli
GitHub Backend Configuration
File: tina/config.ts
import { defineConfig } from 'tinacms';
export default defineConfig({
branch: process.env.GITHUB_BRANCH || 'main',
clientId: process.env.TINA_CLIENT_ID,
token: process.env.TINA_TOKEN,
build: {
outputFolder: 'admin',
publicFolder: 'public',
},
media: {
tina: {
mediaRoot: 'uploads',
publicFolder: 'public',
},
},
schema: {
collections: [
// Define collections here
],
},
});
Schema Pattern
{
name: 'blog',
label: 'Blog Posts',
path: 'src/content/blog',
format: 'mdx',
fields: [
{
type: 'string',
name: 'title',
label: 'Title',
isTitle: true,
required: true,
},
{
type: 'rich-text',
name: 'body',
label: 'Body',
isBody: true,
},
],
}
Critical Requirements
- Use GitHub backend (not local)
- Store media in
/public/uploads/ - Admin accessible at
/admin - Schemas must match Astro content collections
Environment Variables
GITHUB_OWNER=username
GITHUB_REPO=repo-name
GITHUB_BRANCH=main
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxx
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です