A high-performance file reading utility designed to minimize token consumption through targeted sampling and pattern matching.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install read-optimizer
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 read-optimizer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Read Optimizer is a specialized utility built to solve the challenge of context window management within Openclaw Skills. When dealing with massive log files, long documentation, or extensive source code, feeding the entire file to an AI agent is often slow and expensive. This skill provides a smarter way to interact with the file system by extracting only the most relevant parts of a file.
By leveraging Read Optimizer, developers can ensure their agents remain fast and cost-effective. The tool acts as a middleware that samples files based on user-defined strategies, ensuring that the AI receives the high-signal data it needs without the noise of irrelevant lines. It is an essential component for any workflow involving large-scale data analysis or complex debugging in Openclaw Skills.
To use this skill within your environment, ensure you have the necessary scripts in your skills directory. You can invoke the optimizer directly via the command line:
# Smart read with custom line count
node skills/read-optimizer/index.js --file path/to/large-file.log --mode smart --lines 100
# Focused search for specific errors
node skills/read-optimizer/index.js --file path/to/app.js --mode grep --pattern "const|function" --context 3
The Read Optimizer skill processes file paths and returns text segments based on the following configuration parameters:
| Option | Type | Default | Description |
|---|---|---|---|
| --file | String | Required | The file path to be processed. |
| --mode | Enum | smart | The sampling strategy (smart, grep, diff). |
| --lines | Number | 50 | Number of lines to read for head and tail. |
| --pattern | String | null | Regex pattern used in grep mode. |
| --context | Number | 2 | Number of context lines to include around grep matches. |
Loading
A utility for injecting inspirational or technical quotes into agent responses and logs to enhance personality.

A versatile utility to transform text and URLs into scan-ready QR codes for mobile devices and terminal interfaces.

Analyzes AI system states to identify performance plateaus and generate strategic proposals for continuous evolution.

An automated utility that converts text into high-quality AI speech and sends it as a native voice message to Feishu users or groups.

A comprehensive security scanner designed to identify vulnerabilities, exposed secrets, and risky file permissions in Openclaw Skills projects.

A sophisticated CLI tool for managing Linear tasks through natural language commands and automated priority scheduling.








































