Chalk Labs
Need help deploying web_fetch?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/longzhi-web-fetch
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/web-fetch
What's inside
- Skill name
web_fetch- Description
- Fetch and extract content from web URLs. Use when you need to: (1) Read a web page's content, (2) Download text from a URL, (3) Extract article text from a news site, (4) Get raw HTML or plain text from any URL. Uses curl via execute_command. For JavaScript-heavy sites or anti-bot protected pages, use the actionbook skill instead.
- License
- MIT
- Instructions
- 102 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
Files (1)
- SKILL.md
SKILL.md (first lines)
# Web Fetch - URL Content Retrieval
Fetch web page content using `curl` via the `execute_command` tool. This skill handles static pages and APIs. For JavaScript-rendered or anti-bot protected sites, use the `actionbook` skill instead.
## When to Use
- Fetching article text, documentation, blog posts
- Downloading API responses (JSON, XML)
- Reading plain HTML pages
- Getting raw content from URLs the user provides
## When NOT to Use (Use actionbook instead)
- Twitter/X content (requires JS rendering + anti-bot)
- Single-page apps (React, Vue, Angular)
- Sites requiring login/cookies
- Pages with heavy JavaScript rendering
## How to Fetch
Use `execute_command` to run `curl`. Always include these flags for reliability:
```bash
# Basic fetch (returns HTML)
curl -sL -m 30 -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' "URL"
# Follow redirects, 30s timeout, realistic User-Agent
```
### Flag Reference
| Flag | Purpose |
|------|---------|
| `-s` | Silent mode (no progress bar) |
| `-L` | Follow redirects |
| `-m 30` | Timeout after 30 seconds |
| `-A '...'` | Set User-Agent to avoid bot blocking |
| `-o /dev/null -w '%{http_code}'` | Check HTTP status only |
| `-H 'Accept: application/json'` | Request JSON response |
## Workflow Patterns
### Pattern 1: Fetch and Read a Web Page
```bash
# Step 1: Fetch the page
curl -sL -m 30 -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' "https://example.com/article"
```
The output will be HTML. Extract the relevant text content from the HTML and present it to the user.
### Pattern 2: Fetch JSON API
```bash
# Fetch JSON data
curl -sL -m 30 -H 'Accept: application/json' "https://api.example.com/data"
```
### Pattern 3: Check if URL is accessible
```bash
# Check status code first
curl -sL -m 10 -o /dev/null -w '%{http_code}' "https://example.com"
```
### Pattern 4: Fetch with text extraction (using sed/awk)
```bash
# Fetch and strip HTML tags for rough text extraction
curl -sL -m 30 -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' "https://example.com" | sed 's/<[^>]*>//g' | sed '/^$/d' | head -200
```
### Pattern 5: Download to a file
```bash
# Save content to a file for later processing
curl -sL -m 60 -o /tmp/page.html "https://example.com/page"
```
## Content Extraction Tips
After fetching HTML, you can extract text by:
1. **Reading the raw HTML** and identifying the main content area
2. **Using sed** to strip tags: `sed 's/<[^>]*>//g'`
3. **Using grep** to find specific patterns: `grep -oP '(?<=<title>).*(?=</title>)'`
## Error Handling
- If curl times out → increase `-m` value or report URL is unreachable
- If 403/429 → site may block bots, suggest using `actionbook` skill with stealth mode
- If SSL error → try with `-k` flag (insecure, warn user)
- If empty response → check URL validity, try with different User-Agent
## Limitations
- Cannot execute JavaScript (use actionbook for JS-heavy sites)
- Cannot handle CAPTCHAs or bot challenges
- Cannot maintain session state across requests (use actionbook with profiles)
- Large pages may be truncated by execute_command output limitsFrom longzhi/clawhive, MIT.
Signals
- Stars
- 56
- Forks
- 14
- Open issues
- 15
- Last commit (this folder)
- Feb 23, 2026 (8 months ago)
- Last release
- Apr 20, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/longzhi/clawhive
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from longzhi
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get web_fetch running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
web_fetch skill. Agent Mart. https://agentmart.dev/skills/longzhi-web-fetch (last updated 2026-10-24)