search
Use this skill whenever the user wants to show, list, view, display, browse, find, search, or otherwise retrieve documents, conversations, emails, chats…
от sdemyanov★ 26 звёзд на GitHub
Установить search в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Operates under
retriever:routing. If the user's intent actually fits a different tier — anotherretriever:*skill, a Tier 2 slash, a Tier 3tools.pysubcommand, or (last resort) direct DB access — stop and re-route against the ladder before continuing.
Retriever Search
Use this skill when the user says things like:
- "find documents mentioning Smith"
- "show only PDFs from 2023"
- "search for Latin emails"
- "filter to NDA contracts"
- "show me conversations in gmail-max"
- "/search clear"
- "/search --within indemnification"
- "/search --fts ABC000123"
Exact /search fast paths
For exact slash forms that begin with /search:
- Do not read ../search-strategy/search-strategy.md.
- Do not read schema docs.
- Run exactly one Bash command from the workspace root that passes the slash command through unchanged. Common examples:
/search:python3 skills/tool-template/tools.py slash . /search/search clear:python3 skills/tool-template/tools.py slash . '/search clear'/search --within indemnification:python3 skills/tool-template/tools.py slash . '/search --within indemnification'/search --fts ABC000123:python3 skills/tool-template/tools.py slash . '/search --fts ABC000123'
- If canonical tool auto-discovery fails, retry once with
RETRIEVER_CANONICAL_TOOL_PATHpointed at ../tool-template/tools.py. - Return stdout exactly as the entire response. No preamble. No commentary. No reformatting.
Load order
- Read ../search-strategy/search-strategy.md.
- Read ../schema/schema.md if field names or operators are unclear.
- Use ../tool-template/tools.py as the canonical command source.
View vs compose
- Use
--mode viewwhenever the user primarily wants to see a document listing, not just when they literally say "table". Treat verbs like "show", "show me", "list", "display", "view", "browse", "find", "which documents", "what files", "show 10", and "show only" as view requests unless the user explicitly asks for a summary, explanation, or a different layout. - Use
--mode viewfor the slash browse surface (/search,/bates,/filter,/dataset,/from-run,/scope,/sort,/page,/next,/previous,/page-size,/columns, and the internal browse-mode toggles/documentsand/conversations, plus read-onlylistforms such as/scope list,/dataset list,/sort list, and/columns list). - For document-listing requests inside an active investigation, prefer the slash/session browse surface over a fresh stateless search so the current
/page-size,/columns,/sort, and related browse state apply automatically. - If the user asks to show, list, browse, or display conversations, threads, email threads, chat threads, channels, DMs, or similar grouped discussion units, treat that as a conversation-browse request and switch the slash/session browse surface to
/conversationsbefore rendering results. If the user instead asks for individual documents, emails, messages, files, attachments, or per-item details, switch or stay in/documentsmode before rendering results. /documentsand/conversationsare agent-facing mode toggles. Use them on the user's behalf when intent is clear; do not ask or require the user to type those commands explicitly.- The standard
/searchrendered table is the default output contract for every document-listing request unless the user explicitly asks for a different presentation. - In
viewmode, the tool returns arendered_markdownfield containing the complete pre-formatted result table. - When
rendered_markdownis present for a view request, your entire reply MUST be the exact contents of that field and nothing else: no preamble, no trailing commentary, no code fences, no reformatting, and no extra summary sentence. Treat any text before or after the markdown footer as a bug. - The reply must terminate immediately after the table footer, even if the results seem self-explanatory or worth summarizing.
- Use
--mode composeonly when the user wants a summary, count, explanation, drafting, comparison, or other prose answer that is about the documents rather than a document listing itself.
Execution rules
- Prefer SQL-like
--filter "EXPR"filters over tuple-style field/operator/value fragments. - The filter grammar targets Retriever's logical document fields, including schema-defined virtual fields such as
production_name,is_attachment, andhas_attachments. - Use the canonical stateless
searchCLI flags:--filter,--sort,--order,--page,--per-page,--columns, and--mode. - For requests like "show 10 ...", map the requested count to
--page 1 --per-page 10; do not invent--limit. - For sorted browse requests, use
--sort FIELDand--order asc|desc; do not invent--sort-byor
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл search?
Use this skill whenever the user wants to show, list, view, display, browse, find, search, or otherwise retrieve documents, conversations, emails, chats, threads, messages, files, or attachments from the Retriever collection — including narrowing by keyword, phrase, sender, recipient, date, content type, dataset, Bates range, or any other field — or when the user types "/search", "/search query", "/search clear", "/search --within term", or "/search --fts token". It runs Retriever's search and slash browse commands with structured filters and returns the standard rendered table output.
Как установить скилл search?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл search запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop 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…
internal-comms
AnthropicA 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…
skill-development
AnthropicThis 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…