{"skill":{"slug":"test-tool","displayName":"Test Tool","summary":"Evaluate conditional expressions for file testing, string comparison, and arithmetic checks. Use for shell script conditionals.","description":"---\nname: test-tool\ndescription: Evaluate conditional expressions for file testing, string comparison, and arithmetic checks. Use for shell script conditionals.\n---\n# Test - Condition Evaluator\n\nEvaluate expressions and return exit status 0 (true) or 1 (false). Used for file attribute testing, string comparison, and numeric checks in scripts.\n\n## Usage\n```bash\ntest-tool <expression>\n```\n\n## Common Tests\n\n- `-f file`: True if file exists\n- `-d dir`: True if directory exists\n- `-z str`: True if string is empty\n- `n1 -eq n2`: True if numbers equal\n- `s1 = s2`: True if strings equal\n\n## Examples\n\n```bash\ntest-tool -f /etc/passwd\ntest-tool -d /home/user\ntest-tool 5 -gt 3\n```","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":353,"installsAllTime":13,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1778003718382,"updatedAt":1778492854429},"latestVersion":{"version":"1.0.0","createdAt":1778003718382,"changelog":"Initial release","license":"MIT-0"},"metadata":null,"owner":{"handle":"dinghaibin","userId":"s170ed26v1mh4qzy7v9cnn7msx85mrn1","displayName":"BIN","image":"https://avatars.githubusercontent.com/u/9191597?v=4"},"moderation":null}