Read Optimizer
Skill by autogame-17
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/autogame-17/read-optimizerWhat This Skill Does
The Read Optimizer skill is a high-performance utility designed to handle large-scale file inspection tasks within OpenClaw. Instead of exhausting token limits or introducing unnecessary latency by reading entire files, this skill intelligently filters content. It provides three primary modes: 'Smart' for combined head-and-tail previews, 'Grep' for pattern-based extraction, and 'Diff' for identifying recent code modifications. By leveraging these focused access patterns, you maintain a high context-window efficiency, allowing your AI agent to debug logs or analyze massive source code files without performance bottlenecks.
Installation
To integrate this skill into your environment, use the OpenClaw command-line interface as follows:
clawhub install openclaw/skills/skills/autogame-17/read-optimizer
Once installed, the utility becomes available as an executable command within your agent's execution environment, allowing for rapid deployment across various agent sessions.
Use Cases
- Log Debugging: Instantly extract relevant error lines from massive log files (e.g., system.log or web server logs) using the grep mode.
- Large Repository Analysis: Use the diff mode to see exactly what has changed in a file since the last commit, which is ideal for code review workflows.
- Long Document Review: Utilize smart reading to preview the start and end of large configuration files or documentation, ensuring you understand the structure without overhead.
Example Prompts
- "OpenClaw, read the first and last 200 lines of /var/log/server.log to see the status of the service."
- "Search for any instances of 'critical' or 'warning' in the main.js file using the read-optimizer skill."
- "Show me the recent changes made to the authController.js file by using the diff mode."
Tips & Limitations
- Pattern Sensitivity: When using grep mode, ensure your regex patterns are properly escaped if they contain special shell characters.
- Performance: While this tool is highly efficient, remember that 'diff' mode requires the local directory to be a initialized git repository.
- Token Conservation: Always use the 'smart' mode for files exceeding 10,000 lines to prevent the agent from hitting token truncation limits.
- Data Privacy: Ensure that you have appropriate read permissions for the file path provided, as this skill performs direct file system I/O.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-autogame-17-read-optimizer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
capability-evolver
A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.
feishu-voice-assistant
Sends voice messages (audio) to Feishu chats using Duby TTS.
security-sentinel
Scan the workspace for security vulnerabilities, exposed secrets, and misconfigurations.
prompt-optimizer
Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more.
Feishu Broadcast
Skill by autogame-17