360 Secure SkillHub
360 安全技能中心

SkillPulse

核心功能:分析含延迟、CPU、内存数据的OpenClaw离线JSON样本,计算均值、p95等指标,基于阈值检测瓶颈;支持生成JSON/HTML报告,或对比两个版本的样本差异。典型场景:本地性能排查、CI性能回归检测。输入为指定格式的JSON样本集,输出分析报告或版本差异结果,仅支持离线分析,不做实时追踪。

mike007jd
mike007jd
热度 41.17
最近更新 2026-05-11 17:37:12
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add skillpulse
Metadata
name
skill-profiler
description
Profile offline OpenClaw skill run samples to detect latency, CPU, and memory bottlenecks and compare sessions.
homepage
https://github.com/mike007jd/openclaw-skills/tree/main/skill-profiler
metadata
{"openclaw":{"emoji":"📈","requires":{"bins":["node"]}}}

Skill Profiler

Analyze offline sample sets and surface the slowest or heaviest skills before they become production regressions.

When to use

  • You have JSON sample logs with latencyMs, cpuMs, and memoryMb.
  • You want threshold-based hotspot detection for local review or CI.
  • You need a shareable JSON or HTML report, or a before/after comparison between two runs.

Commands

node {baseDir}/bin/skill-profiler.js run --input ./samples.json
node {baseDir}/bin/skill-profiler.js report --input ./samples.json --out ./report.html
node {baseDir}/bin/skill-profiler.js compare --left ./v1.json --right ./v2.json

Sample input

[
  {
    "sessionId": "s1",
    "skill": "clawshield",
    "latencyMs": 1320,
    "cpuMs": 910,
    "memoryMb": 240
  }
]

What it reports

  • Average latency and p95 latency per skill
  • Average CPU and peak memory per skill
  • Bottlenecks using configurable latency, CPU, and memory thresholds
  • Session diffs showing added, removed, and changed skills

Boundaries

  • Skill Profiler is built for offline sample analysis, not live tracing.
  • It depends on the quality of the input samples and does not capture traces by itself.