large-file-write-heredoc

Installation
SKILL.md

Large File Write Fallback

Problem

When writing large files (typically several KB or more), two common tools may fail with unknown error due to internal payload size limits:

  • write_file — has a maximum content size it can handle in a single call.
  • shell_agent — may also hit payload limits when the task description includes large inline content.

Solution

Use run_shell with a Python heredoc pattern. This streams the file content through stdin directly into Python's open(), bypassing the payload constraints of the other tools.

Template

Installs
1
Repository
hkuds/openspace
GitHub Stars
6.7K
First Seen
Jun 18, 2026
large-file-write-heredoc — hkuds/openspace