Crawl sites

From the-agency-ai/the-agency · View interactive version

Crawl sites is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Crawl and extract content from configured sites using the provider engine

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Crawl Sites

Crawl configured sites and extract structured content using the configured crawler engine.

Arguments

How to Execute

Step 1: Resolve Provider

Read the crawl provider from agency/config/agency.yaml under crawl.provider.

# agency.yaml
crawl:
  provider: "playwright"  # or "wget", "scrapy", "webfetch"
  sites:
    - name: "docs"
      url: "https://docs.example.com"
      patterns: ["/**/*.html"]
    - name: "blog"
      url: "https://blog.example.com"
      patterns: ["/posts/*"]

The provider maps to a tool: ./agency/tools/crawl-{provider}

Step 2: Check Provider Tool Exists

Verify ./agency/tools/crawl-{provider} exists and is executable. If not:

Step 3: Read Site Configuration

Read the crawl.sites array from agency.yaml. Each site entry has:

If --site specified, filter to that site only.

Step 4: Dispatch to Provider

For each site, execute: ./agency/tools/crawl-{provider} {url} {patterns} {output}

Or for webfetch provider, use the WebFetch tool directly with each URL.

Step 5: Report

Show the user:

Provider Contract

Each crawl-{provider} tool must accept:

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.