Prismic Automation
Skill này làm gì
Công cụ này giúp bạn quản lý trực tiếp website Prismic. Bạn có thể tìm nội dung cụ thể, tìm kiếm văn bản, xem các loại nội dung và làm việc với các phiên bản của website.
Khi nào nên dùng
- ✓Khi bạn muốn tìm nội dung cụ thể trong Prismic.
- ✓Khi bạn cần tìm tất cả bài viết blog.
- ✓Khi bạn muốn xem tất cả các loại nội dung đã định nghĩa trong Prismic.
Liên kết skill
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/prismic-automation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tìm tất cả bài viết blog đã xuất bản trong Prismic, sắp xếp theo ngày, bằng tiếng Anh.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Để dùng công cụ này, bạn cần kết nối tài khoản Prismic. Sau đó, bạn có thể yêu cầu tìm kiếm nội dung, tìm kiếm văn bản hoặc liệt kê các loại nội dung.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
…
Câu hỏi thường gặp
Tôi có cần kết nối tài khoản Prismic không?
Có, bạn cần kết nối tài khoản Prismic để công cụ truy cập được nội dung của bạn. Hãy làm theo hướng dẫn xác thực.
Làm sao để tìm nội dung cụ thể?
Bạn có thể yêu cầu tìm theo loại nội dung, dùng tìm kiếm toàn văn bản hoặc tìm theo ID cụ thể. Ví dụ: 'Tìm tất cả tài liệu loại trang'.
‘ref’ là gì?
‘ref’ giống như một phiên bản hoặc một điểm lưu của nội dung. Bạn thường cần ‘ref’ để lấy nội dung, và có thể lấy nó bằng cách yêu cầu thông tin kho lưu trữ (repository).
Chi tiết
Mô tả gốc của tác giả
Automate headless CMS operations in Prismic -- query documents, search content, retrieve custom types, and manage repository refs through the Composio Prismic integration.
Độ phổ biến
- Sao GitHub
- 77k
- Vị trí xếp hạng
- #2346
- Giấy phép
- —
- Cập nhật
- 18/9/2026
Bình luận
- …
Thêm skill từ kho mã này
artifacts-builder
77kGiúp agent của bạn xây dựng giao diện người dùng phức tạp. Dùng công nghệ hiện đại để tạo trang web tương tác phong phú.
brand-guidelines
77kGiúp agent của bạn áp dụng màu sắc và phông chữ thương hiệu chính thức cho tài liệu. Giữ bản sắc trực quan cho mọi nội dung cần đúng phong cách công ty.
canvas-design
77kGiúp agent của bạn tạo tác phẩm nghệ thuật gốc dạng .png và .pdf. Dùng khi cần poster, tranh nghệ thuật hoặc thiết kế tĩnh khác.
changelog-generator
77kGiúp agent của bạn tạo ghi chú phát hành dành cho người dùng từ các commit mã. Biến thông tin kỹ thuật thành văn bản dễ hiểu.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.