360 Secure SkillHub
360 安全技能中心

Osop Report

读取 .osop 工作流定义和可选的 .osoplog.yaml 执行日志,生成零外部依赖的独立 HTML 报告:按节点类型配色、可展开节点卡片、状态徽标、耗时条、工具调用与 AI 推理信息,并支持深色模式,报告保存到源文件旁。

分类:效率
archie0125
archie0125
热度 21.14
最近更新 2026-05-11 17:39:05

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add archie0125/osop-report
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
osop-report
description
Convert .osop and .osoplog.yaml into standalone HTML report with dark mode and expandable nodes
version
1.2.0
emoji
📊
homepage
https://osop.ai
argument-hint
<file.osop> [file.osoplog.yaml]
metadata
{"openclaw":{"requires":{"anyBins":["python3","python"],"config":["~/.osop/config.yaml"]},"install":[{"kind":"uv","package":"pyyaml"}],"always":false}}
user-invocable
true
disable-model-invocation
false

OSOP Report Generator

Convert workflow definition and/or execution log into a self-contained HTML report.

Arguments

$ARGUMENTS

If no arguments provided, look for the most recent files in sessions/ directory.

Steps

  1. Find the files — read the .osop file (first argument). If a .osoplog.yaml is also provided (second argument), read that too.

  2. Generate the HTML report using the embedded report generator or by building inline HTML:

    • Read both YAML files
    • Create a self-contained HTML with inline CSS
    • Each node becomes an expandable <details> element
    • Color-code by node type (orange=human, purple=agent, blue=api/cli/mcp, gray=git/docker/cicd, green=db/data)
    • Show status badges, duration bars, tool usage, AI metadata, reasoning blocks
    • Include dark mode via prefers-color-scheme
  3. Save the HTML next to the source file with -report.html suffix.

  4. Tell the user the file path so they can open it in a browser.

Output format

The HTML report includes:

  • Header: workflow name, status badge, duration, cost, node count
  • Error banner: any failed nodes listed prominently
  • Node list: expandable cards with type badge, duration bar, inputs/outputs, AI metadata, tool usage, reasoning
  • Dark mode responsive, <15KB, zero external dependencies