Web Research
Browser-driven or scraping-based skill for real-time internet extraction using Playwright and HTTP-based fetching
- License 许可
- MIT
- 最近更新
- 2026-06-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- Web Research
- tags
- [ "web", "scraping", "browsing", "research" ]
- author
- ForgeWeave Core
- version
- 1.0.0
- skill_id
- web-research
- description
- Browser-driven or scraping-based skill for real-time internet extraction using Playwright and HTTP-based fetching
- tui_compatibility
- [ "opencode", "claude", "gemini", "qwen" ]
02 资源文件 2
- 参考文档references/politeness-policy.md908 B
- 脚本scripts/fetch_url.py2.7 KB
03 SKILL.md 正文
Web Research
Purpose
Fetch and extract content from live web pages using HTTP-based fetching (httpx + trafilatura) for standard pages and Playwright headless browser for JavaScript-rendered pages. Is the raw data acquisition layer for all research skills.
When to Use
- You need to fetch content from a specific URL
- A page requires JavaScript rendering to display its content
- You need to extract structured data from multiple pages
- Real-time information needs to be retrieved from the web
When Not to Use
- The user wants a summary of a topic they haven't specified URLs for
- The task is analyzing the local codebase
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
url or urls |
string/array | Yes | URL(s) to fetch |
mode |
enum | No (default: auto) | auto, text, html, screenshot |
js_render |
boolean | No (default: false) | Whether to use Playwright |
Expected Outputs
| Output | Description |
|---|---|
| Clean text content | Extracted main content from the page |
| Code examples | Extracted code blocks if mode=auto |
| Screenshot | Full-page screenshot if mode=screenshot |
Exact Workflow Steps
- Try HTTP fetch first using
webfetch - If response is incomplete (<2000 chars) or empty, fall back to Playwright MCP tools:
browser_navigate— navigate to the URLbrowser_snapshot— get structured accessibility tree with element refsbrowser_console_messages— check for JS errors that may indicate rendering issues
- Extract clean text content and code blocks
- If requested, take a screenshot via
browser_take_screenshot(Playwright MCP)
Required Checks
- [ ] Content was successfully extracted
- [ ] Fallback to Playwright was attempted if HTTP fetch failed
- [ ] Rate limiting was respected (1s between requests to same domain)
Failure Modes
| Failure Condition | Response |
|---|---|
| HTTP 404 | Try with Playwright (some SPAs return 404 for JS-rendered content) |
| All methods fail | Report URL as unreachable |
| Content too large | Truncate and report |
References
| Reference | Path |
|---|---|
| Web Scraper skill | ../web-scraper/SKILL.md |
| Async Crawler skill | ../async-crawler/SKILL.md |
| Playwright Architect skill | ../playwright-architect/SKILL.md |
04 同仓库更多 Skills
Workflow Orchestrator
Coordinates multi-skill execution pipelines (e.g., research → plan → build → test)
Validation Engine
Checks outputs from other skills for consistency, correctness, and adherence to AGENTS.md rules
Tool Selector
Determines which tools, APIs, MCP actions, or system capabilities are required for a given task
Test Generator
Creates test plans and test cases (unit, integration, edge cases) based on existing or planned code
Skill Generator
Meta-skill that creates new SKILL.md files from research outputs and patterns discovered in execution
skill-builder
Complete guide for designing, writing, testing, iterating, and packaging Claude Skills (SKILL.md files). Use this skill whenever someone wants to: create a new skill from scratch, improve or update an existing skill, understand the skill format, write a SKILL.md, build a skill folder with scripts and references, evaluate whether a skill is well-written, package a skill for distribution, optimize a skill's trigger description, or understand best practices for Agent Skills. Triggers include phrases like "build a skill", "write a SKILL.md", "make a skill for", "improve this skill", "skill format", "create an agent skill", "how do I write a skill", or any request to teach Claude a domain-specific capability through the skills system.