← Back to Skills Marketplace
delicate314

read-gbk

by 张辰菁 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
238
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install read-gbk
Description
读取本地文本文件,支持 GBK/UTF-8 编码自动检测
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install read-gbk
  3. After installation, invoke the skill by name or use /read-gbk
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug read-gbk
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is read-gbk?

读取本地文本文件,支持 GBK/UTF-8 编码自动检测. It is an AI Agent Skill for Claude Code / OpenClaw, with 238 downloads so far.

How do I install read-gbk?

Run "/install read-gbk" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is read-gbk free?

Yes, read-gbk is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does read-gbk support?

read-gbk is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created read-gbk?

It is built and maintained by 张辰菁 (@delicate314); the current version is v1.0.0.

💬 Comments