Handle web research failures with explicit error recognition and domain-specific fallback strategies
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-research-fallback-enhanced-5edc9388355f ,按照其中的说明把「research-fallback-robust」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
This skill provides a workflow for handling tasks that require external research when web search or webpage reading tools fail due to network issues or tool unavailability.
Begin by attempting to use available web research tools:
1. Use search_web for current information, statistics, or recent developments
2. Use read_webpage for detailed source material when URLs are provided
3. Document what you attempted to find
Recognize when to pivot — including explicit error patterns:
unknown error from search_web — immediately recognize this as a tool failure trigger (do not retry excessively)Do not spend excessive time retrying failed tools. After 1-2 attempts with unknown error or similar failures, proceed to Step 3.
When external tools fail:
When producing deliverables:
- Include a note that external verification is recommended for time-sensitive information
- Flag any claims that would benefit from current source verification
- Focus on established principles, frameworks, and well-documented facts
- Avoid making specific claims about very recent events or statistics
Proceed with the original task deliverable:
Task requires research on [TOPIC]
|
v
Attempt search_web / read_webpage
|
+----+----+
| |
Success Failure (after 1-2 attempts)
| |
| | **Note: `unknown error` = immediate pivot signal**
v v
Use sources Pivot to internal knowledge
| |
+----+----+
|
v
Generate content with appropriate disclaimers
|
v
Create deliverable file
unknown error from search_web is a clear signal to pivot, not a reason for extended retriesExample 1: Legal Memo
Task: Create legal memo on privacy law violations
Workflow:
unknown errorOutcome: Comprehensive memo produced despite tool failures, with appropriate disclaimers about verification.
Example 2: Anatomical/Medical Content
Task: Create proposal with anatomical utilization analysis and procedure capacity estimates
Workflow:
unknown errorunknown errorOutcome: High-quality proposal with anatomical tables, procedure estimates, and cost analysis created using internal knowledge, with transparent disclaimers about statistical verification.
In these cases, report the tool failure and request guidance rather than proceeding with internal knowledge alone.