local-web-extract
Skill1 starsChanged 6 months agoMITView on GitHub
Extract full content from webpages, articles, PDFs, and JavaScript-heavy URLs through self-hosted Firecrawl with automatic Crawl4AI fallback. Use when ordinary built-in web fetching fails, is incomplete, or when the user asks for full page extraction. Do not use metered Parallel extraction unless explicitly requested.
- Reads credentials
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agy-cliSkill
- ambitious-problem-solvingSkill
- dspy-hermes-runtime-authSkill
- dspy-rlm-hermes-runtime-authSkill
- hermes-deep-researchSkill
- high-efficiency-learning-designSkill
- socratic-argument-tutorSkill
- taskerSkill
- teachSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use the client's ordinary web search or fetch first when it is sufficient.
- Very specific: line 53
If provider is crawl4ai, mention a Firecrawl warning only when it materially affects the task or indicates degraded infrastructure.
- Distinctive: line 54
If both local providers fail and browser automation is available, use the browser as the next fallback.
- Very specific: line 55
Do not run parallel-cli extract unless the user explicitly requests Parallel's extraction service.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Local Web Extraction
Use the client's ordinary web search or fetch first when it is sufficient. Use this skill when:
- ordinary fetching fails, is blocked, or returns empty/incomplete content
- JavaScript rendering is required
- the user requests the full content of a URL
- a difficult webpage or PDF needs a self-hosted extraction fallback
For Firecrawl search, site mapping, multi-URL structured extraction, raw API access, health checks, or service troubleshooting, use the firecrawl skill instead.
Default command
local-web-extract --json "https://example.com"The command validates the target before contacting a provider. It accepts only HTTP(S) URLs that resolve to globally routable addresses and rejects embedded URL credentials. It then automatically tries:
- self-hosted Firecrawl
- self-hosted Crawl4AI if Firecrawl fails or returns inadequate Markdown
Parse the returned JSON. Use content as the extracted body, and preserve final_url, title, provider, attempted, warnings, and truncated when they matter to the answer.
Diagnostics
Force one provider only when troubleshooting or comparing extraction:
local-web-extract --provider firecrawl --json "https://example.com"
local-web-extract --provider crawl4ai --json "https://example.com"Useful limits:
local-web-extract --max-chars 100000 --timeout 90 --json "https://example.com"Failure handling
- A non-zero exit means the command rejected its arguments or URL, or extraction failed. Inspect stderr for details; provider failures are reported there.
- Surface the reported provider errors; never invent or reconstruct missing page content.
- If
provideriscrawl4ai, mention a Firecrawl warning only when it materially affects the task or indicates degraded infrastructure. - If both local providers fail and browser automation is available, use the browser as the next fallback.
- Do not run
parallel-cli extractunless the user explicitly requests Parallel's extraction service.
Configuration
The helper reads ~/.config/local-web-extract/config.env, then allows process environment variables to override it:
FIRECRAWL_API_URL=http://127.0.0.1:8081
# Legacy alias used only when FIRECRAWL_API_URL is unset:
FIRECRAWL_BASE_URL=http://127.0.0.1:8081
# Optional; leave empty when the self-hosted deployment has auth disabled.
FIRECRAWL_API_KEY=
CRAWL4AI_API_URL=https://crawler.example.internal
CRAWL4AI_ENV_FILE=/path/to/crawl4ai.envCRAWL4AI_ENV_FILE is parsed as data rather than sourced as shell code. It should contain CRAWL4AI_API_TOKEN. Crawl4AI 0.9+ requires authentication for /crawl: an exposed server needs a configured token, while a server without a token binds to the container loopback. This helper intentionally requires CRAWL4AI_API_TOKEN for its /crawl request and does not attempt unauthenticated or log-derived access. GET /health remains available without authentication. A directly exported CRAWL4AI_API_TOKEN takes precedence.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

