A reliable file-writing workflow skill for AI agents designed to eliminate JSON truncation and encoding errors when handling large files or CJK characters.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install llm-safe-write
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install llm-safe-write using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The llm-safe-write skill provides a robust, incremental strategy for writing large files or content containing CJK (Chinese, Japanese, Korean) and special characters. Standard AI file writing tools often fail due to transport-layer JSON truncation when multi-byte characters cross internal buffer boundaries, leading to compilation failures or incomplete code blocks. This skill mitigates that vulnerability entirely.
By leveraging Openclaw Skills, AI agents adopt a proactive skeleton and target-edit approach rather than executing direct, high-risk writes. It guarantees technical accuracy and reliability across long source files, complex configuration schemas, and multi-lingual data payloads without losing critical text or breaking execution environments.
To deploy this module within your Openclaw Skills runtime environment, verify that your active agent configuration includes the necessary file manipulation permissions for reading, writing, and editing.
No standalone terminal setup is needed, but the target file directories must exist beforehand to prevent filesystem errors:
mkdir -p /path/to/target/directory
The skill manages tracking and insertion operations across file formats by standardizing layout boundaries with strict code-comment anchors:
| File Type | Anchor Taxonomy Structure | Live Implementation Example |
|---|---|---|
| Python | # PLACEHOLDER_name |
pass # PLACEHOLDER_process_data |
| JavaScript / TypeScript | // PLACEHOLDER_name |
// PLACEHOLDER_render_view |
| JSON / Data Schemas | Same-type valid literal defaults | "meta_title": "PLACEHOLDER_seo" |
This deliberate schema ensures that files maintain formatting validity and remain parseable throughout the incremental update cycle.
Loading
An end-to-end upgrade tool for local OpenClaw gateway services that automates backups, systemd user environment merging, and serial GPU index rebuilds.

A complete, step-by-step developer guide to installing, configuring, and automating operations using the Huawei Cloud CLI (KooCLI) command-line interface.

An advanced crawling and reporting tool to scrape, filter, and analyze trending Xiaohongshu notes based on keywords and engagement metrics.

An advanced market intelligence and portfolio management toolkit for AI agents to analyze stocks, crypto, and market rumors.

An AI agent skill designed to safely execute day-to-day BasicOps tasks, updates, and reviews via a Model Context Protocol (MCP) server.

An AI-agent skill that connects OpenClaw to the Imans CLI, enabling seamless queries of workspace metadata, catalogs, and sales orders.








































