← 返回 Skills 市场
zhangbin2025

围棋打谱工具

作者 tokener · GitHub ↗ · v2.0.2 · MIT-0
cross-platform ✓ 安全检测通过
360
总下载
0
收藏
1
当前安装
22
版本数
在 OpenClaw 中安装
/install weiqi-sgf
功能描述
SGF围棋棋谱转HTML打谱工具 - 将棋谱文件生成可在浏览器中交互回放的网页,支持多级变化分支、试下功能、真实音效。当用户需要"SGF转网页"、"打谱"、"棋谱查看"、"变化图浏览"时使用此技能。
安全使用建议
This appears to be a coherent, local SGF→HTML converter. Before running: (1) Review the included scripts if you want extra assurance (they are present and short); (2) Run the script as an unprivileged user and only on SGF files you trust or in a sandbox; (3) Open the produced HTML offline in a browser (no network) to inspect behavior. Although the author added HTML/JSON escaping, any tool that embeds user-provided content into HTML can carry XSS risk if modified later — if you need high assurance, inspect the generated HTML (it should contain escaped JSON and the viewer JS) or run it in an isolated environment.
功能分析
Type: OpenClaw Skill Name: weiqi-sgf Version: 2.0.2 The 'weiqi-sgf' skill bundle is a legitimate tool for converting SGF Go game records into interactive HTML replay pages. The Python scripts (replay.py and sgf_parser.py) use standard libraries to parse SGF files and generate HTML, incorporating proper security measures like html.escape() and json.dumps() to prevent injection attacks. The generated HTML (replay.html) is a self-contained file that operates entirely client-side without any network dependencies or external tracking, and it includes a robust SGF parser and UI logic for game navigation and trial play.
能力评估
Purpose & Capability
Skill name/description (SGF to interactive HTML) matches the provided scripts and template. The code only parses SGF text and emits a single-file HTML viewer; no unrelated dependencies, binaries, or cloud credentials are requested.
Instruction Scope
SKILL.md instructs running scripts/replay.py on a user-supplied .sgf and opening the generated HTML. The scripts read the SGF file and write an HTML file only — they do not access other system config paths, environment variables, or remote endpoints in the included code.
Install Mechanism
No install spec is present (instruction-only with bundled scripts). No remote downloads or package installs are requested.
Credentials
No environment variables, credentials, or config paths are required. The tool requires only local file I/O for the input SGF and output HTML, which is proportional to its purpose.
Persistence & Privilege
Skill is not forced-always, does not modify other skills, and does not request persistent system privileges. It runs only when invoked by user or agent and has no autonomous install actions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install weiqi-sgf
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /weiqi-sgf 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.2
修复滑条初始化后无法拖拽跳转的问题; 修复试下功能中提子后禁入点检测问题; 修复 DEFAULT_MOVE 跳转后试下功能失效的问题; 修复停一手导致打谱网页无法正常显示的问题; 新增 replay.py --start-move 参数支持; 优化小屏幕布局和按钮间距防止误触; 控制按钮布局优化
v2.0.1
修复 JosekiDB 格式棋谱解析错误; 修复打谱网页滑条跳转问题; 新增变化分支注释和返回上级按钮; 非主分支时隐藏音效按钮; 使用棋局名称作为网页标题
v2.0.0
重构打谱工具,支持嵌套变化图
v1.3.1
fix: 补回试下功能缺失的代码(playMultiCaptureSound, goToStart, goToEnd, drawStoneWithOpacity, inVariation分支)
v1.3.0
refactor: 代码模块化重构,分离 SGF 解析模块和 HTML 模板; feat: 变化图功能优化,新增变化图面板和手数标记显示; docs: 更新 SKILL.md 文档说明
v1.2.2
docs: 强化安全文档,添加详细的安全特性表格和代码审计指引;为关键转义逻辑添加详细注释,便于审核员验证 XSS 防护措施
v1.2.1
fix: 修复脱先棋谱解析问题,支持空坐标(tt)解析;修复平面格式检测逻辑,支持少于10手的棋谱
v1.2.0
feat: 新增MULTIGOGM格式支持,兼容定式库8向变化SGF; feat: 提取并行分支变化图功能; feat: 支持脱先(pass)着法处理
v1.1.6
fix: 修复变化图模式下试下功能的冲突问题,变化图模式暂不支持试下
v1.1.5
fix: 修正显示名称为中文; feat: 添加真实围棋音效系统; feat: 添加试下功能到打谱网页; fix: 修复SGF注释中的反斜杠导致JSON解析错误的问题; style: 统一记谱页面样式
v1.1.4
feat: 添加真实围棋音效系统; feat: 添加试下功能到打谱网页; fix: 修复SGF注释中的反斜杠导致JSON解析错误的问题; style: 统一记谱页面样式
v1.1.3
修复让子解析逻辑:优先匹配分散格式 ;AB[xx]; 适应野狐实时对局SGF
v1.1.2
修复XSS漏洞:对SGF元数据进行HTML转义处理,添加安全解码机制
v1.1.1
添加让子棋支持,修复多让子格式解析bug,支持平面格式SGF
v1.1.0
新增AI变化图支持,优化响应式布局
v1.0.6
支持平面格式SGF解析,修复API下载棋谱只提取第一手的问题
v1.0.5
添加 tags 支持搜索优化
v1.0.4
优化搜索关键词
v1.0.3
修复安全扫描误报:使用 textContent 替代 innerHTML
v1.0.2
添加依赖说明
元数据
Slug weiqi-sgf
版本 2.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 22
常见问题

围棋打谱工具 是什么?

SGF围棋棋谱转HTML打谱工具 - 将棋谱文件生成可在浏览器中交互回放的网页,支持多级变化分支、试下功能、真实音效。当用户需要"SGF转网页"、"打谱"、"棋谱查看"、"变化图浏览"时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 360 次。

如何安装 围棋打谱工具?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install weiqi-sgf」即可一键安装,无需额外配置。

围棋打谱工具 是免费的吗?

是的,围棋打谱工具 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

围棋打谱工具 支持哪些平台?

围棋打谱工具 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 围棋打谱工具?

由 tokener(@zhangbin2025)开发并维护,当前版本 v2.0.2。

💬 留言讨论