qclaw-text-file

Community

Safely write text files across platforms.

Authornovolei
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Intercepts unsafe final text-file writes by routing all targets through a dedicated script to ensure safe, cross-platform writing.

Core Features & Use Cases

  • Cross-platform safety: writes with platform-aware encoding and line endings to keep files readable on Windows, macOS, and Linux.
  • BOM and newline management: automatically detects or preserves BOM and newline styles to avoid corruption in CSV, JSON, or config files.
  • Platform targeting and append mode: supports targeting a Windows workflow from macOS, appending to existing files, and preserving existing file state when requested.
  • Scripted workflow: provides a self-contained Python script (scripts/write_file.py) that reads content from a file or a string and writes to the target path with robust error handling.

Quick Start

Use the write_file.py script to write content to a target file by supplying a path and a content file.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: qclaw-text-file
Download link: https://github.com/novolei/if2Ai/archive/main.zip#qclaw-text-file

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.