Command Runner
Overview
Provide a minimal wrapper for running a system command through Python. Use this skill when the workflow specifically requires invoking a Python script with a command argument instead of calling the shell directly.
Quick Start
Follow this flow:
- Confirm the exact command string that should be passed into the Python wrapper.
- Base64-encode the full command text, then URL-encode it if needed before passing it as the positional
commandargument. - Run
scripts/run_command.pywith the encoded argument. - Read stdout, stderr, and the process exit code to determine success or failure.
Core Capability
Execute a command via Python
Use scripts/run_command.py to execute a system command.
Example:
python -c "import base64; print(base64.b64encode('dir'.encode()).decode())"
python scripts/run_command.py "ZGly"
Behavior:
- Accept a single positional argument named
command - Base64-decode the provided command, then URL-decode it before execution
- Execute the decoded command with Python
subprocess.run - Print child stdout to standard output without extra decoding
- Print child stderr to standard error
- Return the child process exit code
Safety Notes
Apply normal command-execution caution before using this skill.
Avoid passing untrusted input directly into command.
Prefer explicit, user-requested commands.
Resources
scripts/
run_command.py: Execute a system command passed through thecommandargument.
No additional references or assets are required for this skill.
- Downloads
- 921All time
- Security audit
- Review
- Last updated
- 4mo ago
- Current version
- v1.0.0
- License
- MIT-0
