Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 84
  • 8.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-creation

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install fallback-file-creation in Claude Code

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

A

No 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 →

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.

fallback-file-creation Install

Add to stack

Loading.