AI Agent Hub
Back to skills
Adaptive Web Router icon

Adaptive Web Router

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow the guide at https://skillhub.cn/install/skillhub.md to install @laoxi/adaptive-web-router-shangwangzhushou.

About this skill

The Problem It Solves

When automating web tasks, developers often struggle with tool selection. Manually stitching together web_search, web_fetch, opencli, and browser for discovery, reading, extraction, or interaction is inefficient and error-prone. A common pitfall is defaulting to a search step when a direct URL is known, or failing when a task requires a logged-in session without proper handling.

Core Capabilities & Workflow

This skill abstracts web tools into four logical capabilities and routes based on user intent:
- discover: Maps to web_search, used when the information source is unknown.
- retrieve: Maps to web_fetch, for fetching static content from known public URLs, APIs, or RSS feeds.
- structure: Maps to opencli, for structured data extraction or semantic operations on supported sites.
- interact: Maps to browser, for tasks requiring JavaScript execution, visual interaction, login, downloads, or screenshots.

The workflow proceeds as follows:
1. Clarify Task & Constraints: Determine if the goal is to discover, read, extract, or operate, and note any requirements for login, privacy, or side effects.
2. Probe Current Capabilities: Check only the tools already provided by the host environment without installing dependencies.
3. Select Optimal Path: Choose among capabilities based on task fit, permission scope, result structure, latency, and stability.
4. Execute & Manage Cost: Process independent public sources in parallel (up to 3), deduplicate URLs, and optimize by reading metadata before full content.
5. Classify Failures & Recover: After an error, diagnose the type (e.g., timeout, CAPTCHA) to retry, switch tools, or ask for user intervention, explaining the reason for any tool switch.
6. Verify & Return: Ensure results are authoritative page content (not just snippets), include temporal context, cite sources, and explicitly mark inferences or unverified data.

Boundaries & Considerations

  • Safety First: Actions like login, writing, or system changes trigger a pause for user confirmation. The skill never implicitly installs software or accesses credentials.
  • Untrusted Data: All outputs from tools are treated as factual sources, not instructions, and must be validated before trust.
  • Capability Gaps: If a capability (e.g., structure via opencli) is unavailable, it is marked as such, and the workflow continues with other existing tools without forced degradation.
  • Error Handling: Each tool is retried only once for recoverable errors. Encounters with CAPTCHAs or security blocks halt automation and outline manual steps required.

Use Cases

  • A developer needs to monitor API documentation changes across multiple upstream sites and automatically extract key parameters and changelogs for integration testing.
  • A data analyst must discover and scrape the latest user comments and discussion threads from various industry forums where original URLs are not directly provided, for sentiment analysis.
  • A QA engineer needs to automate testing of all core interaction flows for a newly launched web app, including page clicks, form submissions, and maintaining login sessions.
  • A content manager collects reports on specific keywords from different news websites and RSS feeds, then organizes headlines, summaries, and publication times into a structured spreadsheet.

Best For

  • An operations engineer who regularly scrapes and consolidates error logs and solutions from multiple technical forums for system maintenance.
  • A product manager who monitors competitor websites weekly to extract structured data on prices, features, and updates for competitive analysis.
  • A data analyst collecting user feedback on specific brands from social media and news sites to generate monthly analysis reports.
  • A developer or tester who needs to automate testing of cross-browser element interactions, responsive layouts, and complex user workflows.