360 Secure SkillHub
360 安全技能中心

task-progress-stream

该 Skill 提供 Node 脚本,两种模式:run 启动命令并捕获 stdout/stderr,tail 监控已有日志;解析 epoch、step、loss、学习率、验证指标、ETA、速度等字段,并按固定间隔把进度摘要注入 OpenClaw 聊天界面。

liyooyin
liyooyin
热度 84.00
最近更新 2026-05-17 14:42:24
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add task-progress-stream
Metadata
name
task-progress-stream
description
Stream long-running task progress into the OpenClaw chat UI.
version
0.1.0
author
LiyooYin
license
MIT
tags
["monitoring","progress","training"]

task-progress-stream

Use this skill when the user wants real-time progress updates inside the OpenClaw chat UI for a long-running task such as:

  • model training
  • evaluation
  • inference
  • data preprocessing
  • long shell jobs
  • benchmark runs

It works in two modes:

  1. run
    Start a command, capture stdout/stderr, parse common metrics, and periodically inject progress summaries into chat.

  2. tail
    Monitor an existing log file and periodically inject parsed progress summaries into chat.

What it extracts

It tries to recognize common fields from logs:

  • epoch / max_epoch
  • step / max_step
  • loss
  • learning rate
  • validation metric
  • best metric
  • ETA
  • speed

Typical usage

Start a training job and stream progress into chat

node ./scripts/task_progress_stream.js run \
  --session main \
  --label train \
  --cwd /path/to/project \
  --cmd "python src/train.py --config configs/train.yaml" \
  --interval-sec 20