Structured page extraction via z-ai-web-dev-sdk, returning title, HTML, and publication time for a given URL.

CCM score
39 of 100
skills.sh installs
1.7K
GitHub stars
26
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers backend fetching of a single web page through the page_reader function, plus CLI use for one-off extraction
  • Includes CLI examples using z-ai function -n page_reader -a with -o for JSON output, and SDK examples for single and batch reads
  • Returns title, main content HTML, plain text, publish time, URL, and metadata, with a cache-aware analyzer class for repeat URLs
  • Designed for backend applications and scripts that process article or documentation pages, and must never run client-side

Install

$ npx -y skills add answerzhao/agent-skills --skill web-reader -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Web Reader Skill

This skill guides the implementation of web page reading and content extraction functionality using the z-ai-web-dev-sdk package, enabling applications to fetch and process web page content programmatically.

Skills Path

Skill Location: {project_path}/skills/web-reader

This skill is located at the above path in your project.

Reference Scripts: Example test scripts are available in the {Skill Location}/scripts/ directory for quick testing and reference. See {Skill Location}/scripts/web-reader.ts for a working example.

Overview

Web Reader allows you to build applications that can extract content from web pages, retrieve article metadata, and process HTML content. The API automatically handles content extraction, providing clean, structured data from any web URL.

IMPORTANT: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code.

Prerequisites

The z-ai-web-dev-sdk package is already installed. Import it as shown in the examples below.

CLI Usage (For Simple Tasks)

Details

Repository
github.com/answerzhao/agent-skills
Categories
Browser Automation & Scraping, Backend & APIs