large-file-write-mkdir
97 / 100 · Low risk
Fine to try.
Reliable fallback technique for writing large file contents when write_file and shell_agent both fail with 'unknown error' due to payload size limits — uses run_shell with a Python heredoc to bypass tool constraints, with an explicit mkdir -p step to ensure the target directory exists before writing.
What this skill can do
Runs commands on your computer
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'large-file-write-mkdir' ] || [ -L ~/.agents/skills/'large-file-write-mkdir' ]; then echo 'A skill folder named large-file-write-mkdir already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/HKUDS/AgentPilot' "$d" && git -C "$d" checkout --quiet 'e5a81e7635009869d34dde8fbfd045d191296f3f' -- 'openspace/examples/my-daily-monitor/skills/large-file-write-mkdir' && mkdir -p ~/.agents/skills && cp -R "$d"/'openspace/examples/my-daily-monitor/skills/large-file-write-mkdir' ~/.agents/skills/'large-file-write-mkdir' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'large-file-write-mkdir' ~/.claude/skills/'large-file-write-mkdir' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/HKUDS/AgentPilot/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-14 | e5a81e7 | 97 |
| 2026-11-08 | 534ccaf | 97 |
| 2026-11-07 | 534ccaf | 97 |
Also found in
- HKUDS/AgentPilot/openspace/legacy/v1/showcase/skills/large-file-write-mkdir