360 Secure SkillHub
360 安全技能中心

Env Tool

该 Skill 提供环境变量管理能力,可列出变量、查询指定变量值、检查变量是否存在,并以修改后的环境运行命令;实现包含 Python 脚本,依赖 shell 与 Python 运行时。

dinghaibin
dinghaibin
热度 30.43
最近更新 2026-05-11 17:46:25
分类:开发依赖:代码执行应用场景:DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add env-tool
Metadata
name
env-tool
description
Display, set, and manage environment variables in shell sessions. Use when inspecting or modifying the runtime environment.

Environment Variable Manager

View and control environment variables available to shell processes. Supports listing all variables, querying specific values, and temporary variable assignment.

Usage

env-tool [options]

Common Operations

  • List all environment variables with values
  • Show value of a specific variable (e.g. PATH, HOME, USER)
  • Check if a variable is set without showing its value
  • Run a command with modified environment

Examples

# List all environment variables
env-tool

# Show a specific variable
env-tool | grep PATH

# Check variable exists
env-tool | grep ^HOME=