← Back to Skills Marketplace
Summarize File
by
Muhammad Muazzain
· GitHub ↗
· v1.0.0
1864
Downloads
0
Stars
19
Active Installs
1
Versions
Install in OpenClaw
/install summarize-file
Description
Reads text files from workspace/paths and generates concise summaries. Handles logs, reports, CSVs, multi-line content.
Usage Guidance
Do not install or enable this skill without changes. The code does not match the skill description: it reads a hard-coded Windows path using fs rather than the platform workspace.read API, performs no path validation (risk of reading files outside the workspace), and does not implement any LLM summarization — it just returns the first 500 characters. If you want to proceed, ask the author to (1) remove hard-coded absolute paths and use the declared workspace.read API, (2) add robust path normalization and enforce that files stay inside the workspace (no ../ traversal), (3) implement the actual summarization logic (or clearly document why it only returns an excerpt), and (4) make it cross-platform. Until these changes are made, run the skill only in an isolated environment and inspect/approve the source yourself.
Capability Analysis
Type: OpenClaw Skill
Name: summarize-file
Version: 1.0.0
The skill contains a critical path traversal vulnerability in `index.js`. The `filename` parameter is directly concatenated into the file path without any sanitization, allowing an attacker to read arbitrary files outside the intended `workspace` directory (e.g., `../../../../etc/passwd`). This directly contradicts the `SKILL.md` documentation's claim of 'File paths validated (no ../ escapes)'. While the skill's core logic only reads and truncates the file content, this vulnerability allows unauthorized access to sensitive system files, making it a high-risk flaw.
Capability Assessment
Purpose & Capability
SKILL.md and skill.json state the skill reads files via the workspace.read tool and returns LLM-generated summaries. The actual code (index.js) bypasses workspace.read and uses fs to directly open a hard-coded Windows path (C:\Users\user\.openclaw\workspace\${filename}). The code does not perform summarization, only slices the first 500 characters. This is not proportionate or coherent with the stated purpose.
Instruction Scope
The runtime instructions promise path validation, cross-platform behavior, and local-only workspace API access. The implementation lacks any path normalization/validation and concatenates user-supplied filenames into an absolute path, which likely permits path traversal (e.g., '..\') to access files outside the intended workspace. The code is also Windows-specific and contradicts the SKILL.md claims about using workspace.read and returning 2–3 sentence summaries.
Install Mechanism
There is no install script or remote download — the skill is instruction-only plus a small code file. That lowers installer risk (nothing is fetched from the network).
Credentials
The skill declares no environment or credentials (which is appropriate), but its implementation accesses an absolute user home path directly instead of using the declared workspace.read permission/API. That bypass can defeat sandboxing expectations: although no secrets are requested, direct fs access to C:\Users\user\... is broader than the declared surface and may expose unrelated local files.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and has no install-time persistence. It appears not to escalate privileges or autonomously persist configuration.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install summarize-file - After installation, invoke the skill by name or use
/summarize-file - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of Summarize File skill.
- Reads text files and generates concise 2–3 sentence summaries, highlighting key insights and ignoring boilerplate or empty lines.
- Handles various formats including logs, reports, CSVs, and multi-line content.
- Operates securely with read-only, local file access; no data leaves your machine.
- Supports file path validation to prevent directory escapes.
Metadata
Frequently Asked Questions
What is Summarize File?
Reads text files from workspace/paths and generates concise summaries. Handles logs, reports, CSVs, multi-line content. It is an AI Agent Skill for Claude Code / OpenClaw, with 1864 downloads so far.
How do I install Summarize File?
Run "/install summarize-file" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Summarize File free?
Yes, Summarize File is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Summarize File support?
Summarize File is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Summarize File?
It is built and maintained by Muhammad Muazzain (@muhammadmuazzain); the current version is v1.0.0.
More Skills