Agent skill

Research Fallback

by HKUDS in HKUDS/OpenSpace

Handle web research failures by pivoting to internal knowledge for content generation

MITAuto-check passed

Install Research Fallback

skills CLI
$ npx skills add HKUDS/OpenSpace --skill research-fallback -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HKUDS/OpenSpace research-fallback --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/benchmarks/gdpval/skills/research-fallback .claude/skills/research-fallback && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
research-fallback
GitHub stars
7.7k
Token cost
~1.1k tokens
SKILL.md length
435 words
Files
2
Skills in repo
199
Repo updated
First seen
Licence
MIT

At a glance

Handle web research failures by pivoting to internal knowledge for content generation

  • Works in 5 steps: Attempt External Research First → Detect Tool Failure → Pivot to Internal Knowledge → …
  • SKILL.md covers When to Use, Workflow Steps, Example Decision Flow and Best Practices, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Research Fallback is an agent skill from HKUDS/OpenSpace. Handle web research failures by pivoting to internal knowledge for content generation

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.

The repository describes itself as: "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/. The licence is MIT.

Example prompts

  • “/research-fallback”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Attempt External Research First
  2. Detect Tool Failure
  3. Pivot to Internal Knowledge
  4. Generate Content with Appropriate Disclaimers
  5. Complete File Creation

What it can do on your machine

Read from SKILL.md and the folder at commit 3827781. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Research Fallback loads about 1.1k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 435 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HKUDS/OpenSpace at commit 3827781, republished under its MIT licence (© HKUDS). 435 words, ~1,074 tokens.

Download SKILL.mdSave it as .claude/skills/research-fallback/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
research-fallback
description
Handle web research failures by pivoting to internal knowledge for content generation

Research Fallback Workflow

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.

When to Use

  • Task requires external research (legal analysis, market research, technical documentation, etc.)
  • Web search or webpage reading tools are failing or unavailable
  • You have sufficient internal knowledge to proceed with reasonable accuracy
  • Task completion is prioritized over perfect external sourcing

Workflow Steps

Step 1: Attempt External Research First

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
Step 2: Detect Tool Failure

Recognize when to pivot:

  • Web search returns errors, timeouts, or empty results
  • Page extraction fails repeatedly
  • Network errors persist after 1-2 retry attempts
  • Tool explicitly reports unavailability

Do not spend excessive time retrying failed tools. After 1-2 attempts, proceed to Step 3.

Step 3: Pivot to Internal Knowledge

When external tools fail:

  1. Acknowledge the limitation: Note that external research was attempted but tools were unavailable
  2. Assess internal knowledge: Determine what you know from training that covers the topic
  3. Identify gaps: Be transparent about what information may be dated or unavailable
  4. Proceed with available knowledge: Generate content using internal understanding
Step 4: Generate Content with Appropriate Disclaimers

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
Step 5: Complete File Creation

Proceed with the original task deliverable:

  • Create the requested file format (PDF, DOCX, markdown, etc.)
  • Ensure content meets quality standards despite the research limitation
  • Stay within any specified constraints (page limits, word counts, etc.)

Example Decision Flow

Task requires research on [TOPIC]
         |
         v
Attempt search_web / read_webpage
         |
    +----+----+
    |         |
 Success    Failure (after 1-2 attempts)
    |         |
    v         v
Use sources  Pivot to internal knowledge
    |         |
    +----+----+
         |
         v
Generate content with appropriate disclaimers
         |
         v
Create deliverable file
Show full SKILL.md (186 more words)Show less

Best Practices

  1. Be transparent: Clearly note when external verification wasn't possible
  2. Prioritize accuracy: Only assert what you're confident about from training
  3. Flag uncertainties: Mark areas where current sources would be valuable
  4. Don't block progress: Tool failures shouldn't prevent task completion
  5. Maintain quality: Internal knowledge can still produce high-quality, useful content

Example Application

Task: Create legal memo on privacy law violations

Workflow:

  1. Attempt search_web for recent COPPA enforcement cases → Tool fails
  2. Attempt read_webpage on provided URLs → Connection timeout
  3. Pivot: Use internal knowledge of COPPA requirements, California privacy laws, established case law principles
  4. Generate memo with note that recent case citations should be verified
  5. Create PDF deliverable within page limits

Outcome: Comprehensive memo produced despite tool failures, with appropriate disclaimers about verification.

When NOT to Use This Skill

  • Task explicitly requires current, verified external sources (e.g., real-time stock prices, breaking news)
  • Legal/medical advice where current regulations are critical and disclaimer is insufficient
  • Client specifically requires cited external sources for the deliverable

In these cases, report the tool failure and request guidance rather than proceeding with internal knowledge alone.

© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in benchmarks/gdpval/skills/research-fallback of HKUDS/OpenSpace.

  • SKILL.md
  • .skill_id

Open the folder on GitHubat commit 3827781

Compare with similar skills

Research Fallback next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Research Fallback compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Research Fallback this skillHKUDS/OpenSpace7.7k—~1.1kAutomated safety check: PassMIT
Error Handlingaffaan-m/ECC275k1 repos~2.7kAutomated safety check: PassMIT
Handle PR CI FailureDataDog/datadog-agent3.8k—~2.9kAutomated safety check: PassApache-2.0
Python Error Handlingwshobson/agents40k—~1.5kAutomated safety check: PassMIT
Error Handlingthedaviddias/Front-End-Checklist74k—~416Automated safety check: PassMIT
Error Handlingaffaan-m/ECC275k—~2.4kAutomated safety check: PassMIT

Similar skills

  • Error Handling

    affaan-m/ECC

    Patterns for robust error handling across TypeScript, Python, and Go.

    275k GitHub starsUsed in 1 repo~2.7k tokens
    DevelopmentAuto-check passed
  • Handle PR CI Failure

    DataDog/datadog-agent

    Official

    Handle a CI failure that is reliably attributed to the current PR's own code changes.

    3.8k GitHub stars~2.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Python Error Handling

    wshobson/agents

    Python error handling patterns including input validation, exception hierarchies, and partial failure handling.

    40k GitHub stars~1.5k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Error Handling

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing scripts, client components, bundles, or runtime behavior related to Implement proper error handling.

    74k GitHub stars~416 tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Error Handling

    affaan-m/ECC

    TypeScript、Python、Goにわたる堅牢なエラー処理のパターン。型付きエラー、エラー境界、リトライ、サーキットブレーカー、ユーザー向けエラーメッセージをカバーします。

    275k GitHub stars~2.4k tokensUpdated 3 days ago
    Auto-check passed
  • Internal Comms

    alirezarezvani/claude-skills

    A skill your agent uses when a Head of People Ops, BizOps lead, or Internal Communications owner needs to draft and sequence an internal-only change-management communication — a re-org announcement…

    28k GitHub stars~3.4k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed

More from HKUDS/OpenSpace

All 199 skills in this repo
  • Walks through producing a master audio track plus stems in Python, from checking a reference file and timing sections by BPM to effects, a zip archive and final verification.

    7.7k GitHub stars~2.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Handle cascading data retrieval tool failures by falling back to embedded knowledge generation

    7.7k GitHub stars~765 tokensUpdated 1 mo ago
    Auto-check passed
  • Gives an agent a workaround when its code-execution sandbox keeps failing: save the Python script to a file and run it through the shell instead.

    7.7k GitHub stars~588 tokensUpdated 1 mo ago
    Auto-check passed
  • A recovery routine for agents whose sandboxed code runner keeps failing: save the Python script to disk, then run it through the shell and read the output.

    7.7k GitHub stars~652 tokensUpdated 1 mo ago
    Auto-check passed
  • Fallback ladder for failed sandboxed code runs, plus the habit of fixing the working directory first so generated files land in the right place.

    7.7k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Fallback workflow for executing Python code when executecodesandbox fails repeatedly

    7.7k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Research Fallback

What does Research Fallback do?

Handle web research failures by pivoting to internal knowledge for content generation. Research Fallback is an agent skill from HKUDS/OpenSpace.

How do I install Research Fallback in Claude Code?

Run `npx skills add HKUDS/OpenSpace --skill research-fallback -a claude-code`. Or copy the skill folder (benchmarks/gdpval/skills/research-fallback in HKUDS/OpenSpace) into .claude/skills/research-fallback in your project. Claude Code loads it when a task matches its description.

How do I install Research Fallback in Codex?

Run `npx skills add HKUDS/OpenSpace --skill research-fallback -a codex`. Or copy the skill folder (benchmarks/gdpval/skills/research-fallback in HKUDS/OpenSpace) into .agents/skills/research-fallback in your project. Codex loads it when a task matches its description.

Can I use Research Fallback in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/OpenSpace --skill research-fallback -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/research-fallback, .gemini/skills/research-fallback, .github/skills/research-fallback and .opencode/skills/research-fallback in your project.

What does Research Fallback need to run?

SKILL.md names no scripts, command-line tools or credentials: Research Fallback is instructions for the agent only.

Does Research Fallback access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Research Fallback safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Research Fallback use?

Research Fallback is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Research Fallback use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Research Fallback?

Skills that share tags, products or a category with Research Fallback: Error Handling (affaan-m/ECC, 275k stars), Handle PR CI Failure (DataDog/datadog-agent, 3.8k stars), Python Error Handling (wshobson/agents, 40k stars) and Error Handling (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Research Fallback?

HKUDS (a GitHub organization) maintains it in HKUDS/OpenSpace, which has 7,749 GitHub stars. The repository holds 199 skills in this directory. The repository was last updated on August 12, 2026.

Source: HKUDS/OpenSpace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.