← 返回 Skills 市场
wangyendt

Pywayne Bin Cmdlogger

作者 wangyendt · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
693
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cmdlogger
功能描述
Execute commands with real-time console output while logging all stdin, stdout, and stderr to a customizable log file for monitoring and debugging.
使用说明 (SKILL.md)

Pywayne Bin Cmdlogger

Execute a command and log all stdin, stdout, stderr to a file while forwarding I/O to console in real-time.

Quick Start

# Log command execution to default file (io_log.log in script directory)
cmdlogger \x3Ccommand> [args...]

# Specify custom log file path
cmdlogger --log-path \x3Clog_path> \x3Ccommand> [args...]

Usage Examples

Build Process Recording

# Log CMake configuration
cmdlogger --log-path cmake_config.log cmake ..

# Log build process
cmdlogger --log-path build.log make -j$(nproc)

Script Execution Monitoring

# Log Python script execution
cmdlogger --log-path script_run.log python3 my_script.py --arg1 value1

# Log shell script execution
cmdlogger --log-path deploy.log ./deploy.sh production

Debugging Sessions

# Log GDB debug session
cmdlogger --log-path debug_session.log gdb ./my_program

# Log Python interactive session
cmdlogger --log-path python_debug.log python3 -i my_module.py

Network Operations

# Log curl request with verbose output
cmdlogger --log-path api_test.log curl -v https://api.example.com/data

# Log SSH connection process
cmdlogger --log-path ssh_session.log ssh user@remote-host

Simple Command Logging

# Log git status
cmdlogger git status

# Log echo command
cmdlogger echo "Hello World"

Command Reference

Argument Description
command The command to execute
[args...] Command arguments
--log-path \x3Cpath> Optional log file path. Default: io_log.log in script directory

Log Format

Each line in the log file is prefixed with stream type:

  • 输入: \x3Ccontent> - Standard input
  • 输出: \x3Ccontent> - Standard output
  • 错误: \x3Ccontent> - Standard error

Example Log Output

Running cmdlogger echo "Hello World" produces:

输出: Hello World

Running cmdlogger python3 -c "import sys; print('stdout'); print('stderr', file=sys.stderr)" produces:

输出: stdout
错误: stderr

Features

  • Full I/O Recording: Captures all stdin, stdout, stderr
  • Real-time Forwarding: Forwards I/O to console while logging
  • Multi-threaded: Uses separate threads for stdin, stdout, stderr
  • Encoding Handling: Gracefully handles non-UTF-8 data
  • Resource Cleanup: Automatically cleans up processes and files

Use Cases

  • Recording complex build processes for later analysis
  • Monitoring long-running scripts with full logging
  • Debugging with complete input/output history
  • CI/CD pipeline execution logging
  • Performance analysis with execution traces

Important Notes

  • Interactive Commands: User input (including passwords) is logged. Be careful with sensitive information.
  • Large Output: Log files can become large for commands with heavy output. Ensure sufficient disk space.
  • Default Log Location: If --log-path is not specified, log file is created in the script directory as io_log.log.
  • Exit Codes: Returns the exit code of the executed command (127 if command not found).
安全使用建议
This skill describes a tool that will record everything you type and everything commands print — including passwords, SSH passphrases, tokens, and other secrets. Before installing or using it: (1) Confirm where the actual 'cmdlogger' implementation comes from and only use a vetted binary or trusted source; (2) Never run it with interactive commands that request secrets (SSH logins, sudo passwords, OTP entry) unless you accept the risk; (3) Specify a secure --log-path (not world-readable), restrict file permissions, implement log rotation, and consider encrypting logs at rest; (4) Prefer tools that support redaction/filters if you need to avoid capturing secrets; (5) If you intended this as documentation for an external tool, ask the publisher to add installation instructions and explicit safeguards (redaction, retention policy). If you cannot verify the implementation or cannot ensure log security, avoid enabling this skill for sensitive workflows.
功能分析
Type: OpenClaw Skill Name: cmdlogger Version: 0.1.0 The `cmdlogger` skill, as described in `SKILL.md`, is designed to execute arbitrary commands and log all their I/O (stdin, stdout, stderr) to a file. A critical note in `SKILL.md` explicitly warns that 'User input (including passwords) is logged' for interactive commands. Combined with the ability to specify an arbitrary `--log-path`, this creates a significant vulnerability where an AI agent, if subjected to prompt injection, could be coerced into logging sensitive credentials or other data to a potentially insecure location, enabling data exfiltration. While the skill's stated purpose is benign, its inherent capability to capture and store sensitive data makes it highly susceptible to malicious exploitation.
能力评估
Purpose & Capability
The name and description match the SKILL.md (a command I/O logger). However, the SKILL.md presumes a 'cmdlogger' executable and provides no implementation or install instructions—so it's unclear whether the agent is expected to implement this behavior itself, or rely on a preinstalled binary. That mismatch is surprising and worth clarifying.
Instruction Scope
The runtime instructions direct running arbitrary commands and recording all stdin, stdout, and stderr, including interactive sessions (e.g., SSH, GDB, Python REPL). While this aligns with the claimed purpose, it also means the skill will capture sensitive inputs (passwords, passphrases, secret tokens that might be typed) and potentially long/unbounded output. The SKILL.md warns about sensitive input but provides no instructions for redaction, access control, or safe defaults.
Install Mechanism
There is no install spec and no code files; the skill is instruction-only, so nothing will be written to disk by the installer. That minimizes supply-chain risk, but it increases ambiguity about how the documented 'cmdlogger' is expected to exist in the runtime.
Credentials
No credentials or env vars are requested, which is appropriate. However, because the skill logs stdin/stderr/stdout broadly (including interactive input), it can capture secrets that the skill did not explicitly ask for. The skill provides no guidance on securing or limiting log file access, redaction, encryption, or retention.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. It does not attempt to modify other skills or agent-wide settings. There is no persistent installation footprint declared.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cmdlogger
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cmdlogger 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of cmdlogger: record and forward full I/O for any command. - Logs stdin, stdout, and stderr to a file with real-time console output. - Supports custom log file locations via --log-path. - Distinguishes input, output, and error streams in log with clear prefixes. - Enables full command execution tracing for debugging, builds, CI/CD, or monitoring. - Caution: logs all user input, including sensitive data, for interactive commands.
元数据
Slug cmdlogger
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Pywayne Bin Cmdlogger 是什么?

Execute commands with real-time console output while logging all stdin, stdout, and stderr to a customizable log file for monitoring and debugging. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 693 次。

如何安装 Pywayne Bin Cmdlogger?

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

Pywayne Bin Cmdlogger 是免费的吗?

是的,Pywayne Bin Cmdlogger 完全免费(开源免费),可自由下载、安装和使用。

Pywayne Bin Cmdlogger 支持哪些平台?

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

谁开发了 Pywayne Bin Cmdlogger?

由 wangyendt(@wangyendt)开发并维护,当前版本 v0.1.0。

💬 留言讨论