firecrawl-claude-code-skill
💡 摘要
该技能通过Firecrawl的API获取网页内容、截取屏幕截图并提取结构化数据。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
name: firecrawl-web description: "Fetch web content, take screenshots, extract structured data, search the web, and crawl documentation sites. Use when the user needs current web information, asks to scrape a URL, wants a screenshot, needs to extract specific data from a page, or wants to learn about a framework or library." allowed-tools: ["Bash", "Read", "Write"]
Firecrawl Web Skill
This skill provides web access through Firecrawl's API.
Script Location
All commands use the bundled script: ~/.claude/skills/firecrawl-web/fc.py
Getting Page Content
Fetch any webpage as clean markdown:
python3 ~/.claude/skills/firecrawl-web/fc.py markdown "https://example.com"
For cleaner output without navigation and footers:
python3 ~/.claude/skills/firecrawl-web/fc.py markdown "https://example.com" --main-only
Taking Screenshots
Capture a full-page screenshot:
python3 ~/.claude/skills/firecrawl-web/fc.py screenshot "https://example.com" -o page.png
Extracting Structured Data
Extract specific data using a JSON schema. Create a schema file first:
{ "type": "object", "properties": { "title": {"type": "string"}, "price": {"type": "number"}, "features": {"type": "array", "items": {"type": "string"}} } }
Then extract:
python3 ~/.claude/skills/firecrawl-web/fc.py extract "https://example.com/product" --schema schema.json
Add a prompt for better accuracy:
python3 ~/.claude/skills/firecrawl-web/fc.py extract "https://example.com/product" --schema schema.json --prompt "Extract the main product details"
Searching the Web
Search for current information:
python3 ~/.claude/skills/firecrawl-web/fc.py search "Python 3.13 new features"
Limit results:
python3 ~/.claude/skills/firecrawl-web/fc.py search "latest React documentation" --limit 3
Crawling Documentation
Crawl a documentation site to learn about a new framework:
python3 ~/.claude/skills/firecrawl-web/fc.py crawl "https://docs.newframework.dev" --limit 30
Save pages to a directory:
python3 ~/.claude/skills/firecrawl-web/fc.py crawl "https://docs.example.com" --limit 50 --output ./docs
Each page costs one credit. Set a reasonable limit to avoid burning through your quota.
优点
- 多功能的网页抓取能力
- 支持结构化数据提取
- 使用简单,命令清晰
- 可以截取整页屏幕截图
缺点
- 需要设置Python环境
- 仅限于Firecrawl的API功能
- 大量爬虫可能导致高信用使用
- 未提及内置错误处理
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 BexTuychiev.
