pywayne-bin-cmdlogger for Openclaw

A multi-threaded command-line utility that captures and logs all I/O streams in real-time while maintaining console interactivity.

wangyendt
v0.1.0
Feb 15, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cmdlogger

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cmdlogger using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is pywayne-bin-cmdlogger?

Pywayne Bin Cmdlogger is a technical utility designed for developers who require a persistent record of command execution without sacrificing real-time visibility. By wrapping standard terminal commands, it captures all standard input, output, and error streams, writing them to a structured log file while simultaneously forwarding the data to the user's console. This tool is a vital addition to the Openclaw Skills collection, particularly for environments where auditing, debugging, and process tracing are critical for maintaining code quality and operational stability.

Unlike standard redirection, this skill handles multi-threaded stream processing and graceful encoding management, ensuring that even complex, interactive, or long-running processes are captured accurately. Whether you are running a deployment script or a deep debugging session, pywayne-bin-cmdlogger provides the transparency needed for professional development workflows.

pywayne-bin-cmdlogger Use Cases

  • Recording complex build processes like CMake or Make to identify hidden failure points.
  • Monitoring long-running background scripts in CI/CD pipelines for post-execution auditing.
  • Debugging interactive GDB or Python sessions by capturing all inputs and outputs for later review.
  • Logging network requests and SSH session interactions to maintain security and connectivity logs.
  • Tracing shell script execution for performance analysis and granular error tracking.

How pywayne-bin-cmdlogger Works

  1. The user initiates the tool by passing a target command and optional arguments to the cmdlogger utility.
  2. The utility spawns the target command as a subprocess while initializing separate threads to monitor stdin, stdout, and stderr streams.
  3. Data moving through these streams is captured in real-time and prefixed with specific indicators to identify the source (input, output, or error).
  4. The captured data is immediately written to the designated log file and mirrored to the terminal console.
  5. Upon completion of the target command, the utility closes the log file, cleans up system resources, and returns the command's original exit code.

pywayne-bin-cmdlogger Setup

To utilize this feature within Openclaw Skills, you can invoke the utility directly from your terminal. No complex configuration is required beyond specifying your target command.

# Log command execution to the default io_log.log file
cmdlogger <command> [args...]

# Specify a custom destination for your execution logs
cmdlogger --log-path /path/to/custom_log.log <command> [args...]

pywayne-bin-cmdlogger Data Schema & Taxonomy

The utility generates structured plain-text logs where each line is prefixed to indicate the stream origin. This allows for easy filtering and analysis using standard text processing tools within Openclaw Skills.

Log Prefix Stream Type Description
输入: stdin Captured user input and interactive responses
输出: stdout Standard functional output from the command
错误: stderr Error messages, warnings, and diagnostic info

If no log path is provided, the skill defaults to creating an io_log.log file in the script's execution directory.

pywayne-bin-cmdlogger Advanced Features

  • Multi-threaded execution ensures that high-volume output does not block the command's performance.
  • Robust encoding handling gracefully processes non-UTF-8 data to prevent logging crashes.
  • Support for interactive commands allows for recording sessions that require real-time user input.
  • Seamless exit code pass-through ensures the tool can be used inside larger automation scripts without breaking logic.
  • Automatic resource cleanup prevents orphaned processes and file handles after execution completes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*