visualize
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVisualize an OKF bundle
可视化OKF包
Generate a self-contained HTML graph of the target bundle (default the project's
). No backend, no install on the viewing side, no data leaves the page.
.okf/bash
uv run "${CLAUDE_SKILL_DIR}/scripts/okf_visualize.py" $ARGUMENTSIf is unavailable:
uvbash
python3 -m pip install --quiet pyyaml && \
python3 "${CLAUDE_SKILL_DIR}/scripts/okf_visualize.py" $ARGUMENTSThe detail panel shows each concept's , , ,
, and (with their credibility signals, a
alongside the that frames it); a entry pointing at
another concept in the bundle also becomes a graph edge. A v0.1 is
read as , so legacy bundles still render fully.
statusgeneratedverifiedstale_aftersourcesusage_countusage_windowsourcestimestampgenerated.atTwo badges are derived, not read: the §5.3 trust tier
(unverified / machine-confirmed / human-reviewed, keyed off the
prefix in ) and staleness (). They are
advisory signals — when reporting on a bundle, say which tier a concept is in
rather than treating any of them as a gate.
human:verified[].bytoday >= stale_afterThe output defaults to . Pass to write elsewhere.
Bundles above 1,000 concepts default to the linear layout (the
force layout freezes the page at that size — overrides), and
refuses oversized bundles, e.g. for CI.
Open it in any browser; resolves whether this runs as part
of the plugin or as a standalone skills.sh skill.
<bundle>/viz.html-o <path>concentric--layout cose--max-nodes N${CLAUDE_SKILL_DIR}okf生成目标包的独立HTML图谱(默认是项目的目录)。无需后端,查看端无需安装,数据不会离开页面。
.okf/bash
uv run "${CLAUDE_SKILL_DIR}/scripts/okf_visualize.py" $ARGUMENTS如果不可用:
uvbash
python3 -m pip install --quiet pyyaml && \
python3 "${CLAUDE_SKILL_DIR}/scripts/okf_visualize.py" $ARGUMENTS详情面板会显示每个概念的、、、和(包含可信度信号、以及对应的);指向包内另一个概念的条目也会成为图谱的一条边。v0.1版本的会被读取为,因此旧版包仍可完整渲染。
statusgeneratedverifiedstale_aftersourcesusage_countusage_windowsourcestimestampgenerated.at有两个徽章是派生的,而非直接读取:§5.3信任等级(未验证 / 机器确认 / 人工审核,由中的前缀决定)和过期状态()。它们是参考信号——在报告包内容时,应说明概念所属的等级,而非将其作为准入门槛。
verified[].byhuman:today >= stale_after输出默认路径为。传递参数可指定其他输出位置。超过1000个概念的包默认使用线性布局(力导向布局在该规模下会导致页面卡顿——可覆盖此设置),参数会拒绝处理过大的包,例如用于CI场景。在任意浏览器中打开生成的文件即可;会自动解析此工具是作为插件运行还是作为独立的skills.sh技能运行。
<bundle>/viz.html-o <path>concentric--layout cose--max-nodes N${CLAUDE_SKILL_DIR}okf