← Back to Skills Marketplace
wangyendt

Pywayne Bin Cmdlogger

by wangyendt · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
693
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cmdlogger
Description
Execute commands with real-time console output while logging all stdin, stdout, and stderr to a customizable log file for monitoring and debugging.
README (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).
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cmdlogger
  3. After installation, invoke the skill by name or use /cmdlogger
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug cmdlogger
Version 0.1.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 693 downloads so far.

How do I install Pywayne Bin Cmdlogger?

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

Is Pywayne Bin Cmdlogger free?

Yes, Pywayne Bin Cmdlogger is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Pywayne Bin Cmdlogger support?

Pywayne Bin Cmdlogger is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Pywayne Bin Cmdlogger?

It is built and maintained by wangyendt (@wangyendt); the current version is v0.1.0.

💬 Comments