firecrawl-build-search
它能做什么
这项技能帮助开发者构建一项从搜索查询开始、找出相关网页的功能。适合构建答案引擎、研究工具或发现类功能的团队。
适用场景
- ✓用户提出问题,而产品必须先找到最新的网络来源的时候。
- ✓某项功能需要先通过搜索查询得到一份候选网页列表,再提取内容的时候。
- ✓你想构建一条从查询到网页、供之后抓取使用的流程的时候。
技能链接
https://github.com/firecrawl/firecrawl/blob/main/skills/firecrawl-build-search/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我们的研究应用加入搜索功能,让一个问题返回五个最新的网络来源,然后阅读其中排名靠前的几个。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能建议先运行搜索以发现网址,然后使用抓取步骤读取选定的页面。除非两者都确实需要,否则它建议将搜索和提取分开。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Firecrawl Build Search
Use this when the application starts with a query, not a URL.
Use This When
- the user asks a question and the product must discover sources first
- the feature needs current web results
- you want to turn a search query into a shortlist of pages for later scraping
Default Recommendations
- Use
/searchfirst when URL discovery is part of the product behavior. - Keep search and extraction conceptually separate unless scraping search results is clearly required.
- Prefer selective follow-up extraction over broad hydration when cost or latency matters.
Common Product Patterns
- answer generation with cited sources
- company, competitor, or topic discovery
- research workflows that produce a shortlist of web pages before deeper extraction
- query-to-URL pipelines for later
/scrapeor/interact
Note that "research workflow" here means discovering web pages. If the product is searching published papers, that is a different surface — see the escalation rules below.
Escalation Rules
- If you already have the URL, use firecrawl-build-scrape.
- If the result page then requires clicks or form interaction, escalate to firecrawl-build-interact.
- If the feature searches published research papers — biomedical, clinical, and life-science literature (PubMed, bioRxiv, medRxiv) or arXiv preprints —
/searchis the wrong surface. Use the research paper index instead: firecrawl-research-index. Passingcategories: ["research"]to/searchdoes not query that index; it filters an ordinary web search to research-affiliated websites (the list includes PubMed, bioRxiv, medRxiv, arXiv, and publisher sites) and returns page results from them — no abstract search, related-paper expansion, or full-text passages. - If the feature answers developer questions from issues, pull requests, READMEs, or documentation pages, use the developer index instead: firecrawl-developer-index. The same caveat applies to
categories: ["developer"].
Implementation Notes
- Treat
/searchas discovery, ranking, and source selection. - Be explicit about whether the product needs snippets, URLs, or full result content.
- Keep the query contract stable so downstream scraping logic stays predictable.
Docs (Source of Truth)
Read the source-of-truth page for your project language before writing integration code:
- Node / TypeScript: docs.firecrawl.dev/agent-source-of-truth/node
- Python: docs.firecrawl.dev/agent-source-of-truth/python
- Rust: docs.firecrawl.dev/agent-source-of-truth/rust
- Java: docs.firecrawl.dev/agent-source-of-truth/java
- Elixir: docs.firecrawl.dev/agent-source-of-truth/elixir
- cURL / REST: docs.firecrawl.dev/agent-source-of-truth/curl
See Also
常见问题
搜索和抓取应该合并吗?
技能说明,除非明确需要抓取搜索结果,否则应在概念上将二者分开。
它能搜索学术论文吗?
技能说明搜索已发表的研究论文属于另一种途径,并指向了其他选项。
对每个结果都进行完整提取成本高吗?
技能建议,当成本或延迟很重要时,应选择性地进行后续提取。
详情
作者的原始描述
Integrate Firecrawl `/search` into product code and agent workflows. Use when an app needs discovery before extraction, when the feature starts with a query instead of a URL, or when the system should search the web and optionally hydrate result content.
repo: firecrawl/firecrawl
热度
- GitHub 星标
- 198k
- 排名
- #632
- 许可证
- AGPL-3.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
firecrawl-build-interact
198k指导开发者在应用中加入 Firecrawl 的交互功能,使其能够点击、填写表单并在网页之间跳转。
firecrawl-build-onboarding
198k帮助开发者在项目中设置 Firecrawl,包括安装工具、将 API 密钥添加到环境文件,以及选择 SDK。
firecrawl-build-scrape
198k指导开发者使用 Firecrawl 的抓取功能加入单页提取,返回整洁的 Markdown、链接和元数据。
firecrawl-build
198k帮助开发者借助 Firecrawl 为应用加入实时网络数据,包括搜索、网页抓取、信息提取和浏览器操作。