Skip to content
Back to skills

Crawl4ai

ASecurity

Crawl, scrape, question, or extract structured data from live websites with Crawl4AI and optional Trafilatura. Use for fresh web content, multi-page crawls, compact page reading, and JSON extraction.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 29, 2026
ai-agentsshellbashdebugging

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add romek-rozen/cc-crawl4ai --skill crawl4ai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crawl4ai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crawl4ai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/romek-rozen-crawl4ai/badge)](https://www.skillsdirectory.com/skills/romek-rozen-crawl4ai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crawl4ai
description: Crawl, scrape, question, or extract structured data from live websites with Crawl4AI and optional Trafilatura. Use for fresh web content, multi-page crawls, compact page reading, and JSON extraction.
argument-hint: "<URL> [what to crawl or extract]"
allowed-tools: Bash, Read
---

# Crawl4AI

Use the bundled non-MCP CLI. Every invocation must use the resolved plugin and project placeholders:

```bash
"${CLAUDE_PLUGIN_ROOT}/bin/crawl4ai" crawl "URL" --project-root "${CLAUDE_PROJECT_DIR}" --runtime-root "${CLAUDE_PLUGIN_DATA}" [options]
```

Quote every argument. Never concatenate user input into a shell fragment. The CLI validates parameters and invokes subprocesses without a shell.

## Choose a mode

### Compact single-page scrape (preferred for reading)

```bash
"${CLAUDE_PLUGIN_ROOT}/bin/crawl4ai" crawl "https://example.com" \
  --project-root "${CLAUDE_PROJECT_DIR}" --runtime-root "${CLAUDE_PLUGIN_DATA}" \
  --extractor trafilatura --output-format markdown
```

Trafilatura supports only a single page and `markdown`, `md`, or `text`. Markdown formatting and tables are retained by default. Add `--include-links`, `--include-images`, `--no-tables`, or `--no-include-formatting` only when requested. It saves both extracted content and sibling `.raw.html`.

For query-focused content, add:

```text
--bm25-query "specific search terms" --bm25-threshold 1.0
```

BM25 runs after Trafilatura when both are selected. A higher threshold returns fewer structural chunks.

### Regular single-page Crawl4AI output

Use `--output-format markdown` (default), `markdown-fit`, or `all`. `md` and `md-fit` are aliases. `--question "..."` asks Crawl4AI a natural-language question and may require a configured provider.

### Bounded multi-page crawl

Always set a traversal and explicit page cap:

```text
--deep-crawl bfs --max-pages 10
```

- `bfs`: broad discovery.
- `dfs`: follow branches deeply.
- `best-first`: prioritize relevant pages.
- Use Markdown, Markdown-fit, or all output.
- Do not combine deep crawl with Trafilatura, BM25, question mode, or JSON extraction.

### Structured JSON extraction

Use `--output-format json` and exactly one extraction strategy:

- LLM: `--json-extract "Extract product name and price"` (requires Crawl4AI LLM provider configuration).
- Deterministic CSS/XPath: `--schema-path "/absolute/schema.json" --extraction-config "/absolute/config.yaml"`.

Do not request JSON without an extraction strategy.

## Other options

- `--browser-config "key=value,..."`
- `--crawler-config "key=value,..."`; cache mode is added automatically unless specified.
- `--bypass-cache` only when freshness matters.
- `--output-file "path"`; relative paths resolve under the project and become absolute before execution.
- `--timeout 120`; default is 60 seconds.

The full CLI contract is available with:

```bash
"${CLAUDE_PLUGIN_ROOT}/bin/crawl4ai" crawl --help
```

## Artifact contract

Default artifacts are written under:

```text
${CLAUDE_PROJECT_DIR}/.crawl4ai/outputs/<domain>/<format>/
```

The command prints paths, not full page contents. Use `Read` on the relevant extracted artifact only after crawling. Read raw HTML only for debugging. Report the source URL, options used, artifact paths, and concise findings. Never guess page content.

If the runtime is missing, invoke or recommend `/cc-crawl4ai:crawl4ai-install`. Use `/cc-crawl4ai:crawl4ai-status` for diagnostics.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.