跳到主要内容
知仓学习社ZHICANG

mapping-urls

>-

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少1 个文本文件,4 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Mapping URLs

kreuzcrawl map <url> discovers the URLs a site exposes without rendering or

extracting any page content. It reads sitemap.xml (including nested

sitemaps), then falls back to link extraction from the seed page. Use it to

plan a crawl, audit a site's surface, or feed a URL list into another tool.

Quick recipe

kreuzcrawl map https://example.com --limit 500 --search docs --format markdown

Markdown output prints one URL per line — convenient to pipe into a file or a

follow-up crawl. JSON output (default) returns a structured MapResult.

Flag surface

| Flag | Default | Purpose |

| ---------------------- | ------- | ------------------------------------------------------------- |

| --limit | — | Maximum number of URLs to return. Unbounded if unset. |

| --search | — | Case-insensitive substring filter on discovered URLs. |

| --respect-robots-txt | off | Honour robots.txt. Pass it for any third-party host. |

| --format | json | json (full MapResult) or markdown (one URL per line). |

| --timeout | 30000 | Per-request timeout in ms. |

| --browser-mode | auto | auto, always, never — see the headless-fallback skill. |

| --browser-endpoint | — | External CDP ws:// URL. |

| --config | — | Inline JSON or @file.json for the full CrawlConfig. |

map takes a single seed URL positionally. There is no --depth or

--max-pages here — those bound a crawl, not a map. Scope is the seed host's

sitemaps plus links found on the seed page; bound the result with --limit and

narrow it with --search.

How discovery works

  1. Fetch and parse sitemap.xml, following nested <sitemapindex> entries.
  2. If no sitemap (or a thin one), extract links from the seed page's HTML.
  3. Apply the --search substring filter (case-insensitive), then --limit.

No page bodies are rendered, so a map of hundreds of URLs returns in seconds —

far cheaper than crawling. In --browser-mode auto the seed fetch still falls

back to headless Chrome if the seed page is a JS shell that hides its links;

pass --browser-mode never to keep it static-only.

Output

Markdown mode

https://example.com/
https://example.com/docs/
https://example.com/docs/getting-started
https://example.com/blog/post-one

JSON mode

Top-level MapResult with a urls array; each entry carries the discovered

url. Read result.urls[i].url for each string when scripting.

kreuzcrawl map https://example.com --format json | jq -r '.urls[].url'

Common patterns

Discover then crawl a subsection

kreuzcrawl map https://example.com --search /docs/ --format markdown > urls.txt

Feed the filtered list into a bounded crawl, or scrape individual entries.

Audit a third-party site politely

kreuzcrawl map https://unknown.example --respect-robots-txt --limit 200

When to reach for crawl instead

If the user needs the page content (Markdown, metadata, tables) rather than

just the URL list, use kreuzcrawl crawl — see the crawling-a-site skill.

Reach for map first when the goal is enumeration, planning, or seeding.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,027
本站分层T1
该仓技能数1910
原文件路径plugins/kreuzberg-dev/plugins/plugins/kreuzcrawl/skills/mapping-urls/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 1910 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 mapping-urls 的技能。它们内容并不相同,别混用: