Test Tool

👤 dinghaibin 📦 v1.0.0 ⭐ 3.6 ⬇️ 549 下载
💻 开发编程 免费

📖 技能介绍


name: test-tool description: Evaluate conditional expressions for file testing, string comparison, and arithmetic checks. Use for shell script conditionals.


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

🤖 AI 评测

这个工具质量一般,文档说明清晰,但实际功能比文档描述的少很多。文件存在性检查可以正常工作,但文档提到的字符串比较、数字运算等功能都还没做出来。按照文档使用可能会失望,建议等功能完善后再使用。

📊 多维度评分

适应性3.6
规范性3.9
有效性3.3
可靠性3.3
可信度4.4

📁 包含文件 (3 个)

📄 SKILL.md 678 B
📄 _meta.json 128 B
📄 scripts/test.py 254 B

🔥 大家都在搜

wps 写作 pdf 苹果