Search Content
БесплатноЗапускает вложенные скриптыНе проверенFind which pages cover a topic or mention particular wording, and answer counts, breakdowns, audits, attribution, component-usage, and content-model questions…
от vercel★ 6 166 звёзд на GitHubОб этом скилле
Query Contentful content with SQL
Run SQL over the content of every configured space with the packaged script:
sh "$HOME/.agents/skills/search_content/scripts/sql" 'SELECT contentType, status, count(*) FROM entries GROUP BY ALL ORDER BY ALL'
Output is CSV with a header, capped at 200 rows, followed by a footer with the row count and the time the content is current as of. Aggregate or add LIMIT rather than paging through rows.
When to use it
Prefer this over run_contentful_query when the question needs every matching entry: counts, breakdowns by type, status, or editor, stale or missing-field audits, and which pages embed a component. One query covers all spaces with no pagination or reference budget, so a negative answer is complete as of the footer's time.
Use run_contentful_query instead when the answer depends on edits since the last daily update, such as content published in the last few hours, or when the footer's time is older than the window being asked about. Say which source you used and how fresh it is.
Tables
entries: one row per non-archived entry.
| Column | Meaning |
|---|---|
space, entryId, contentType |
Identity; the same ID can exist in two spaces, so join on both space and entryId |
status |
published, changed (live with pending edits), or draft |
title, slug, url, contentfulUrl, date, version |
Display metadata; date is the editorial date field when the type has one |
createdAt, updatedAt, publishedAt, firstPublishedAt |
TIMESTAMPTZ; see Dates and publication state |
createdBy, updatedBy, publishedBy |
Contentful user IDs; join users for names |
fields |
JSON of scalar and scalar-list fields in the configured locale; rich text and links are not here |
references |
Every Entry and Asset link, including rich-text embeds and hyperlinks |
refs: one row per link, with space, fromId, fromType, field, path, nodeType, relationship (embed, hyperlink, or reference), linkType, toId, toType, and the target's toTitle. toType and toTitle are null when the target is an asset, archived, or missing from the copy; report those as unresolved rather than absent.
pages: filename and raw Markdown content, for text matches inside SQL. To find which pages mention a term, use search() instead.
content_types: one row per content type, with space, contentTypeId, name, description, and displayField.
users: one row per member of each space, with space, userId, and name. Join on space and userId, as in LEFT JOIN users u ON u.space = e.space AND u.userId = e.updatedBy. A null name means the person has no name set, has left the space, or joined after the last sync. Only the last case can be recovered, with run_contentful_query's resolveUsers, so try it only when the name matters to the answer and otherwise report the person as unknown.
type_fields: one row per field of each content type, with space, contentTypeId, fieldId, name, type, linkType, required, localized, allowedContentTypeIds, the array item's itemType, itemLinkType, and itemAllowedContentTypeIds, and richTextReferences listing which entries rich text may embed or link. Join to entries on space and contentTypeId = contentType.
The schema tables are updated daily with the content, so use them instead of get_contentful_schema for questions. Before creating or editing an entry, still fetch its live schema with get_contentful_schema.
Find pages about a topic or wording
Use search(term) for questions about what pages say, such as "do we have content about X?", "which posts mention Y?", or wording audits. It's a table function that counts matches in each entry's title and text, but not its slug, URL, or other metadata, and returns one row per matching entry. Matching is case-insensitive and whole-word. Separate literal alternatives with |, as in 'vercel sandbox|sandbox sdk'; every other character matches literally, and phrases with spaces match as written.
| Column | Meaning |
|---|---|
space, entryId, contentType, status, title, url, contentfulUrl, updatedAt |
Same as in entries |
mentions |
Number of matches in the title and text, counting each occurrence |
opening |
Start of the page's text, about 200 characters |
passages |
Up to 3 matching lines from the text, each about 200 characters; empty when only the title matches |
Rows have no built-in order, so add ORDER BY mentions DESC for the most relevant pages or ORDER BY updatedAt DESC for the newest, and finish with entryId so ties keep the same order when you page with OFFSET. Double any apostrophe in the term, as in search('o''brien'). Filter by content type or status in the same statement, and include drafts unless the person asks for published pages only.
Example: guides that mention Vercel Sandbox, most relevant first, with the total n
Установить Search Content в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Search Content?
Find which pages cover a topic or mention particular wording, and answer counts, breakdowns, audits, attribution, component-usage, and content-model questions such as which fields a type has, with SQL over all Contentful content. Complete results in one query, as of the last daily update.
Как установить скилл Search Content?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Search Content запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic