Agent skill
wget-reader
Fetch data from URLs. Use when asked to download content, fetch remote files, or read web data.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/wget-reader
SKILL.md
Wget URL Reader
Overview
Fetches content from URLs using wget command-line tool. Supports downloading files, reading web pages, and retrieving API responses.
Instructions
-
When user provides a URL to read or fetch:
- Validate the URL format
- Use wget with appropriate flags based on content type
-
For reading content to stdout (display):
bashwget -qO- "<URL>" -
For downloading files:
bashwget -O "<filename>" "<URL>" -
For JSON API responses:
bashwget -qO- --header="Accept: application/json" "<URL>" -
Common wget flags:
-q: Quiet mode (no progress output)-O-: Output to stdout-O <file>: Output to specific file--header: Add custom HTTP header--timeout=<seconds>: Set timeout--tries=<n>: Number of retries--user-agent=<agent>: Set user agent
Examples
Example: Read webpage content
Input: "Read the content from https://example.com" Command:
wget -qO- "https://example.com"
Example: Download a file
Input: "Download the file from https://example.com/data.json" Command:
wget -O "data.json" "https://example.com/data.json"
Example: Fetch API with headers
Input: "Fetch JSON from https://api.example.com/data" Command:
wget -qO- --header="Accept: application/json" "https://api.example.com/data"
Example: Download with timeout and retries
Input: "Download with 30 second timeout" Command:
wget --timeout=30 --tries=3 -O "output.txt" "<URL>"
Guidelines
Do
- Always quote URLs to handle special characters
- Use
-qflag to suppress progress bars in scripts - Add
--timeoutfor unreliable endpoints - Respect robots.txt and rate limits
Don't
- Use
--no-check-certificateunless necessary - Fetch URLs without validating format first
- Ignore HTTP error codes in responses
- Store credentials in command history
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?