Aisafetyhot
wuyoscar/AISafetyHot-Hub
Query AI Safety HOT news, research papers, incidents, hot topics, and daily/weekly/monthly reports through its public read-only MCP service.
Generate documents with writefile when retrieval tools fail, with explicit guardrails against task context drift
$ npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HKUDS/OpenSpace context-anchored-fallback-report --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 .claude/skills/context-anchored-fallback-report && rm -rf skills-srcUse ~/.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/
Install the "context-anchored-fallback-report" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 into .claude/skills/context-anchored-fallback-report/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-anchored-fallback-report", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HKUDS/OpenSpace context-anchored-fallback-report --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .agents/skills && cp -r skills-src/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 .agents/skills/context-anchored-fallback-report && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "context-anchored-fallback-report" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 into .agents/skills/context-anchored-fallback-report/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-anchored-fallback-report", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HKUDS/OpenSpace context-anchored-fallback-report --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 .cursor/skills/context-anchored-fallback-report && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "context-anchored-fallback-report" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 into .cursor/skills/context-anchored-fallback-report/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-anchored-fallback-report", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HKUDS/OpenSpace.git --path benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HKUDS/OpenSpace context-anchored-fallback-report --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 .gemini/skills/context-anchored-fallback-report && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "context-anchored-fallback-report" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 into .gemini/skills/context-anchored-fallback-report/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-anchored-fallback-report", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HKUDS/OpenSpace context-anchored-fallback-reportInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .github/skills && cp -r skills-src/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 .github/skills/context-anchored-fallback-report && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "context-anchored-fallback-report" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 into .github/skills/context-anchored-fallback-report/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-anchored-fallback-report", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HKUDS/OpenSpace context-anchored-fallback-report --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 .opencode/skills/context-anchored-fallback-report && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "context-anchored-fallback-report" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 into .opencode/skills/context-anchored-fallback-report/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-anchored-fallback-report", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
context-anchored-fallback-reportGenerate documents with writefile when retrieval tools fail, with explicit guardrails against task context drift
Context Anchored Fallback Report is an agent skill from HKUDS/OpenSpace. Generate documents with writefile when retrieval tools fail, with explicit guardrails against task context drift
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.
It sits in AI & LLM Engineering, covering LLM guardrails. The repository describes itself as: "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3827781. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context Anchored Fallback Report loads about 2.6k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 490 words of instructions outside code blocks.
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.
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.
The full file from HKUDS/OpenSpace at commit 3827781, republished under its MIT licence (© HKUDS). 490 words, ~2,635 tokens.
.claude/skills/context-anchored-fallback-report/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.DO NOT ABANDON THE ORIGINAL TASK when tools fail. The most common failure mode is switching to an unrelated task after encountering tool errors.
CONTEXT_DRIFT_WARNING:
IF tool_failures occur (read_webpage, search_web, execute_code_sandbox)
THEN you MUST stay on the ORIGINAL task
AND you MUST NOT switch to unrelated tasks
AND you MUST generate output for the original goal using write_fileActivate this workflow when multiple primary data source tools fail during document/report generation:
START: Attempting to generate document/report
│
├─→ Tool #1 fails (read_webpage/search_web/read_file/execute_code_sandbox)?
│ │
│ ├─→ YES → Count = 1, Continue attempting
│ │
│ └─→ NO → Proceed normally with retrieved data
│
├─→ Tool #2 fails (same or different tool)?
│ │
│ ├─→ YES → Count = 2, TRIGGER FALLBACK NOW
│ │ │
│ │ ├─→ LOCK to original task goal (write it down)
│ │ ├─→ Stop attempting failing tools
│ │ └─→ Generate document with write_file + embedded knowledge
│ │
│ └─→ NO → Continue with 1-2 more attempts max
│
└─→ 2+ consecutive failures without document output?
│
└─→ CRITICAL ERROR: You are drifting from task. STOP and apply this skill.FALLBACK_TRIGGERS = {
"read_file": "returns binary/image data instead of text, or file not found",
"search_web": "returns unknown error, empty results, or rate limited",
"read_webpage": "returns unknown error, connection timeout, or blocked access",
"execute_code_sandbox": "fails with unknown error or timeout repeatedly",
"any_retrieval_tool": "2+ consecutive failures on data retrieval attempts"
}Activation threshold: 2+ failures from the above triggers = IMMEDIATE fallback activation.
CRITICAL STEP: Before any fallback action, write down the original task:
CONTEXT_ANCHOR = "[Original task goal from user request]"Example:
CONTEXT_ANCHOR = "Create PACT Act veterans benefits document explaining claim process"Rule: Every subsequent action must reference and serve this CONTEXT_ANCHOR. Never deviate.
When 2+ tool failures occur:
State the limitation clearly (once, briefly):
Note: External data sources (web search, webpage access) are currently unavailable.
This report will be generated using established domain knowledge.Declare the pivot explicitly:
Pivoting to write_file-based document generation with embedded knowledge.
Task remains: [CONTEXT_ANCHOR]Do NOT:
Before writing, inventory what you CAN provide:
# Knowledge inventory for the task
available_knowledge = {
"domain_frameworks": "General best practices, standard procedures",
"structural_templates": "Professional document formats for this type",
"actionable_guidance": "Step-by-step processes based on established patterns",
"placeholder_markers": "Where specific data would enhance (clearly marked)"
}Create professionally structured content:
# [Document Title - aligned with CONTEXT_ANCHOR]
## Executive Summary
[2-3 sentences on what this document covers, noting data source limitations if relevant]
## Background & Scope
[Context based on embedded domain knowledge]
## Core Content
[Organized sections with:
- Clear headers (##, ###)
- Bullet points and numbered lists
- Tables where appropriate
- Code blocks for technical content
]
## Data Source Notes
> **Note**: Specific data points that would typically come from [expected sources]
> were unavailable at generation time. Content reflects established practices
> in this domain.
## Actionable Recommendations
1. [Concrete step 1]
2. [Concrete step 2]
3. [Next steps for obtaining specific data if needed]
## Task Completion Status
- **Original Goal**: [CONTEXT_ANCHOR]
- **Completion Method**: Generated via write_file with embedded domain knowledge
- **Data Limitations**: [Brief note on what was unavailable]# Execution pattern
write_file(
path="[output_path].md", # or .txt, .html based on task
content=professionally_structured_markdown
)
# Verification
list_dir(path=".") # Confirm file creation
# Optional: read_file to verify content qualityBefore declaring task complete, verify:
CONTEXT_CHECKLIST = [
"✓ Output addresses ORIGINAL task goal",
"✓ No unrelated task content included",
"✓ Document is professionally structured",
"✓ Limitations are transparent but not over-emphasized",
"✓ Actionable guidance is provided",
"✓ File was successfully created"
]If any check fails, revise before completing the task.
def context_anchored_fallback(original_task, failed_tools):
"""
Generate document when tools fail, maintaining task context.
"""
# Step 0: Anchor context
context_anchor = original_task
print(f"CONTEXT ANCHOR: {context_anchor}")
# Step 1: Declare pivot
limitation_note = """
Note: External data retrieval tools experienced failures.
This document is generated using established domain knowledge.
"""
# Step 2-3: Generate structured content
document = f"""# {original_task} - Report
## Executive Summary
{limitation_note.strip()}
This report provides guidance based on established domain knowledge.
## Core Guidance
### Key Framework
[Structured content with headers, bullets, tables]
### Process Overview
1. Step one
2. Step two
3. Step three
## Data Source Notes
> Specific data from [expected sources] was unavailable.
> Recommendations reflect established best practices.
## Action Items
1. [Actionable step 1]
2. [Actionable step 2]
## Task Status
- **Goal**: {context_anchor}
- **Status**: Completed via fallback generation
- **Limitations**: Data sources unavailable, content based on domain knowledge
"""
# Step 4: Execute
output_path = "generated_report.md"
write_file(path=output_path, content=document)
# Step 5: Verify
files = list_dir(path=".")
assert output_path in [f['name'] for f in files]
return f"Task completed: {context_anchor}"| Red Flag | Corrective Action |
|---|---|
| Thinking about a different task than the original | STOP. Re-read CONTEXT_ANCHOR. |
| More than 3 tool retry attempts | STOP. Trigger fallback immediately. |
| Considering "maybe this task isn't possible" | STOP. Generate with available knowledge. |
| Output doesn't match original task goal | STOP. Regenerate aligned with CONTEXT_ANCHOR. |
| Spending >5 iterations on tool troubleshooting | STOP. Pivot to write_file approach. |
| Do | Don't |
|---|---|
| Write CONTEXT_ANCHOR before any fallback action | Start generating without anchoring to original task |
| Trigger fallback after 2 tool failures | Retry failing tools 5+ times |
| Generate complete document with available knowledge | Leave task incomplete due to missing data |
| Mark unverifiable specifics clearly | Present猜测 as verified facts |
| Verify output matches original task | Assume task is complete without checking |
| Use professional document structure | Output unstructured text |
| Pitfall | Solution |
|---|---|
| Context drift after tool failures | Write CONTEXT_ANCHOR visibly before generating; check every output against it |
| Over-apologizing for limitations | State limitation once, then deliver value |
| Under-delivering (no output) | A structured partial report beats no report |
| Misrepresenting certainty | Use hedging: "typically", "generally", "established practice" |
| Skipping verification | Always run list_dir to confirm file creation |
Task is successfully completed when ALL are true:
┌─────────────────────────────────────────────────────────┐
│ CONTEXT-ANCHORED FALLBACK - QUICK TRIGGER │
├─────────────────────────────────────────────────────────┤
│ IF 2+ retrieval tools fail │
│ THEN: │
│ 1. Write CONTEXT_ANCHOR = [original task] │
│ 2. Stop retrying failed tools │
│ 3. Generate document with write_file │
│ 4. Use embedded domain knowledge │
│ 5. Verify output matches CONTEXT_ANCHOR │
│ 6. Confirm file created with list_dir │
│ │
│ NEVER: │
│ - Switch to unrelated task │
│ - Retry >3 times without pivoting │
│ - Abandon original task goal │
└─────────────────────────────────────────────────────────┘© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 of HKUDS/OpenSpace.
Open the folder on GitHubat commit 3827781
Context Anchored Fallback Report 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Context Anchored Fallback Report this skillHKUDS/OpenSpace | 7.8k | — | ~2.6k | Automated safety check: Pass | MIT | |
| Aisafetyhotwuyoscar/AISafetyHot-Hub | 641 | — | ~1.4k | Automated safety check: Pass | Custom licence | |
| ObliteratusRedWoodOG/Hermes-Desktop | 177 | 5 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Lemonade Router Builderamd/skills | 406 | — | ~4k | Automated safety check: Pass | MIT | |
| Execution Guardrailsmrtooher/fable-mode | 872 | — | ~1k | Automated safety check: Pass | None | |
| Writing Eval Scenariosopen-bias/open-bias | 143 | — | ~1.5k | Automated safety check: Pass | Apache-2.0 |
wuyoscar/AISafetyHot-Hub
Query AI Safety HOT news, research papers, incidents, hot topics, and daily/weekly/monthly reports through its public read-only MCP service.
RedWoodOG/Hermes-Desktop
Remove refusal behaviors from open-weight LLMs using OBLITERATUS — mechanistic interpretability techniques (diff-in-means, SVD, whitened SVD, LEACE, SAE decomposition, etc.) to excise guardrails…
amd/skills
Turns a natural-language description of routing intent into a valid Lemonade collection.router policy JSON.
mrtooher/fable-mode
Always-on operational guardrails, model-independent. An agent skill from mrtooher/fable-mode.
open-bias/open-bias
Guide for writing eval conversation JSONs and running them through policy engines
gambitph/Stackable
A skill your agent uses when you need a deterministic inspection of a WordPress repository (plugin/theme/block theme/WP core/Gutenberg/full site) including tooling/tests/version hints, and a…
HKUDS/OpenSpace
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.
HKUDS/OpenSpace
Handle cascading data retrieval tool failures by falling back to embedded knowledge generation
HKUDS/OpenSpace
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.
HKUDS/OpenSpace
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.
HKUDS/OpenSpace
Fallback ladder for failed sandboxed code runs, plus the habit of fixing the working directory first so generated files land in the right place.
HKUDS/OpenSpace
Fallback workflow for executing Python code when executecodesandbox fails repeatedly
Categories
Generate documents with writefile when retrieval tools fail, with explicit guardrails against task context drift. Context Anchored Fallback Report is an agent skill from HKUDS/OpenSpace.
Context Anchored Fallback Report fits situations like: tasks that involve LLM guardrails.
Run `npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a claude-code`. Or copy the skill folder (benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 in HKUDS/OpenSpace) into .claude/skills/context-anchored-fallback-report in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a codex`. Or copy the skill folder (benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2 in HKUDS/OpenSpace) into .agents/skills/context-anchored-fallback-report in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/OpenSpace --skill context-anchored-fallback-report -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-anchored-fallback-report, .gemini/skills/context-anchored-fallback-report, .github/skills/context-anchored-fallback-report and .opencode/skills/context-anchored-fallback-report in your project.
SKILL.md names no scripts, command-line tools or credentials: Context Anchored Fallback Report is instructions for the agent only. Our summary lists: Python 3.
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.
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.
Context Anchored Fallback Report is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Context Anchored Fallback Report: Aisafetyhot (wuyoscar/AISafetyHot-Hub, 641 stars), Obliteratus (RedWoodOG/Hermes-Desktop, 177 stars), Lemonade Router Builder (amd/skills, 406 stars) and Execution Guardrails (mrtooher/fable-mode, 872 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HKUDS (a GitHub organization) maintains it in HKUDS/OpenSpace, which has 7,750 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.