large-file-write

Writes large code files exceeding 100 lines using Node.js scripts.

201|43|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/openyida/openyida --skill large-file-write
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: large-file-write
Source: https://github.com/openyida/openyida/tree/main/yida-skills/skills/large-file-write
Command: npx skills add https://github.com/openyida/openyida --skill large-file-write

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The skill tackles the truncation and failure issues when using heredoc or shell commands to write large files (over 100 lines), which exceed token limits and encounter shell quirks.

Core Features & Use Cases

  • Node.js script writing: Generates a temporary JavaScript file that writes the content as a template string, bypassing shell limitations.
  • Multiple write modes: Supports full write, append, and stdin‑driven write via the provided scripts/write.js.
  • Use Cases: Creating large Yida custom page code, Three.js scene scripts, or any code file larger than 100 lines where direct create_file is insufficient.

Quick Start

Ask the AI to create a large JavaScript file using the large‑file‑write skill with the desired content.

Frequently Asked Questions about large-file-write

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write large files over 100 lines in an AI agent workflow without truncation?

To write large files over 100 lines without truncation, this skill generates a temporary Node.js script that writes the content as a template string, bypassing shell limitations. It reliably handles full writes, appends, or stdin-driven content.

Why does writing large code files with heredoc fail in shell environments?

Writing large code files with heredoc fails because the content exceeds shell token limits and encounters shell quirks. This skill solves the issue by using a Node.js script to write the template string directly, avoiding truncation.

Do I need Node.js to write large files beyond shell limits?

Yes, you need a Node.js environment to write large files beyond shell limits. The skill utilizes a Node.js script to reliably write the content without truncation, supporting full write, append, or stdin modes.

What's the best way to append content to a large code file in an AI agent script?

The best way to append content to a large code file in an AI agent script is using the append mode provided by the Node.js script. It bypasses shell heredoc limits to reliably add content without truncation.

Can I use stdin to pass large file contents to a Node.js script?

Yes, you can pass large file contents to the Node.js script using the stdin write mode. This approach reliably writes content that exceeds shell limits without encountering token truncation or shell quirks.

When should I use a Node.js script instead of heredoc for large file generation?

You should use a Node.js script instead of heredoc when generating code files over 100 lines in AI agent workflows. This approach prevents truncation and failure issues caused by exceeding shell token limits and shell quirks.