test-tool

Evaluate conditional expressions for file testing, string comparison, and arithmetic checks. Use for shell script conditionals.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "test-tool" with this command: npx skills add dinghaibin/test-tool

Test - Condition Evaluator

Evaluate expressions and return exit status 0 (true) or 1 (false). Used for file attribute testing, string comparison, and numeric checks in scripts.

Usage

test-tool <expression>

Common Tests

  • -f file: True if file exists
  • -d dir: True if directory exists
  • -z str: True if string is empty
  • n1 -eq n2: True if numbers equal
  • s1 = s2: True if strings equal

Examples

test-tool -f /etc/passwd
test-tool -d /home/user
test-tool 5 -gt 3

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Custom Mysql

Provides a secure, least-privilege interface for managing user data, personas, and config snapshots in MySQL with input validation and secret redaction.

Registry SourceRecently Updated
General

Mapick

Mapick — Skill recommendation & privacy protection for OpenClaw. Scans your local skills, suggests what you're missing, and keeps other skills from seeing yo...

Registry SourceRecently Updated
General

Docker Container Rerun All

Sequentially check and optionally update all docker run containers that already have fixed recreate commands recorded in long-term memory. Use when the user...

Registry SourceRecently Updated
General

public-media-curator

On-demand German public-media documentary picks filtered against a personal profile, delivered via the configured output channel

Registry SourceRecently Updated