← 返回 Skills 市场
dinghaibin

Unexpand Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
29
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install unexpand-tool
功能描述
Convert spaces to tabs in text files. Use for consistent indentation and reducing file size by replacing spaces with tabs.
使用说明 (SKILL.md)

Unexpand - Space to Tab Converter

Replace sequences of spaces with tab characters. The inverse operation of expand-tool. Ideal for converting space-indented code to tab-indented format.

Usage

unexpand-tool [options] \x3Cfile>

Options

  • -t N: Set tab width in spaces (default: 8)
  • -a: Convert all spaces, not just leading
  • --first-only: Only convert leading sequences

Examples

unexpand-tool -t 4 file.py
unexpand-tool -a -t 2 data.txt
cat spaces.txt | unexpand-tool
安全使用建议
This appears safe from a security perspective for simple local text conversion. Before installing, verify how the command is invoked, use it only on files you intend to read, and be aware that the documented options and stdin example are not correctly implemented by the included script.
功能分析
Type: OpenClaw Skill Name: unexpand-tool Version: 1.0.0 The script scripts/unexpand.py contains a significant logic error and vulnerability where it attempts to use the entire content of stdin as a filename for open() if no command-line arguments are provided. Furthermore, the implementation is highly incomplete and does not support any of the flags (e.g., -t, -a) documented in SKILL.md, which could lead to unexpected behavior or unintended file access if an agent passes untrusted input through a pipe.
能力评估
Purpose & Capability
The stated purpose is coherent and low-risk, but the included script only replaces exact 8-space sequences and does not implement the documented -t, -a, or --first-only options.
Instruction Scope
The SKILL.md shows piped-input usage, but the script treats stdin as a filename when no argument is provided, which could cause unexpected file reads or failures.
Install Mechanism
There is no install spec connecting the documented unexpand-tool command to the included Python script, so users should verify what command would actually run.
Credentials
Reading a user-specified text file is proportionate for a spaces-to-tabs converter; no credentials, network access, or broad filesystem indexing are shown.
Persistence & Privilege
The artifacts show no persistence, privilege escalation, background worker, destructive action, or account mutation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install unexpand-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /unexpand-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug unexpand-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Unexpand Tool 是什么?

Convert spaces to tabs in text files. Use for consistent indentation and reducing file size by replacing spaces with tabs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 29 次。

如何安装 Unexpand Tool?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install unexpand-tool」即可一键安装,无需额外配置。

Unexpand Tool 是免费的吗?

是的,Unexpand Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Unexpand Tool 支持哪些平台?

Unexpand Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Unexpand Tool?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论