Agent skill
crawl4ai
Web crawler that converts URLs to clean markdown. Use when user wants to fetch a webpage, extract web content, convert URL to markdown, or scrape website content.
Install this agent skill to your Project
npx add-skill https://github.com/alexjx/skills/tree/main/skills/crawl4ai
SKILL.md
Crawl4AI Web Crawler
Converts web pages to clean, LLM-friendly markdown using crawl4ai.
Requirements
uvmust be installed (https://docs.astral.sh/uv/)- The skill manages its own isolated Python environment via
uv sync
Setup
Before first use, run the setup script:
skills/crawl4ai/scripts/setup.sh
This will:
- Check for
uvinstallation - Run
uv syncto create.venv/and install dependencies - Install Playwright Chromium browser (
python -m playwright install chromium --with-deps) - Run
crawl4ai-doctorto verify installation
Usage
To crawl a URL and get markdown (from the skill directory):
cd skills/crawl4ai
uv run python scripts/crawl.py "https://example.com"
# Or after setup:
uv run crawl "https://example.com"
Options:
--output FILE- Save markdown to file instead of stdout--include-links- Include hyperlinks in markdown output--include-images- Include image references--no-headless- Show browser window (default: headless)--timeout SECONDS- Page load timeout (default: 30)--verbose- Enable crawler progress logs
Examples
Basic crawl
cd skills/crawl4ai
uv run python scripts/crawl.py "https://docs.python.org/3/"
Save to file
uv run python scripts/crawl.py "https://example.com" --output content.md
With all options
uv run python scripts/crawl.py "https://example.com" \
--include-links \
--include-images \
--timeout 60 \
--output result.md
Troubleshooting
If crawling fails:
- Run
uv run crawl4ai-doctorto diagnose - Ensure playwright browsers are installed:
uv run python -m playwright install chromium - Check the URL is accessible and not blocked by robots.txt
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-creator
Create Claude Code subagents. Use when user wants to create a subagent, specialized agent, or custom AI assistant for Claude Code.
skill-creator
Create new Claude Code skills in this repository. Use when user wants to add a new skill, create a skill, implement a skill, or extend Claude's capabilities with a custom workflow.
commit
Guide for creating atomic commits with conventional commit format. Use when user wants to commit changes.
agent-harness
Framework for orchestrating multiple AI agent sessions to complete complex, long-running software projects. Use when the user wants to set up or use the long-running agent harness pattern for managing multi-session projects, breaking work into discrete sessions with persistent state tracking, or implementing incremental progress workflows across multiple Claude Code sessions.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?