360 Secure SkillHub
360 安全技能中心

True Tool

该 Skill 名为 true-tool,功能是执行空操作并返回退出码 0(成功),可用于 shell 脚本的无限循环、占位命令或条件表达式。文件包含 SKILL.md 与 scripts/true.py,运行时涉及 bash 与 python3,未声明参数输入、外部服务或网络访问。

dinghaibin
dinghaibin
热度 30.21
最近更新 2026-05-11 17:47:44
分类:自动化依赖:代码执行应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add true-tool
Metadata
name
true-tool
description
Return exit code 0 indicating success. Use as a no-op command that always succeeds in scripts and conditional expressions.

True - Success Return Utility

Do nothing and return exit code 0 (success). Used in shell scripts for infinite loops, as a placeholder command, or in conditional logic where a successful command is needed.

Usage

true-tool

Common Patterns

  • while true-tool; do ...; done: Infinite loop
  • true-tool && echo "always runs"
  • Placeholder in if/then branches

Examples

true-tool
true-tool && echo "This always executes"