Generate OSOP session log — creates .osop workflow and .osoplog.yaml execution record
你刚刚完成了一项任务。现在生成一份结构化的会话日志。
如果 sessions/ 目录不存在,请创建它。
$ARGUMENTS
yaml
osop_version: 1.0
id: session-<简短描述>
name: <你完成的工作>
description: <1-2句话摘要>
version: 1.0.0
tags: [claude-code, <相关标签>]
nodes:
- id: <步骤ID>
type: <节点类型> # human, agent, mcp, cli, api, cicd, git, db, docker, infra, system, event, gateway, data, company, department
subtype: <子类型> # 可选: llm, explore, plan, worker, tool, test, commit, rest, 等
name: <步骤名称>
description: <该步骤的功能>
security:
risk_level:
edges:
- from: <步骤A>
to: <步骤B>
mode: sequential # sequential, parallel, conditional, fallback, error, spawn, 等
yaml
osoplog_version: 1.0
run_id: <生成UUID>
workflow_id: <匹配.osop中的id>
mode: live
status: COMPLETED
trigger:
type: manual
actor: user
timestamp:
started_at:
ended_at:
duration_ms: <总毫秒数>
runtime:
agent: claude-code
model: <当前模型>
node_records:
- node_id: <步骤ID>
node_type: <类型>
attempt: 1
status: COMPLETED
started_at:
ended_at:
duration_ms: <毫秒数>
outputs:
<你产出的内容>
tools_used:
- { tool: <工具名称>, calls: <调用次数> }
reasoning:
question: <决策内容>
selected: <选择的方法>
confidence: <0.0-1.0>
result_summary: <1-2句话摘要>
| 操作 | type | subtype |
|---|---|---|
| 读取/浏览文件 | mcp | tool |
| 编辑/写入文件 |
如果你生成了子代理,请在子节点上使用 parent 字段,并使用 spawn 边:
yaml
nodes:
- id: coordinator
type: agent
subtype: coordinator
- id: explore_1
type: agent
subtype: explore
parent: coordinator
edges:
- from: coordinator
to: explore_1
mode: spawn
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 osop-log-1775888963 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 osop-log-1775888963 技能
skillhub install osop-log-1775888963
文件大小: 2.14 KB | 发布时间: 2026-4-12 10:53