fallback-file-creation
Skill by HKUDS
Fallback File Creation is a skill that gives an AI assistant a manual shell workflow for creating files when code execution tools fail repeatedly. It is aimed at file creation tasks, including PDF and DOCX outputs.
Install fallback-file-creation
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.claude/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/fallback-file-creation ~/.claude/skills/fallback-file-creationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/fallback-file-creation ~/.gemini/antigravity-cli/skills/fallback-file-creationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install fallback-file-creation in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The fallback-file-creation skill gives an AI assistant a manual workflow for creating files when the execute_code_sandbox or shell_agent tools fail repeatedly. It targets file creation tasks, including specific formats such as PDF and DOCX.
The workflow checks the working directory, writes a script with a quoted shell heredoc, runs it using an explicit path, and verifies the result with tools such as ls, pdfinfo, unzip and file. The source includes examples that convert an ODT file to PDF with LibreOffice and build a DOCX from Markdown with pandoc. It suits users whose assistants need a more dependable shell-based way to create and check files.
Written from the project's SKILL.md and checked against it.
What it can do
- Working directory checkConfirms the current location with pwd and ls -la before file operations.
- Script creation via heredocWrites shell scripts with cat and a heredoc, with guidance on quoting the delimiter.
- Explicit path executionMakes scripts executable with chmod +x and runs them by full or explicit path.
- Output verificationChecks files with ls, pdfinfo, unzip -l, file and head after execution.
- Iterative debuggingSteps through error checks, dependency tests and bash -x verbose runs when verification fails.
- PDF and DOCX examplesShows LibreOffice PDF conversion and pandoc DOCX creation as worked examples.
What you need
- Bash shell
- LibreOffice (used in the PDF example)
- Pandoc (used in the DOCX example)
- pdfinfo and unzip for verification examples
Try asking
- Create a PDF from checklist.odt in /workspace and verify it.
- Build a DOCX file from action_tracker.md using the fallback workflow.
- Write a shell script that generates a file, then check its size and type.
Good to know
- Described as a manual approach to file creation.
- Examples depend on command-line tools such as LibreOffice and pandoc being installed.
- Designed for use when code execution tools fail, not as a replacement for them.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: benchmarks/gdpval/skills/fallback-file-creation/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to fallback-file-creation
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
fallback-file-creation: common questions
When should I use the fallback file creation skill?
The source says to use it when execute_code_sandbox or shell_agent fails repeatedly for file creation tasks. It also suits cases where direct shell commands are more reliable than generated scripts.
Which file formats does the skill mention?
The source names PDF and DOCX, with examples for each. It also says the verification steps work for any file using the file command and head.
How does the skill verify created files?
It runs ls -lh to check the file exists and its size, then uses format tools such as pdfinfo for PDFs and unzip -l for DOCX files.
How do I install fallback-file-creation?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fallback-file-creation free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is fallback-file-creation safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to fallback-file-creation?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
