← 返回 Skills 市场
Exec Truncate
作者
austrian_guy
· GitHub ↗
· v1.0.1
· MIT-0
98
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-exec-truncate
功能描述
AI agent tool for compressing/executing shell commands with domain-aware output truncation. Use when exec tool output needs to be compressed, when running gi...
安全使用建议
This skill appears to do what it claims: condense/trim large exec outputs. Before installing or enabling it as a plugin, (1) confirm which runtime you use (Node vs Deno) because examples and code use mixed globals and may need slight adjustments; (2) review the full mod.ts (the provided snippet was truncated) to ensure there are no hidden network calls or file writes; (3) remember that if you wire this into OpenClaw's exec hook it will receive the raw output of commands — avoid running commands that emit secrets (tokens, private files) or review policies about which outputs are routed to plugins; (4) if you plan to install the plugin, inspect the plugin manifest (openclaw.plugin.json) and any install scripts that would be executed on install/restart.
功能分析
Type: OpenClaw Skill
Name: openclaw-exec-truncate
Version: 1.0.1
The 'exec-truncate' skill is a utility bundle designed to compress and truncate verbose shell command output (such as git diffs, logs, grep results, and build logs) to optimize AI context window usage. The code in mod.ts and filter-registry.ts consists of string manipulation and regex-based filtering logic aligned with the stated purpose. While it accesses process.env.HOME and process.cwd(), it does so solely to strip local path prefixes from output for better readability and privacy. No evidence of data exfiltration, malicious command injection, or prompt-injection attacks was found.
能力评估
Purpose & Capability
The name/description match the code: truncation functions for git diff/log, grep, ls, and build output and a FilteredExecutor to wrap exec calls. Minor inconsistencies: examples show Deno.Command usage in SKILL.md while core code uses Node-style globals (process.cwd(), process.env.HOME), and README claims plugin wiring into OpenClaw hooks although the SKILL.md explicitly states this distribution is standalone. These are likely implementation/platform variations but worth confirming for your runtime environment.
Instruction Scope
SKILL.md limits runtime behavior to string-processing of command output and to wrapping exec functions; it does not instruct reading unrelated files, contacting external endpoints, or accessing unrelated credentials. The documented fail-safe returns raw output on errors. It does reference optional wrapper scripts and a hook integration, which are consistent with the skill's goal.
Install Mechanism
No install spec is declared (instruction-only), so nothing will be pulled or executed at install time by the registry. The package includes source files but no automated download/install steps in the metadata. This is low install risk; if you later install as an OpenClaw plugin, the plugin install path (not provided here) should be reviewed.
Credentials
The skill declares no required env vars or credentials. The code reads environment/system info (process.cwd(), process.env.HOME) to strip path prefixes, which is proportionate to the stated purpose but does mean the code accesses your working directory and home path at runtime. Also note: truncation runs on whatever exec output it is given, and that output may contain sensitive data (tokens, file contents) if commands produce them.
Persistence & Privilege
Skill metadata does not request always:true and is user-invocable only. The provided code is a library-style utility that does not modify other skills or system-wide settings. If installed as a plugin into OpenClaw, it may be wired to a tool_result_persist hook (per README) and thus will see all exec outputs that the platform routes to that hook — this is expected for the stated purpose but increases the visibility of command outputs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-exec-truncate - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-exec-truncate触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
README rewritten with problem statement, before/after examples, architecture diagram, full configuration reference, and package contents
元数据
常见问题
Exec Truncate 是什么?
AI agent tool for compressing/executing shell commands with domain-aware output truncation. Use when exec tool output needs to be compressed, when running gi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。
如何安装 Exec Truncate?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-exec-truncate」即可一键安装,无需额外配置。
Exec Truncate 是免费的吗?
是的,Exec Truncate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Exec Truncate 支持哪些平台?
Exec Truncate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Exec Truncate?
由 austrian_guy(@ether-btc)开发并维护,当前版本 v1.0.1。
推荐 Skills