360 Secure SkillHub
360 安全技能中心

Osop Report

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

archie0125
archie0125
热度 44.82
最近更新 2026-05-11 17:39:05
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 报告撰写 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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