ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

terminal-killer

Intelligent shell command detector and executor for OpenClaw. Automatically identifies terminal commands (system builtins, $PATH executables, history matches, command patterns) and executes directly without LLM overhead. Cross-platform support (macOS/Linux/Windows). Use when user input appears to be a shell command to skip AI processing and run immediately.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/cosperypf/terminal-killer
Or

Terminal Killer

🚀 Smart command router that executes shell commands directly, bypassing LLM for instant terminal operations.

Quick Start

Terminal Killer automatically activates when user input matches command patterns. No special syntax needed — just type commands naturally:

ls -la              # → Direct exec
git status          # → Direct exec  
npm install         # → Direct exec
"help me code"      # → LLM handles normally

How It Works

Detection Pipeline

User Input → Command Detector → Decision
                                      ├── Command → exec (direct)
                                      └── Task → LLM (normal)

Environment Loading

Terminal Killer automatically loads your shell environment before executing commands:

  1. Detects your shell (zsh, bash, etc.)
  2. Sources init files (~/.zshrc, ~/.bash_profile, ~/.bashrc, etc.)
  3. Inherits full PATH - including custom paths like Android SDK, Homebrew, etc.
  4. Preserves environment variables - all your export VAR=value settings

This ensures commands like adb, kubectl, docker, etc. work exactly as they do in your terminal!

Detection Rules (in order)

  1. System Builtins - Check against OS-specific builtin commands
  2. PATH Executables - Scan $PATH for matching executables
  3. History Match - Compare against recent shell history
  4. Command Pattern - Heuristic analysis (operators, paths, etc.)
  5. Confidence Score - Combine signals for final decision

Detection Details

1. System Builtins

Checks input against known builtin commands for the current OS:

macOS/LinuxWindows (PowerShell)Windows (CMD)
cd, pwd, lscd, pwd, lscd, dir, cls
echo, catecho, catecho, type
mkdir, rm, cpmkdir, rm, cpmkdir, del, copy
grep, findgrep, findfindstr
git, npm, nodegit, npm, nodegit, npm, node

See references/builtins/ for complete lists.

2. PATH Executable Check

Scans $PATH directories to verify if the first word is an executable:

# Uses `which` (Unix) or `Get-Command` (PowerShell)
which <command>    # Returns path if exists

3. History Matching

Compares input against recent shell history (~/.zsh_history, ~/.bash_history, PowerShell history):

  • Exact match → High confidence
  • Similar prefix → Medium confidence
  • No match → Continue checking

4. Command Pattern Analysis

Heuristic scoring based on command characteristics:

Metadata

Author@cosperypf
Stars3409
Views1
Updated2026-03-25
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-cosperypf-terminal-killer": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.