/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
Claude Code
$ npx -y skills add vercel/eve --skill search_content --agent claude-code
Codex
$ npx skills add vercel/eve --skill search_content -a codex -y
Cursor
$ npx skills add vercel/eve --skill search_content -a cursor -y
Gemini CLI
$ npx skills add vercel/eve --skill search_content -a gemini-cli -y
GitHub Copilot
$ npx skills add vercel/eve --skill search_content -a github-copilot -y
OpenCode
$ npx skills add vercel/eve --skill search_content -a opencode -y
Windsurf
$ npx skills add vercel/eve --skill search_content -a windsurf -y
SKILL.md
search_content.SKILL.mddescription: 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.
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 number of matching pages.
SELECT title, url, contentfulUrl, status, opening, passages, count(*) OVER () AS total
FROM search('vercel sandbox|sandbox sdk')
WHERE contentType ILIKE '%guide%'
ORDER BY mentions DESC, updatedAt DESC, entryId LIMIT 50Answer from these results alone, without fetching pages to build a list. Post the matches with the Slack table tool, one row per page in the order the query gives, with columns for the page, its status, and a note, and without the mention counts. Make the page cell a labelled link to `url` when the page is published or changed and has one, and to `contentfulUrl` otherwise, because drafts have no live page yet. Put one sentence
Read more
description: 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.
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 number of matching pages.
SELECT title, url, contentfulUrl, status, opening, passages, count(*) OVER () AS total
FROM search('vercel sandbox|sandbox sdk')
WHERE contentType ILIKE '%guide%'
ORDER BY mentions DESC, updatedAt DESC, entryId LIMIT 50Answer from these results alone, without fetching pages to build a list. Post the matches with the Slack table tool, one row per page in the order the query gives, with columns for the page, its status, and a note, and without the mention counts. Make the page cell a labelled link to `url` when the page is published or changed and has one, and to `contentfulUrl` otherwise, because drafts have no live page yet. Put one sentence
Other skills on eve.
More skills from other plugins.
next-forge
Expert assistance for next-forge — a production-grade Turborepo template for Next.js SaaS apps. Triggers on questions about…
build-every-app
Build or change an app on EveryApp: create one, add a feature, a page, a table, an AI tool, a capability, a public route or a…
nubase
Use when the user mentions Nubase broadly, wants a backend for an AI-generated app, or needs to deploy/publish generated code…
fireact-builder
Helps customize and extend Fireact SaaS apps after installation. Auto-detects Fireact projects by checking for @fireact.dev/app…
Questions about search_content.
- Which coding agents can use search_content?
- search_content installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

