💼 Prismic Automation
Prismic(プリズミック)というヘッドレス
📺 まず動画で見る(YouTube)
▶ 【自動化】AIガチ勢の最新活用術6選がこれ1本で丸分かり!【ClaudeCode・AIエージェント・AI経営・Skills・MCP】 ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Automate headless CMS operations in Prismic -- query documents, search content, retrieve custom types, and manage repository refs through the Composio Prismic integration.
🇯🇵 日本人クリエイター向け解説
Prismic(プリズミック)というヘッドレス
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o prismic-automation.zip https://jpskill.com/download/1929.zip && unzip -o prismic-automation.zip && rm prismic-automation.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/1929.zip -OutFile "$d\prismic-automation.zip"; Expand-Archive "$d\prismic-automation.zip" -DestinationPath $d -Force; ri "$d\prismic-automation.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
prismic-automation.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
prismic-automationフォルダができる - 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-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Prismic Automation で、私のビジネスを分析して改善案を3つ提案して
- › Prismic Automation を使って、来週の会議用の資料を作って
- › Prismic Automation で、現状の課題を整理してアクションプランに落として
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
Prismic Automation
Manage your Prismic headless CMS directly from Claude Code. Query documents by type, full-text search content, inspect custom types, and work with repository refs for content versioning.
Toolkit docs: composio.dev/toolkits/prismic
Setup
- Add the Composio MCP server to your configuration:
https://rube.app/mcp - Connect your Prismic account when prompted. The agent will provide an authentication link.
- Most content queries require a
reftoken. Always start by callingPRISMIC_REPOSITORY_API_GET_REFSorPRISMIC_REPOSITORY_API_GET_INFOto obtain the master ref.
Core Workflows
1. Get Repository Info and Refs
Retrieve comprehensive repository metadata including available refs (content versions), custom types, languages, tags, and bookmarks. This is typically your first API call.
Tools: PRISMIC_REPOSITORY_API_GET_INFO, PRISMIC_REPOSITORY_API_GET_REFS
No parameters required -- these endpoints return the full repository configuration. The refs field is critical since refs are required for all content queries.
Example prompt: "Get my Prismic repository info and the current master ref"
2. Query Documents with Predicates
Fetch documents using Prismic's predicate query syntax with full pagination and filtering support.
Tool: PRISMIC_CONTENT_API_QUERY_DOCUMENTS
Key parameters:
ref(required) -- content release reference ID (typically the master ref)q-- predicate query, e.g.,[[at(document.type, "page")]]page(min 1) andpageSize(1-100) -- paginationlang-- language code, e.g.,en-us(default*for all)orderings-- sort order, e.g.,[my.article.date desc]fetch-- comma-separated fields to fetch, reducing response sizefetchLinks-- resolve linked document fields inline
Example prompt: "Query all published blog posts in Prismic, sorted by date descending, in English"
3. Fetch Documents by Type
Retrieve all documents of a specific custom type with automatic master ref resolution.
Tool: PRISMIC_GET_DOCUMENTS_BY_TYPE
Key parameters:
type(required) -- custom type API ID, e.g.,blog_post,article,pagepage(default 1) andpageSize(1-100, default 20)lang-- language code filterorderings-- sort order, e.g.,[my.article.date desc]after-- cursor-based pagination for deep pagination beyond page 50
Example prompt: "Get all blog_post documents in Prismic, 20 per page"
4. Full-Text Search
Search across all text fields in documents for specified terms. Case-insensitive, matches on root words.
Tool: PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH
Key parameters:
q(required) -- full-text predicate, e.g.,[[fulltext(document, "machine learning")]]page,pageSize,lang,orderings-- same pagination/filtering as other queries
Example prompt: "Search all Prismic documents for 'machine learning'"
5. Get a Single Document by ID
Retrieve a specific document by its unique identifier.
Tool: PRISMIC_GET_DOCUMENT_BY_ID
Key parameters:
document_id(required) -- unique document identifierref(required) -- content ref from repositorylang-- optional language filter
Example prompt: "Fetch Prismic document Xx2KLhEAAJljVWaA"
6. List Custom Types
Discover all custom types (content models) defined in the repository, including their structure definitions.
Tool: PRISMIC_TYPES_API_GET_TYPES
Key parameters:
limit-- max number of types to return per pagepage-- page number (1-indexed)sort-- sort order, e.g.,name
Example prompt: "List all custom types in my Prismic repository"
Known Pitfalls
- Ref is required for all content queries: You must obtain a valid
ref(typically the master ref) fromPRISMIC_REPOSITORY_API_GET_REFSorPRISMIC_REPOSITORY_API_GET_INFObefore querying any documents. Queries without a ref will fail. - Predicate syntax requires double brackets: Prismic queries use double square brackets:
[[at(document.type, "page")]]. For multiple predicates, combine them:[[at(document.type, "blog")][at(document.tags, ["featured"])]]. - Deep pagination limit: Standard page-based pagination may fail beyond page 50. For deep pagination, use the
afterparameter with the last document ID from your previous result set. - pageSize cap is 100: Requesting more than 100 documents per page will be rejected. Use pagination to iterate through larger result sets.
- Language filtering: The default language filter is
*(all languages). If you need documents in a specific locale, always passlangexplicitly (e.g.,en-us,fr-fr). - Integration fields require separate ref: When using
PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_INTEGRATION_FIELDS, you need anintegrationFieldsRefin addition to the standard contentref.
Quick Reference
| Tool Slug | Description |
|---|---|
PRISMIC_REPOSITORY_API_GET_INFO |
Get repository metadata, refs, types, languages |
PRISMIC_REPOSITORY_API_GET_REFS |
List all refs (master + releases) |
PRISMIC_TYPES_API_GET_TYPES |
List all custom types / content models |
PRISMIC_CONTENT_API_QUERY_DOCUMENTS |
Query documents with predicates and pagination |
PRISMIC_GET_DOCUMENTS_BY_TYPE |
Fetch documents filtered by custom type |
PRISMIC_GET_DOCUMENT_BY_ID |
Retrieve a single document by ID |
PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH |
Full-text search across all documents |
PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_PREDICATES |
Filter documents with multiple predicate conditions |
PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_INTEGRATION_FIELDS |
Fetch documents with integration fields data |
PRISMIC_GET_DOCUMENTS_ORDERED |
Fetch documents sorted by specified fields |
Powered by Composio