自动化操作 Prismic 无头 CMS,查询内容、检索文档并管理仓库引用。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "Prismic Automation" 技能: 1. 下载 https://raw.githubusercontent.com/ComposioHQ/awesome-claude-skills/master/composio-skills/prismic-automation/SKILL.md 2. 保存为 ~/.claude/skills/prismic-automation/SKILL.md 3. 装好后重载技能,告诉我可以用了
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
https://rube.app/mcp
ref token. Always start by calling PRISMIC_REPOSITORY_API_GET_REFS or PRISMIC_REPOSITORY_API_GET_INFO to obtain the master ref.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 field is critical since refs are required for all content queries.
refsExample prompt: "Get my Prismic repository info and the current master ref"
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) and pageSize (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 inlineExample prompt: "Query all published blog posts in Prismic, sorted by date descending, in English"
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) and pageSize (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 50Example prompt: "Get all blog_post documents in Prismic, 20 per page"
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 queriesExample prompt: "Search all Prismic documents for 'machine learning'"
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 filterExample prompt: "Fetch Prismic document Xx2KLhEAAJljVWaA"
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., nameExample prompt: "List all custom types in my Prismic repository"
…