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>

小蔥技能站7w4.net,專業的AI技能分享平臺。

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