Web Tool Decision Strategy
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_9ca58e78/ddd.
About this skill
Problem Background
Web information retrieval is often treated as a fixed pipeline: search first, fetch next, then fall back to a browser on failure. In practice, the right tool depends on whether a URL is known, whether the page is static, and whether login or interaction is required. This skill treats web_search, web_fetch, opencli, and browser as branching decisions rather than a strict hierarchy, reducing unnecessary heavy browser use and avoiding silent failures.
How It Works
The core is a ReAct-style decision strategy:
- No explicit URL: start with web_search to collect clues, then inspect the returned URLs before choosing the next step.
- Known static URL: use web_fetch for articles, docs, API endpoints, or RSS feeds.
- Structured data needs: if search or fetch fails and the target is a common site, try opencli first because it is lighter than a full browser.
- Dynamic, login, interaction, or screenshot needs: escalate to browser for element waiting, CSS selector targeting, clicking, typing, or capture.
Important constraints include explaining why a tool is changed, requiring user confirmation for login and irreversible actions, and waiting for meaningful elements instead of fixed sleep delays. If web_search fails, the skill guides the user through the relevant configuration document and completes API setup only after user consent; otherwise it follows a limited fallback path.
Scope and Caveats
It fits public research, article extraction, structured reads on known sites, and restricted pages that need login state or interaction. For CAPTCHA, payment, posting, deletion, or other high-risk scenarios, it pauses for human intervention instead of bypassing protections automatically. If the target is not in the known-site list and web_fetch returns blank pages, 403 responses, or skeleton HTML, manual review or additional user-provided URLs and credentials are required.
Use Cases
- Track competitor announcements by searching the latest URL, fetching the static article, then escalating to opencli or browser if fetch fails.
- Read a known API doc or RSS feed with web_fetch, then try opencli or browser when the page returns blank, 403, or skeleton HTML.
- Extract JS-rendered content from a feed or discussion page by using browser to wait for elements, scroll, click, and copy text.
- Retrieve a logged-in dashboard report after user confirmation, then keep the same browser context for filtering and screenshot.
Best For
- Engineers maintaining AI agent toolchains who need scenario-based selection among web_search, web_fetch, opencli, and browser with explicit fallback reasons.
- Data extraction engineers who need to handle static pages, JS-rendered pages, login state, and CAPTCHA boundaries.
- Analysts or operators who need to capture competitor posts, Weibo feeds, or Zhihu answers from restricted or dynamic pages.
- Test or automation engineers who need to filter, paginate, and screenshot a logged-in dashboard while reusing the same browser context.
Related Skills
Provides Claw with character-library selection, switching, saving, and global SOUL.md style sync for role-based conversation.
An AIONE Agentic AI Infrastructure SDK wrapper for building production AI agents with memory, skills, workflows, and hooks.
A Python/TypeScript SDK wrapper for the DeepSeek-Reasonix native AI coding agent, with prefix-cache support.
A browser automation tool for analysts, operators, and developers that locates elements, fills forms, extracts structured content, and supports no-code scheduling and export.