← 返回 Skills 市场
238
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install read-gbk
功能描述
读取本地文本文件,支持 GBK/UTF-8 编码自动检测
安全使用建议
This skill appears to do what it says: read local files with GBK/UTF-8 detection. Before installing/using it, consider: 1) The tool will attempt to run pip to install python-docx or pypdf from PyPI when reading .docx/.pdf — this requires network access and will modify your Python environment (use a virtualenv/conda env if you want to avoid global installs). 2) Package installs are unpinned (no fixed versions), so behavior can change over time; review/approve network installs if policy requires. 3) The skill reads arbitrary local file paths you provide — avoid pointing it at sensitive files unless you trust the environment. 4) If you need stricter isolation, run the scripts in a sandbox or inspect/execute the Python script manually. Overall the skill is internally consistent, but be mindful of the runtime pip installs and run in an isolated Python environment if that matters to you.
功能分析
Type: OpenClaw Skill
Name: read-gbk
Version: 1.0.0
The skill is a utility for reading local files with automatic encoding detection (GBK/UTF-8) and support for .docx and .pdf formats. It includes a Node.js wrapper (read-file.js) and a Python script (read-file.py) that handles the file reading logic. While the Python script includes functionality to automatically install missing dependencies (python-docx and pypdf) via pip, this behavior is clearly documented in SKILL.md and implemented using safe subprocess calls without shell injection risks. There is no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the included JS wrapper and Python reader. Requiring a Python binary is reasonable because the implementation calls a Python script to perform encoding detection and .docx/.pdf handling.
Instruction Scope
SKILL.md tells the agent to run the provided node script which invokes the bundled Python script. The runtime instructions and code only read a user-specified local file and optionally install helper libraries; they do not attempt to read unrelated system files, export credentials, or post file contents to external endpoints.
Install Mechanism
There is no install spec, but the Python code will auto-install python-docx and pypdf via pip on first use (subprocess.run calling pip). This downloads packages from PyPI at runtime and does not pin versions. This is expected for .docx/.pdf support but increases runtime network activity and can modify the user's Python environment.
Credentials
The skill requests no credentials or config paths. The JS wrapper reads process.env (and USERNAME to compose common Python paths) only to locate Python; the Python script uses sys.executable for pip. No secret-bearing environment variables are required or accessed.
Persistence & Privilege
always:false and no cross-skill configuration changes. However, the skill may alter the host Python environment by installing packages (python-docx/pypdf) into the active interpreter/site-packages; this is a persistent side-effect outside the skill's own files.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install read-gbk - 安装完成后,直接呼叫该 Skill 的名称或使用
/read-gbk触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of read-gbk.
- Reads local text files with automatic encoding detection (GBK first, fallback to UTF-8).
- Supports multiple file types: .txt, .md, .csv, .log, .docx, .pdf (text-only), .json, .xml, .ini/.cfg.
- Installs required dependencies automatically when reading .docx (python-docx) or .pdf (pypdf) files.
- Outputs file content on success; outputs error and exits with code 1 on failure.
- Large binary files not supported; very large files may be truncated.
元数据
常见问题
read-gbk 是什么?
读取本地文本文件,支持 GBK/UTF-8 编码自动检测. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 238 次。
如何安装 read-gbk?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install read-gbk」即可一键安装,无需额外配置。
read-gbk 是免费的吗?
是的,read-gbk 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
read-gbk 支持哪些平台?
read-gbk 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 read-gbk?
由 张辰菁(@delicate314)开发并维护,当前版本 v1.0.0。
推荐 Skills