360 Secure SkillHub
360 安全技能中心

Tee Tool

该 Skill 提供 tee-tool 命令,读取标准输入并同时写入标准输出与一个或多个文件,适合在管道中保存命令输出同时查看进度,支持 -a 追加和 -i 忽略中断信号。实现文件为 scripts/tee.py,依赖 Python 3 和 bash 管道环境,未声明外部服务或网络需求。

dinghaibin
dinghaibin
热度 31.36
最近更新 2026-05-11 17:47:30
分类:效率依赖:代码执行 / 读写文件应用场景:工作流 / 数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add tee-tool
Metadata
name
tee-tool
description
Read from stdin and write to both stdout and files. Use for saving pipe output while still displaying it on screen.

Tee - I/O Multiplexer

Read standard input and write to both standard output and one or more files simultaneously. Useful for logging command output while monitoring progress.

Usage

command | tee-tool [options] <file...>

Options

  • -a: Append to files instead of overwriting
  • -i: Ignore interrupt signals

Examples

echo "data" | tee-tool output.txt
ls -la | tee-tool -a log.txt
make 2>&1 | tee-tool build.log