Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
kreuzberg-dev avatar

Crawling A Site

  • 1 installs
  • 26 repo stars
  • Updated July 27, 2026
  • kreuzberg-dev/plugins

Crawls a whole domain with the kreuzcrawl CLI, following links by depth and page cap, and captures every reachable page as Markdown.

About

Guides use of `kreuzcrawl crawl` to follow links across a domain with depth, page-cap, concurrency, rate-limit, domain-scope, and robots controls. A developer uses it to convert a docs site, blog, or full domain into Markdown for LLM ingestion or indexing.

  • Depth, max-pages, concurrency, and rate-limit flags with politeness defaults
  • Markdown or JSON output; falls back to headless browser for JS-only pages

Crawling A Site by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #1,980 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kreuzberg-dev/plugins --skill crawling-a-site

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars26
Last updatedJuly 27, 2026
Repositorykreuzberg-dev/plugins

What it does

Crawls a whole domain with the kreuzcrawl CLI, following links by depth and page cap, and captures every reachable page as Markdown.

Files

SKILL.mdMarkdownGitHub ↗

Crawling a site

Reach for kreuzcrawl crawl when one URL is not enough — the user wants the docs site, the blog, the marketing pages, or the whole domain.

Quick recipe

kreuzcrawl crawl https://example.com \
  --depth 3 \
  --max-pages 200 \
  --concurrent 8 \
  --rate-limit 250 \
  --stay-on-domain \
  --respect-robots-txt \
  --format markdown

Defaults you should usually override:

  • --depth 2 is shallow — set it explicitly.
  • --max-pages is unbounded by default; cap it for any unknown site.
  • --concurrent 10 is aggressive for small hosts; drop to 4-8 for

third-party sites.

Flag surface

FlagDefaultPurpose
--depth, -d2Maximum hop count from the seed URL.
--max-pages, -nHard cap on pages fetched. Set this on any unknown site.
--concurrent, -c10Parallel in-flight requests.
--rate-limit200Milliseconds between requests to the same origin.
--stay-on-domainoffSkip links that leave the seed domain.
--respect-robots-txtoffHonour robots.txt. Pass it for any third-party host.
--proxyHTTP, HTTPS, or SOCKS5 proxy URL.
--user-agentOverride the request UA. Be honest.
--timeout30000Per-request timeout in ms.
--browser-modeautoauto, always, never — see the headless-fallback skill.
--browser-endpointExternal CDP ws:// URL.
--formatjsonjson or markdown.
--configInline JSON or @file.json for the full CrawlConfig.

Multiple seed URLs are accepted positionally — the engine fans out with batch_crawl and aggregates results.

When to pick which flags

Docs sites you own

kreuzcrawl crawl https://docs.example.com \
  --depth 5 --max-pages 1000 --concurrent 16 --rate-limit 100 \
  --stay-on-domain --format markdown > docs.md

Higher concurrency and lower rate limits are fine on infrastructure you control.

Third-party sites

kreuzcrawl crawl https://blog.unknown.example \
  --depth 2 --max-pages 50 --concurrent 4 --rate-limit 500 \
  --stay-on-domain --respect-robots-txt --format markdown

Stay shallow, cap pages, throttle hard, obey robots.

Multi-seed batch

kreuzcrawl crawl \
  https://example.com/blog \
  https://example.com/docs \
  https://example.com/pricing \
  --depth 2 --max-pages 100 --stay-on-domain --format json

JSON output for batch is an array of { seed_url, result } entries — each result is a full crawl payload or { error: ... }.

Output

Markdown mode

---
URL: https://example.com/page-one
---
# Page One

… markdown content …

---
URL: https://example.com/page-two
---
…

JSON mode

Top-level CrawlResult with pages: [...]. Each page carries the rendered Markdown plus metadata, links, images, JSON-LD, and HTTP response info. Read result.pages[i].markdown.content for the Markdown string.

Politeness checklist

  • Pass --respect-robots-txt on every third-party crawl.
  • Cap --max-pages — a runaway BFS can issue tens of thousands of requests.
  • Bump --rate-limit for hosts that show signs of stress (5xx, slowdowns).
  • Identify yourself via --user-agent kreuzcrawl (contact@example.com).

Common pitfalls

  • No pages returned. The seed page may be JS-only — the engine falls

back to headless automatically in --browser-mode auto, but never mode will silently produce an empty crawl. Re-run with --browser-mode always or check the headless-fallback skill.

  • Crawl leaves the domain. Pass --stay-on-domain. Combine with

allow_subdomains: true in --config JSON to include subdomains.

  • Slow crawl. The default rate limit is 200 ms per origin — multiple

seed URLs on the same host still share the bucket. Spread seeds across hosts or raise --concurrent for unrelated origins.

  • Memory growth. Each page carries full Markdown plus structured data.

Stream JSON output to a file rather than holding it in memory; set --max-pages aggressively if downstream cannot keep up.

When to reach for map instead

If the user only needs the list of URLs (sitemap analysis, link planning, seeding another tool), use kreuzcrawl map <url> — it skips rendering and returns a flat MapResult with hundreds of URLs in seconds.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.