360 Secure SkillHub
360 安全技能中心

flow-monitor

通过 bash 脚本获取原始执行遥测,按步骤计算与上一步的时间差作为延迟,并展示预估 token 作为成本,最后整理成追踪表格与 Mermaid sequenceDiagram 时序图;时间戳缺失或为 0 时跳过该步骤的延迟计算。

zven0312
zven0312
热度 70.48
最近更新 2026-05-11 17:28:50
分类:数据依赖:代码执行应用场景:报告撰写 / 数据处理 / 自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add flow-monitor
Metadata
name
flow-monitor
description
Universal flow tracer with cross-platform date support, latency calculation, and token estimation.
author
Zven
version
1.3.0

FlowMonitor Universal

Professional execution tracing for OpenClaw/MCP environments.

Instructions

  1. Call get_trace via bash scripts/trace.sh.
  2. Post-Processing:
    • Latency: Calculate the difference between unix_time of the current step and the previous step. Display as +Xs.
    • Resource: Display estimated_tokens as a measure of cost.
  3. LangSmith Visualization:
    • Create a Trace Table: | Step | Time | Skill | Latency | Est. Tokens |
    • Create a Mermaid Flow: Use sequenceDiagram to show the timeline.

Metadata Rules

  • If unix_time is missing or 0, skip latency for that specific step.
  • Use a ⏱️ icon for latency and a 🪙 icon for tokens.

Commands

  • get_trace: Run the shell script to fetch raw telemetry.