payload-cms
Payload CMSを使って、TypeScriptでのコレクション定義、アクセス制御設定、管理画面カスタマイズ、Next.jsとの連携など、コードファーストなコンテンツ管理システム構築を支援するSkill。
📜 元の英語説明(参考)
Assists with building content management systems using Payload CMS with a code-first approach. Use when defining collections in TypeScript, configuring access control, customizing the admin panel, or integrating with Next.js. Trigger words: payload, payload cms, headless cms, collections, admin panel, content management, payload fields.
🇯🇵 日本人クリエイター向け解説
Payload CMSを使って、TypeScriptでのコレクション定義、アクセス制御設定、管理画面カスタマイズ、Next.jsとの連携など、コードファーストなコンテンツ管理システム構築を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o payload-cms.zip https://jpskill.com/download/15238.zip && unzip -o payload-cms.zip && rm payload-cms.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/15238.zip -OutFile "$d\payload-cms.zip"; Expand-Archive "$d\payload-cms.zip" -DestinationPath $d -Force; ri "$d\payload-cms.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
payload-cms.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
payload-cmsフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Payload CMS
概要
Payload CMS は、コレクションとフィールドが TypeScript で定義されるコードファーストなヘッドレス CMS で、管理パネル、REST/GraphQL API、および TypeScript 型を自動生成します。PostgreSQL、MongoDB、SQLite をサポートし、Local API を使用して Next.js アプリケーションに直接統合できます。
指示
- コレクションを定義する際は、
slug、fields、access、およびhooksを持つ TypeScript 設定オブジェクトを作成し、text、richText、relationship、upload、array、group、blocks などのフィールドタイプを使用します。 - アクセス制御を設定する際は、コレクション、フィールド、および操作レベル(create、read、update、delete)で関数ベースの権限を使用し、
isLoggedInやisAdminなどの再利用可能なアクセス関数を作成します。 - 柔軟なページを構築する際は、blocks フィールドタイプを使用して、エディターが事前定義されたブロックタイプからページを構成できるようにし、コレクション全体で DRY な構成を実現するために、再利用可能なフィールドグループを関数として定義します。
- コンテンツワークフローを管理する際は、下書き/公開状態と完全なリビジョン履歴のために、
versions: { drafts: true }でバージョンを有効にします。 - Next.js と統合する際は、
@payloadcms/nextを使用して Next.js アプリ内で Payload を実行し、Server Components で Local API(payload.find()、payload.create())を使用して、HTTP なしで型付きの高速アクセスを実現します。 - 管理パネルをカスタマイズする際は、特定のコンポーネントをカスタム React で置き換え、新しいページのカスタムビューを追加し、リアルタイムのフロントエンドコンテンツプレビューのためにライブプレビューを構成します。
- 再利用可能なコンテンツ構造を構築する際は、自動解決と検証のために、手動の ID 参照よりもリレーションシップを使用し、サイト設定、ナビゲーション、およびフッターのためにシングルトングローバルを定義します。
例
例 1: Next.js でブログ CMS を構築する
ユーザーリクエスト: 「カテゴリ、著者、およびリッチテキストを備えたブログ用に Payload CMS をセットアップしてください」
アクション:
- リレーションシップを持つ
posts、authors、およびcategoriesコレクションを定義します - カスタムブロック(code、callout、image)でリッチテキストエディターを構成します
- posts コレクションで下書きとバージョンを有効にします
- Server Component データフェッチングのために Local API を使用して Next.js と統合します
出力: 型付き API、自動生成された管理パネル、および Next.js 統合を備えた、フル機能のブログ CMS。
例 2: 複数ロールのコンテンツワークフローを作成する
ユーザーリクエスト: 「異なる権限を持つエディター、レビュー担当者、および管理者ロールで Payload をセットアップしてください」
アクション:
- ロールフィールド(editor、reviewer、admin)を持つユーザーコレクションを定義します
- 各ロールと操作のアクセス制御関数を作成します
- 機密フィールドを管理者のみに制限するために、フィールドレベルのアクセスを適用します
- カスタム公開ワークフローアクション(submit -> review -> publish)を追加します
出力: エディターが作成し、レビュー担当者が承認し、管理者がすべてのコンテンツを管理する、ロールベースの CMS。
ガイドライン
- コレクション全体で DRY な構成を実現するために、再利用可能なフィールドグループを関数として定義します。
- ミドルウェアではなく、アクセス制御関数を使用します。Payload はすべてのエントリポイント(REST、GraphQL、Local API)でそれらを強制します。
- コンテンツコレクションでバージョンを有効にします。
versions: { drafts: true }は誤った公開を防ぎます。 - 手動の ID 参照よりもリレーションシップを使用します。Payload はそれらを自動的に解決し、検証します。
- Next.js Server Components で Local API(
payload.find())を使用します。HTTP よりも高速で、完全に型付けされています。 - 管理のカスタマイズは最小限に抑えてください。自動生成されたパネルはほとんどのニーズをカバーします。
- エディターが事前定義されたブロックタイプからページを構成できるように、柔軟なページ構築のために blocks を使用します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Payload CMS
Overview
Payload CMS is a code-first headless CMS where collections and fields are defined in TypeScript, auto-generating an admin panel, REST/GraphQL APIs, and TypeScript types. It supports PostgreSQL, MongoDB, and SQLite, and integrates directly into Next.js applications with the Local API.
Instructions
- When defining collections, create TypeScript config objects with
slug,fields,access, andhooks, using field types like text, richText, relationship, upload, array, group, and blocks. - When setting access control, use function-based permissions at the collection, field, and operation level (create, read, update, delete), and create reusable access functions like
isLoggedInandisAdmin. - When building flexible pages, use blocks field type so editors compose pages from predefined block types, and define reusable field groups as functions for DRY configuration across collections.
- When managing content workflows, enable versions with
versions: { drafts: true }for draft/published states and full revision history. - When integrating with Next.js, use
@payloadcms/nextto run Payload inside the Next.js app, and use the Local API (payload.find(),payload.create()) in Server Components for typed, fast access without HTTP. - When customizing the admin panel, replace specific components with custom React, add custom views for new pages, and configure live preview for real-time frontend content previewing.
- When building reusable content structures, use relationships over manual ID references for auto-resolution and validation, and define singleton globals for site settings, navigation, and footer.
Examples
Example 1: Build a blog CMS with Next.js
User request: "Set up Payload CMS for a blog with categories, authors, and rich text"
Actions:
- Define
posts,authors, andcategoriescollections with relationships - Configure rich text editor with custom blocks (code, callout, image)
- Enable drafts and versions on the posts collection
- Integrate with Next.js using the Local API for Server Component data fetching
Output: A fully featured blog CMS with typed API, auto-generated admin panel, and Next.js integration.
Example 2: Create a multi-role content workflow
User request: "Set up Payload with editor, reviewer, and admin roles with different permissions"
Actions:
- Define user collection with role field (editor, reviewer, admin)
- Create access control functions for each role and operation
- Apply field-level access to restrict sensitive fields to admins
- Add custom publish workflow actions (submit -> review -> publish)
Output: A role-based CMS where editors create, reviewers approve, and admins manage all content.
Guidelines
- Define reusable field groups as functions for DRY configuration across collections.
- Use access control functions, not middleware; Payload enforces them on all entry points (REST, GraphQL, Local API).
- Enable versions on content collections;
versions: { drafts: true }prevents accidental publishes. - Use relationships over manual ID references; Payload auto-resolves and validates them.
- Use the Local API (
payload.find()) in Next.js Server Components; it is faster than HTTP and fully typed. - Keep admin customizations minimal; the auto-generated panel covers most needs.
- Use blocks for flexible page building so editors compose pages from predefined block types.