search-fallback-workflow
What it does
This workflow helps the AI agent keep going when web search fails, while being clear about what is unverified. It is for people who still need a usable draft or answer when search is down.
When to use it
- ✓When the search tool fails two or more times in a row.
- ✓When a task can be done with well-established facts and principles, even without fresh data.
- ✓When the output will need a verification step before it is relied on.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/search-fallback-workflow/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Draft an overview of the main tenant rights in my state. Search is failing, so use what you know and flag anything I should double-check.”
5 new skills a week. 1 minute to read.
How it works
After repeated failures, the agent decides whether its own knowledge is enough, marks claims that need verification, and writes the output with careful wording. It also adds a verification checklist to the summary.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Search Fallback Workflow
When to Apply
Use this workflow when:
search_webtool fails repeatedly (typically 2+ consecutive failures)- External information is needed but unavailable due to tool limitations
- Task completion is still possible with reasonable confidence using internal knowledge
- The output can include appropriate caveats about verification needs
Core Pattern
Detect Search Failure
- Monitor
search_webresponses for errors, empty results, or timeouts - After 2 consecutive failures, assess whether the task can proceed without fresh data
- Monitor
Assess Feasibility
- Determine if internal knowledge is sufficient for the task at hand
- Identify which sections/claims require external verification
- Evaluate risk level: Can the task proceed safely with caveats?
Proceed with Internal Knowledge
- Continue the task using well-established facts, regulations, or principles
- Prioritize accuracy over completeness when uncertain
- Use conservative language for claims that cannot be verified
Flag for Verification
- Clearly mark any claims that should be verified:
[VERIFICATION NEEDED: Search tool unavailable during generation] - Include a verification checklist in the execution summary
- Distinguish between high-confidence and low-confidence assertions
- Clearly mark any claims that should be verified:
Document Limitations
- Include an explicit note in the output about search unavailability
- List specific items requiring follow-up verification
- Provide recommendations for manual verification steps
Implementation Template
## Execution Notes
**Search Tool Status**: Unavailable during generation
**Confidence Levels**:
- ✓ High confidence: Established regulations, well-documented facts
- ⚠ Medium confidence: Industry standards, commonly accepted practices
- ✗ Requires verification: Time-sensitive data, recent changes, specific citations
**Verification Checklist**:
- [ ] Verify citation: [specific reference]
- [ ] Confirm current status: [specific item]
- [ ] Review recent updates: [specific topic]
Code Pattern for Agents
# Pseudocode for search fallback detection
search_attempts = 0
max_search_attempts = 2
search_failed = False
for query in required_searches:
result = search_web(query)
if result.success:
process_result(result)
else:
search_attempts += 1
if search_attempts >= max_search_attempts:
search_failed = True
log_warning("Search tool unavailable, proceeding with fallback")
break
if search_failed:
# Apply graceful degradation
content = generate_with_internal_knowledge()
add_verification_flags(content)
document_limitations_in_summary()
Example Output Structure
When using this fallback, structure documents with clear sections:
# Document Title
## Disclaimer
This document was generated with limited access to external verification tools.
Items marked with [VERIFICATION NEEDED] should be confirmed before final use.
## Content Sections
[Standard content with internal knowledge]
## Items Requiring Verification
- Topic A: Current regulatory status needs confirmation
- Topic B: Recent policy changes should be checked
- Topic C: Specific citations require source validation
## Recommendations
1. Cross-reference with official sources
2. Verify time-sensitive information
3. Consult subject matter experts for critical decisions
Best Practices
- Don't fabricate citations - Better to flag as unverified than invent sources
- Use conservative language - "Generally," "Typically," "Commonly" instead of absolutes
- Prioritize safety - If misinformation could cause harm, recommend manual verification
- Track what's missing - Maintain a clear list of items needing follow-up
- Be transparent - Clearly communicate limitations to end users
When NOT to Use This Pattern
- Tasks requiring current/real-time data (stock prices, news, weather)
- Legal or medical advice requiring authoritative sources
- Compliance documentation where citations are mandatory
- Situations where incorrect information could cause significant harm
Related Patterns
citation-management: Handling references and sources in documentserror-recovery-workflow: General patterns for tool failure recoveryconfidence-annotation: Marking certainty levels in generated content
FAQ
How does the agent mark claims that need checking?
The skill suggests a visible tag such as a verification-needed note next to each uncertain claim.
Does the output include a checklist?
Yes, the skill asks for a verification checklist in the execution summary.
Can the agent still produce a useful answer?
Yes, the skill says to proceed with established facts and be conservative about anything it cannot verify.
Details
Original description by the author
Graceful degradation workflow for continuing tasks when web search tools fail, using internal knowledge with verification caveats
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #12995
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.