agentleFS
ivanrvpereiraivanrvpereira/.agents/skills/auto/crwl/SKILL.md

crwl

Skill18 starsChanged 3 months agoApache-2.0View on GitHub

Crawl and extract web content using the Crawl4AI CLI (crwl).

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    Use the crwl CLI to fetch web pages, extract structured data, and answer questions about web content.

    line 8
  2. Very specific:

    Don't use crwl for GitHub file URLs — use curl with raw URLs instead (faster, no browser needed).

    line 173

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

crwl - Web Crawling & Extraction

Use the crwl CLI to fetch web pages, extract structured data, and answer questions about web content. Always run via Bash tool.

Triggers

  • crawl this page
  • extract data from this URL
  • read this web page
  • scrape this site
  • what does this page say about

Quick Reference

TaskCommand
Fetch as markdowncrwl URL -o md-fit -B ~/.dotfiles/crwl/browser.yml -C ~/.dotfiles/crwl/crawler.yml -f ~/.dotfiles/crwl/filter_pruning.yml
Ask a questioncrwl URL -q "your question"
LLM extractioncrwl URL -j "describe what to extract" -o json
CSS extractioncrwl URL -e extract.yml -s schema.json -o json
Deep crawl (BFS)crwl URL --deep-crawl bfs --max-pages 10 -o md-fit
Save to filecrwl URL -o md-fit -O output.md

Config Files

User config files live at ~/.dotfiles/crwl/:

FilePurpose
browser.ymlHeadless, random user-agent, 1280x720 viewport
crawler.ymlBypass cache, networkidle, magic mode, excludes nav/footer/header/aside
filter_pruning.ymlPruning content filter at 0.48 threshold

Always include these flags unless the user specifies otherwise:

-B ~/.dotfiles/crwl/browser.yml \
-C ~/.dotfiles/crwl/crawler.yml \
-f ~/.dotfiles/crwl/filter_pruning.yml

Output Formats

FlagDescription
-o mdFull markdown
-o md-fitFiltered/pruned markdown (recommended for LLM consumption)
-o jsonJSON with all metadata
-o allEverything (html, markdown, metadata)

Default to -o md-fit for reading content. Use -o json for structured extraction.

Usage Patterns

1. Read a web page

crwl "https://example.com/article" \
  -o md-fit \
  -B ~/.dotfiles/crwl/browser.yml \
  -C ~/.dotfiles/crwl/crawler.yml \
  -f ~/.dotfiles/crwl/filter_pruning.yml

2. Ask a question about a page

crwl "https://example.com" \
  -q "What are the main features listed?" \
  -B ~/.dotfiles/crwl/browser.yml \
  -C ~/.dotfiles/crwl/crawler.yml

3. Extract structured data with LLM

crwl "https://example.com/products" \
  -j "Extract all products with name, price, and description" \
  -o json \
  -B ~/.dotfiles/crwl/browser.yml \
  -C ~/.dotfiles/crwl/crawler.yml

For schema-based extraction, create a JSON schema file and extraction config:

crwl "https://example.com/products" \
  -e extract_llm.yml \
  -s schema.json \
  -o json \
  -B ~/.dotfiles/crwl/browser.yml \
  -C ~/.dotfiles/crwl/crawler.yml

4. Deep crawl a site

crwl "https://docs.example.com" \
  --deep-crawl bfs \
  --max-pages 20 \
  -o md-fit \
  -B ~/.dotfiles/crwl/browser.yml \
  -C ~/.dotfiles/crwl/crawler.yml \
  -f ~/.dotfiles/crwl/filter_pruning.yml

Strategies: bfs (breadth-first), dfs (depth-first), best-first (relevance-based).

5. Crawl with authentication (browser profile)

# First, create a profile interactively (user must do this manually)
crwl profiles

# Then use it
crwl "https://private-site.com/dashboard" \
  -p my-profile \
  -o md-fit \
  -B ~/.dotfiles/crwl/browser.yml \
  -C ~/.dotfiles/crwl/crawler.yml

6. Target specific content with CSS

crwl "https://example.com" \
  -c "css_selector=article.main-content" \
  -o md-fit \
  -B ~/.dotfiles/crwl/browser.yml \
  -C ~/.dotfiles/crwl/crawler.yml \
  -f ~/.dotfiles/crwl/filter_pruning.yml

Inline Overrides

Override config file settings with -b (browser) and -c (crawler) flags:

# Show browser window
crwl URL -b "headless=false" -B ~/.dotfiles/crwl/browser.yml -C ~/.dotfiles/crwl/crawler.yml

# Target specific element and wait longer
crwl URL -c "css_selector=#content,page_timeout=60000" -B ~/.dotfiles/crwl/browser.yml -C ~/.dotfiles/crwl/crawler.yml

LLM Configuration

The default LLM provider for -j and -q is configured globally:

crwl config list                                          # View current settings
crwl config set DEFAULT_LLM_PROVIDER "openai/gpt-4o"     # Set provider
crwl config set DEFAULT_LLM_PROVIDER_TOKEN "your-key"    # Set API key

Anti-Patterns

AvoidInstead
Omitting config flagsAlways pass -B, -C, -f from ~/.dotfiles/crwl/
Using -o md for LLM inputUse -o md-fit — it's pruned and cleaner
Deep crawl without --max-pagesAlways set a limit to avoid runaway crawls
Fetching full sites for one pageUse single URL, reserve --deep-crawl for multi-page needs
Running crwl profiles in BashProfile creation is interactive — tell the user to run it manually

GitHub URLs

Don't use crwl for GitHub file URLs — use curl with raw URLs instead (faster, no browser needed).

Convert blob URLs to raw:

https://github.com/{owner}/{repo}/blob/{branch}/{path}
→ https://raw.githubusercontent.com/{owner}/{repo}/{branch}/{path}

Example:

# Instead of: crwl "https://github.com/user/repo/blob/main/src/app.py" ...
curl -sSL "https://raw.githubusercontent.com/user/repo/main/src/app.py"

Also works directly for raw.githubusercontent.com and gist.githubusercontent.com/*/raw/ URLs.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.