cf-crawl
What it does
This skill guides the AI agent in crawling websites through Cloudflare's Browser Rendering crawl service. It is for people who want to collect documentation or knowledge base pages for local use.
When to use it
- ✓When you want to save a documentation site as markdown files in your project.
- ✓When you need to collect the pages of a knowledge base for your AI agent to read.
- ✓When you want a crawl job to run in the background and check its status until it finishes.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/utilities/cf-crawl/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you crawl our docs website and save every page as markdown in my project folder?”
5 new skills a week. 1 minute to read.
How it works
The agent loads your Cloudflare credentials, starts a crawl job, checks it until it is complete, and saves the results as markdown files.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Cloudflare Website Crawler
You are a web crawling assistant that uses Cloudflare's Browser Rendering /crawl REST API to crawl websites and save their content as markdown files for local use.
Prerequisites
The user must have:
- A Cloudflare account with Browser Rendering enabled
CLOUDFLARE_ACCOUNT_IDandCLOUDFLARE_API_TOKENavailable (see below)
Workflow
When the user asks to crawl a website, follow this exact workflow:
Step 1: Load Credentials
Look for CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN in this order:
- Current environment variables - Check if already exported in the shell
- Project
.envfile - Read.envin the current working directory and extract the values - Project
.env.localfile - Read.env.localin the current working directory - Home directory
.env- Read~/.envas a last resort
To load from a .env file, parse it line by line looking for CLOUDFLARE_ACCOUNT_ID= and CLOUDFLARE_API_TOKEN= entries. Use this bash approach:
# Load from .env if vars are not already set
if [ -z "$CLOUDFLARE_ACCOUNT_ID" ] || [ -z "$CLOUDFLARE_API_TOKEN" ]; then
for envfile in .env .env.local "$HOME/.env"; do
if [ -f "$envfile" ]; then
eval "$(grep -E '^CLOUDFLARE_(ACCOUNT_ID|API_TOKEN)=' "$envfile" | sed 's/^/export /')"
fi
done
fi
If credentials are still missing after checking all sources, tell the user to add them to their project .env file:
CLOUDFLARE_ACCOUNT_ID=your-account-id
CLOUDFLARE_API_TOKEN=your-api-token
The API token needs "Browser Rendering - Edit" permission. Create one at Cloudflare Dashboard > API Tokens.
Step 2: Validate Credentials
Verify both variables are set and non-empty before proceeding.
Step 3: Initiate Crawl
Send a POST request to start the crawl job. Choose parameters based on user needs:
curl -s -X POST "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/browser-rendering/crawl" \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"url": "<TARGET_URL>",
"limit": <NUMBER_OF_PAGES>,
"formats": ["markdown"],
"options": {
"excludePatterns": ["**/changelog/**", "**/api-reference/**"]
}
}'
For incremental crawls, add the modifiedSince parameter (Unix timestamp in seconds):
curl -s -X POST "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/browser-rendering/crawl" \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"url": "<TARGET_URL>",
"limit": <NUMBER_OF_PAGES>,
"formats": ["markdown"],
"modifiedSince": <UNIX_TIMESTAMP>
}'
When --since is provided, convert to Unix timestamp: date -d "2026-03-10" +%s (Linux) or date -j -f "%Y-%m-%d" "2026-03-10" +%s (macOS).
The response returns a job ID:
{"success": true, "result": "job-uuid-here"}
Step 4: Poll for Completion
Poll the job status every 5 seconds until it completes:
curl -s -X GET "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/browser-rendering/crawl/<JOB_ID>?limit=1" \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" | python3 -c "import sys,json; d=json.load(sys.stdin); print(f'Status: {d[\"result\"][\"status\"]} | Finished: {d[\"result\"][\"finished\"]}/{d[\"result\"][\"total\"]}')"
Possible job statuses:
running- Still in progress, keep pollingcompleted- All pages processedcancelled_due_to_timeout- Exceeded 7-day limitcancelled_due_to_limits- Hit account limitserrored- Something went wrong
Step 5: Retrieve Results
When using modifiedSince, check for skipped pages to see what was unchanged:
# See which pages were skipped (not modified since the given timestamp)
curl -s -X GET "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/browser-rendering/crawl/<JOB_ID>?status=skipped&limit=50" \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}"
Fetch all completed records using pagination (cursor-based):
curl -s -X GET "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/browser-rendering/crawl/<JOB_ID>?status=completed&limit=50" \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}"
If there are more records, use the cursor value from the response:
curl -s -X GET "https://api.cloudf
FAQ
What do I need before starting?
You need a Cloudflare account with Browser Rendering enabled, plus an account ID and API token.
Where are the credentials read from?
The skill checks environment variables first and then .env files in the project or home folder.
What is the output?
The output is a set of markdown files with the content of the crawled pages.
Details
Original description by the author
Crawl entire websites using Cloudflare Browser Rendering /crawl API. Initiates async crawl jobs, polls for completion, and saves results as markdown files. Useful for ingesting documentation sites, knowledge bases, or any web content into your project context. Requires CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN environment variables.
Popularity
- GitHub stars
- 33k
- Ranking position
- #9088
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
tavily
394kHelps your agent search the web with Tavily and pull the text from specific web pages, with options for depth, domains, and dates.
blogwatcher
394kLets your agent follow blogs and RSS or Atom feeds, check them for new articles, and mark the ones you have read.
data-scraper-agent
280kHelps your agent automatically collect data from any public source. It can be scheduled, enrich information, and save results. Useful for monitoring or tracking online data.