Install
openclaw skills install x-isValue validation and environment detection tool for Shell scripts. Validates input types (integers, floats, IPs), compares file ages, detects runtime environments (TTY, WSL, Termux, Cygwin). Supports batch checking with exit code 0 success / 1 failure. Trigger when user needs to validate input types, detect terminal environment, check file freshness, verify variable states, or perform environment suitability checks (suitable_pkg/suitable_advise). Keywords: validate, check, verify, is, integer, float, positive, negative, range, IP address, file age, interactive, WSL, Termux, environment detection, unset variable, batch check.
openclaw skills install x-isx is is x-cmd's value validation tool for checking if values or environment states meet specific criteria. Supports batch checking multiple values, ideal for robust Shell scripting.
. ~/.x-cmd.root/X
x is int 42 100 -5 / x is float 3.14x is minmax 1 100 50 75x is eq "a" "a" / x is within "ok" pending successx is ip 192.168.1.1x is newest target src/*.c / x is oldest cache.txt /tmp/*.tmpx is unset VAR1 VAR2x is interactive / x is wsl / x is termux| Command | Description |
|---|---|
int | Integer check, batch supported |
float | Float check (must contain decimal point) |
positive | Positive integer (≥0) |
negative | Negative integer (<0) |
minmax | Range check [MIN,MAX] |
| Command | Description |
|---|---|
eq | Multiple values equal |
within | First value in candidate list |
in | Colon-separated list member check |
in- | Dash-separated list |
in_ | Underscore-separated list |
in/ | Slash-separated list |
in| | Pipe-separated list |
| Command | Description |
|---|---|
ip | IPv4 address check |
| Command | Description |
|---|---|
newest | File newer than others (glob supported) |
oldest | File older than others (glob supported) |
| Command | Description |
|---|---|
unset | Variable is unset |
| Command | Description |
|---|---|
interactive | Interactive session |
interactive_tty | stdin is interactive TTY |
interactiveshell | Shell is interactive |
repl | REPL mode |
stdout2tty | stdout outputs to TTY |
wsl | WSL environment |
cygwin | Cygwin environment |
msys | MSYS/MinGW environment |
gitbash | Git Bash environment |
termux | Termux environment |
ish | iSH environment |
| Command | Description |
|---|---|
suitable_pkg | Suitable for package installation |
suitable_advise_env | Suitable for advise feature |
suitable_advise_repl | Suitable for advise REPL |
x is int 1 2 3 4 5 && echo "All integers"
x is float 3.14 -2.5 .5 && echo "All floats"
x is interactive && echo "Interactive session" || echo "Script mode"
x is wsl && echo "WSL environment" || echo "Not WSL"
x is termux && echo "Termux environment"
x is newest build.tar.gz src/*.c lib/*.h || echo "Rebuild needed"
x is unset TEMP_VAR1 TEMP_VAR2 && echo "Temp variables cleaned"
x is suitable_pkg || { echo "Environment not suitable"; exit 1; }
&&/|| chainsx is --help