
Firecrawl Lean
- 126 installs
- 19 repo stars
- Updated July 8, 2026
- alexsmedile/firecrawl-lean
Firecrawl-lean is a Claude Code skill that drives the Firecrawl CLI to search, scrape, crawl, and extract structured data from web pages, including JS-heavy and login-gated ones.
About
Firecrawl-lean is a reference skill for driving the Firecrawl CLI to search the web, scrape URLs, crawl docs, download sites, extract structured data, and interact with JS-heavy or login-gated pages. A developer uses it when they need web content that plain WebFetch cannot reach. It documents the command set, an escalation pattern, and output rules to avoid context bloat.
- Web search, scrape, crawl, and browser interaction via the Firecrawl CLI
- Handles JS-heavy SPAs and login-gated pages that plain WebFetch can't
- Escalation pattern: search -> scrape -> map+scrape -> crawl -> interact
Firecrawl Lean by the numbers
- 126 all-time installs (skills.sh)
- Ranked #701 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
firecrawl-lean capabilities & compatibility
Requires a Firecrawl account/auth; some actions consume credits (e.g. targeted --query scrape = 5 credits).
- Capabilities
- web scraping · web search · web crawling
- Use cases
- web scraping · web search · research
- Pricing
- Bring your own API key
What firecrawl-lean says it does
Web scraping, search, crawling, and browser interaction via Firecrawl CLI.
Not installed? Run: `npm install -g firecrawl-cli && firecrawl auth`
npx skills add https://github.com/alexsmedile/firecrawl-lean --skill firecrawl-leanAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 126 |
|---|---|
| repo stars | ★ 19 |
| Last updated | July 8, 2026 |
| Repository | alexsmedile/firecrawl-lean ↗ |
What it does
Search the web, scrape or crawl pages, extract structured data, and drive JS-heavy or login-gated pages via the Firecrawl CLI.
Who is it for?
developers who need web search or content from JS-heavy or login-gated pages that WebFetch can't reach
Skip if: local files, git, or code editing
When should I use this skill?
when the user wants to search the web, scrape a URL, crawl docs, download a site, extract structured data, or drive a JS-heavy/login-gated page
What you get
Web search results, scraped page content, crawled site sections, and structured data written to .firecrawl/ without bloating context.
- search results JSON
- scraped page markdown
- crawled site content
By the numbers
- 5-step escalation pattern: search -> scrape -> map+scrape -> crawl -> interact
- targeted --query scrape costs 5 credits
Files
Firecrawl CLI — lean reference
Check status: firecrawl --status (shows auth + credits + concurrency limit). Not installed? Run: npm install -g firecrawl-cli && firecrawl auth Auth commands: firecrawl login, firecrawl logout, firecrawl view-config
WebFetch vs Firecrawl
Try WebFetch first (free). Use Firecrawl when:
- Need web search (WebFetch can't search)
- JS-heavy SPA / marketing pages
- Full article content (WebFetch truncates long pages)
- WebFetch output < 1000 chars or looks incomplete
Escalation pattern
search → scrape → map+scrape → crawl* → interact** = advanced, install dedicated skill if needed
Commands
Search — no URL yet, find pages:
firecrawl search "query" --limit 5 -o .firecrawl/results.json --json
firecrawl search "query" --scrape -o .firecrawl/results.json --json # include full content
firecrawl search "query" --sources news --tbs qdr:d --json # news, past day
firecrawl search "query" --country US --location "New York" --json # geo-targetedScrape — have a URL:
firecrawl scrape "<url>" -o .firecrawl/page.md
firecrawl scrape "<url>" --only-main-content -o .firecrawl/page.md # strip nav/footer
firecrawl scrape "<url>" --wait-for 3000 -o .firecrawl/page.md # wait for JS
firecrawl scrape "<url>" --query "What is the enterprise price?" # targeted Q (5 credits)
firecrawl scrape "<url>" --format markdown,html,screenshot -o .firecrawl/page.md # multi-format
firecrawl scrape "<url>" --format json --schema '{"price":"string"}' -o .firecrawl/data.json # structuredMap — find URLs within a site:
firecrawl map "<url>" --search "authentication" -o .firecrawl/urls.txt
firecrawl map "<url>" --limit 200 --json -o .firecrawl/urls.json
firecrawl map "<url>" --include-subdomains --sitemap -o .firecrawl/urls.jsonCrawl — bulk extract site section (advanced — install firecrawl-crawl for full docs):
firecrawl crawl "<url>" --include-paths /docs --limit 50 --wait -o .firecrawl/crawl.json
firecrawl crawl "<url>" --max-depth 3 --delay 500 --exclude-paths /blog --wait -o .firecrawl/crawl.jsonDownload — save site as local files (advanced):
firecrawl download "<url>" --limit 20 -y -o .firecrawl/site/Interact — click/fill forms after scrape (advanced — install firecrawl-instruct for full docs):
firecrawl scrape "<url>"
firecrawl interact --prompt "Click the login button"
firecrawl interact stopAgent — AI-powered structured extraction (advanced — install firecrawl-agent for full docs):
firecrawl agent "extract all pricing tiers" --wait -o .firecrawl/data.json
firecrawl agent "extract pricing" --urls "<url>" --schema '{"tiers":[]}' --wait -o .firecrawl/data.jsonBrowser — CDP/Playwright-style automation (distinct from interact):
firecrawl browser launch-session "<url>"
firecrawl browser execute --code "document.querySelector('button').click()"
firecrawl browser list
firecrawl browser close <session-id>Output rules
- Always write to
.firecrawl/with-oto avoid context bloat - Add
.firecrawl/to.gitignore - Always quote URLs (
?and&are shell special chars) - Never read entire output at once:
head -50 file.mdorgrep "keyword" file.md - Naming:
.firecrawl/search-{query}.json,.firecrawl/{site}-{path}.md
Extract URLs from JSON results
jq -r '.data.web[].url' .firecrawl/search.jsonCredits
firecrawl credit-usage# Firecrawl output
.firecrawl/
# macOS
.DS_Store
**/.DS_Store
# Local config
*.local.md
*.webloc
# Local archive
_archive/
MIT License
Copyright (c) 2026 Alex Smedile
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
<p align="center"> <strong>firecrawl-lean</strong> </p>
<p align="center"> <img src="./docs/assets/firecrawl-lean-mark.svg" alt="firecrawl-lean mark" width="120" height="120"> </p>
<h1 align="center">Token-efficient Firecrawl skill for Coding Agents.</h1>
<p align="center"> Web search, scrape, crawl, and extract — ~60% fewer tokens than the official skill. </p>
<p align="center"> <img alt="claude-code" src="https://img.shields.io/badge/claude--code-skill-111111"> <img alt="token-efficient" src="https://img.shields.io/badge/tokens-~60%25_fewer-ff4d00"> <img alt="firecrawl" src="https://img.shields.io/badge/powered_by-firecrawl-222222"> <img alt="license" src="https://img.shields.io/badge/license-MIT-444444"> </p>
---
What this is
A single-file Claude Code skill that gives Claude the full Firecrawl CLI — web search, scraping, crawling, structured extraction, browser automation — in a form optimized for token efficiency.
The official Firecrawl skill set ships as 5 separate skills (firecrawl, firecrawl-crawl, firecrawl-agent, firecrawl-instruct, firecrawl-browser). Each loads independently, repeats shared context, and costs tokens every time Claude reads them. This skill merges all five into one lean reference.
Why lean matters
Every skill file loads into Claude's context window on each turn. Bloated skills = wasted tokens = higher cost + slower responses.
| Official (5 skills) | firecrawl-lean | |
|---|---|---|
| Files loaded | 5 | 1 |
| Estimated tokens | ~2,400 | ~900 |
| Token reduction | — | ~60% |
| Commands covered | search, scrape, map, crawl, download, interact, agent, browser | same |
| Install | firecrawl init (per-agent) | one file |
Fewer tokens in context = more room for your actual task.
Install
npx skills add https://github.com/alexsmedile/firecrawl-leanRequires Firecrawl CLI:
npm install -g firecrawl-cli && firecrawl loginWhat's covered
| Command | What it does |
|---|---|
search | Web search — no URL needed. News, geo-targeted, full-content modes. |
scrape | Fetch a URL. Markdown, HTML, screenshot, or JSON schema output. |
map | Discover all URLs within a site. Sitemap + subdomain support. |
crawl | Bulk-extract a site section. Depth, delay, path filters. |
download | Save a site as local files. |
interact | NL-prompted browser actions — click, fill, login. |
agent | AI-powered structured extraction with schema + seed URLs. |
browser | CDP/Playwright code execution on a live session. |
Escalation pattern
search → scrape → map + scrape → crawl → interact / browser / agentStart cheap. Escalate only when needed. The skill tells Claude when and why to step up.
Token efficiency techniques
- One file, no repetition — shared context (output rules, auth, credits) written once
- Examples over prose — commands show usage; no paragraphs explaining what
--limitdoes - Advanced commands stubbed — crawl/interact/agent/browser are present but not padded; install dedicated skills only if you need them
- Output rules baked in — Claude always writes to
.firecrawl/and never dumps raw output to context
Comparison with official skills
The official Firecrawl skills are excellent and full-featured. This skill is for users who:
- Run Claude Code frequently and care about context window cost
- Want a single install, not five
- Don't need the extended documentation — just the commands
If you need deep crawl configuration, browser profiles, or parallel agent jobs, the official skills have more detail.
Credits
Built on top of Firecrawl and the Firecrawl CLI. This skill is an independent, community-maintained efficiency wrapper — not affiliated with Firecrawl.
Related skills
FAQ
When should I use Firecrawl instead of WebFetch?
Use Firecrawl for web search, JS-heavy SPA or marketing pages, full article content, or when WebFetch output is under 1000 chars or looks incomplete.
What can firecrawl-lean do?
It searches the web, scrapes URLs, maps and crawls sites, downloads sites, extracts structured data, and interacts with JS-heavy or login-gated pages via the Firecrawl CLI.