OpenParable
Skip to content
← Back to skills

Harvest Deep Crawl

Research
harvest-deep-crawl

Harvest Deep Crawl is an Agent Skill for research published in the vibeeval/vibecosystem repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Multi-page deep crawling - documentation sites, wikis, knowledge bases

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/vibeeval/vibecosystem/blob/HEAD/skills/harvest-deep-crawl/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/harvest-deep-crawl, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Harvest Deep Crawl

Crawl multi-page websites following internal links to a specified depth. Ideal for building complete knowledge bases from documentation sites, wikis, and reference materials.

Usage

/crawl <url> --depth <N>

Examples

# Crawl docs site 3 levels deep
/crawl https://docs.example.com --depth 3

# Crawl a specific section
/crawl https://docs.example.com/api --depth 2

# Crawl with page limit
/crawl https://wiki.example.com --depth 5 --max-pages 50

Parameters

ParamDefaultDescription
--depth2Max link-following depth
--max-pages100Max pages to crawl
--same-domaintrueStay on same domain
--include*URL pattern to include
--exclude-URL pattern to exclude

How It Works

  1. Start at root URL, extract all internal links
  2. Follow links up to specified depth (BFS order)
  3. Extract content from each page
  4. Deduplicate pages with > 90% content overlap
  5. Build table of contents from page hierarchy
  6. Merge into coherent knowledge base
  7. Save to .claude/cache/agents/harvest/crawl-{domain}/

Output Structure

crawl-{domain}-{timestamp}/
  index.md          # Table of contents + summary
  page-001.md       # First page content
  page-002.md       # Second page content
  ...
  metadata.json     # Crawl stats, URLs, timings

Crawl Engine

Primary: crawl4ai (Docker port 11235)

curl -s http://localhost:11235/crawl \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://docs.example.com"],
    "max_depth": 3,
    "same_domain": true,
    "word_count_threshold": 50
  }'

Fallback: Manual Link Following

When Docker unavailable:

  1. WebFetch root URL
  2. Parse links from markdown output
  3. WebFetch each linked page (depth-limited)
  4. Compile results

Use Cases

ScenarioDepthMax Pages
API reference2-350
Full documentation site3-5100
Wiki section230
Changelog history1-220
Tutorial series2-330

Rules

  • Respect robots.txt
  • Max 2 requests/second
  • Skip binary files (PDF, images, videos)
  • Detect and skip infinite pagination
  • Cache results for 24 hours