Handle tool failures when researching regulatory/government content by using fallback methods and domain knowledge
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-regulatory-fallback-research-b82d826b65a1 ,按照其中的说明把「regulatory-fallback-research」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
When researching regulatory, government, or compliance-related content, primary sources (official websites, PDFs, regulatory databases) often become inaccessible due to tool failures, access restrictions, or technical issues. This skill provides a resilient workflow to complete research tasks despite these obstacles.
Use this workflow when:
First, try to access official sources directly:
1. Use read_webpage on known regulatory URLs
2. Use search_web for specific regulatory queries
3. Attempt read_file on any available PDFs or documents
Expected outcomes:
When primary tools fail, use shell_agent for alternative information gathering:
shell_agent task: "Research [topic] compliance requirements using alternative sources.
Search for summaries, guides, or cached versions of regulatory information.
Focus on established compliance frameworks and best practices."
Strategies for shell_agent:
When both primary and secondary research tools fail:
1. Acknowledge the tool limitations explicitly
2. State you will proceed using established domain knowledge
3. Create content based on well-known regulatory frameworks
Key domains to leverage:
Continue to completion:
1. Create required outputs (checklists, summaries, documentation)
2. Note any limitations due to inaccessible sources
3. Recommend verification against current official sources
4. Structure content for easy updating when sources become available
# Document failures transparently
"Note: Primary regulatory sources (FDA.gov, state board websites)
returned access errors. Content compiled from established
compliance frameworks and industry standards."
# Proceed with domain knowledge
create_pharmacy_checklist(
categories=["prescription_handling", "controlled_substances",
"patient_counseling", "record_keeping"],
basis="OBRA-90 and standard pharmacy practice guidelines"
)
# Add verification disclaimer
"Recommendation: Verify all requirements against current state
board regulations before implementation."
shell_agent task: "Gather pharmacy compliance requirements from
secondary sources including:
1. Industry association guidelines (NCPDP, ASHP)
2. Academic pharmacy practice resources
3. State board examination study materials
4. Compliance training program outlines
Compile into structured checklist format."
Never abandon the task - Tool failures are common with government sites; persist using available methods
Be transparent - Always document which sources were inaccessible and what basis you used instead
Structure for updates - Create modular content that can be easily revised when sources become available
Prioritize safety-critical items - When uncertain, include conservative compliance measures
Recommend verification - Always advise end-users to verify against current official sources
| Failure | Fallback Action |
|---|---|
| read_webpage 'unknown error' | Try search_web, then shell_agent |
| search_web 'unknown error' | Try shell_agent research task |
| shell_agent timeout/failure | Proceed with domain knowledge |
| All tools fail | Use established domain knowledge, document limitations |
Your output is successful when: