# Large File Writes

> Write large files in append chunks to avoid truncated tool-call arguments.

- Skill: `internscience/large-file-writes` (Agent Skill)
- Install (CLI): `npx skillmds@latest add internscience/large-file-writes`
- Raw SKILL.md: https://api.skillmd.com/api/skills/internscience/large-file-writes/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: internscience (https://skillmd.com/u/internscience)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/internscience/large-file-writes

---


# Append Mode For Large Files

## Rules

1. Do not send very large content in one `write_file` call.
2. For long outputs, split content into small chunks (for example 600-1200 characters per call).
3. Create/overwrite with the first chunk using:
   - `write_file(path=..., content=..., append=false)`
4. Add remaining chunks using:
   - `write_file(path=..., content=..., append=true)`
5. After chunked writes, verify with `read_file` or `list_dir`.

## When To Use

- Reports, markdown docs, generated code, or data dumps that may exceed model output limits.
- Any case where tool arguments risk truncation.

