Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

web-fetch

verified

Fetch and extract readable content from web pages. Use for lightweight page access without browser automation.

View on GitHub

Repository

zhayujie/chatgpt-on-wechat
41.0kstars

skills/web-fetch/SKILL.md

Last Verified

February 3, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/zhayujie/chatgpt-on-wechat/blob/cb303e6109c50c8dfef1f5e6c1ec47223bf3cd11/skills/web-fetch/SKILL.md -a claude-code --skill web-fetch

Installation paths:

Claude
.claude/skills/web-fetch/
Powered by add-skill CLI

Instructions

# Web Fetch

Fetch and extract readable content from web pages using curl and basic text processing.

## Usage

**Important**: Scripts are located relative to this skill's base directory.

When you see this skill in `<available_skills>`, note the `<base_dir>` path.

```bash
# General pattern:
bash "<base_dir>/scripts/fetch.sh" <url> [output_file]

# Example (replace <base_dir> with actual path from skill listing):
bash "~/chatgpt-on-wechat/skills/web-fetch/scripts/fetch.sh" "https://example.com"
```

**Parameters:**
- `url`: The HTTP/HTTPS URL to fetch (required)
- `output_file`: Optional file to save the output (default: stdout)

**Returns:**
- Extracted page content with title and text

## Examples

### Fetch a web page
```bash
bash "<base_dir>/scripts/fetch.sh" "https://example.com"
```

### Save to file
```bash
bash "<base_dir>/scripts/fetch.sh" "https://example.com" output.txt
cat output.txt
```

## Notes

- Uses curl for HTTP requests (timeout: 10s)
- Extracts title and basic text content
- Removes HTML tags and scripts
- Works with any standard web page
- No external dependencies beyond curl

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1102 chars