← Back to Skills Marketplace
360
Downloads
0
Stars
1
Active Installs
22
Versions
Install in OpenClaw
/install weiqi-sgf
Description
SGF围棋棋谱转HTML打谱工具 - 将棋谱文件生成可在浏览器中交互回放的网页,支持多级变化分支、试下功能、真实音效。当用户需要"SGF转网页"、"打谱"、"棋谱查看"、"变化图浏览"时使用此技能。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install weiqi-sgf - After installation, invoke the skill by name or use
/weiqi-sgf - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
添加依赖说明
Metadata
Frequently Asked Questions
What is 围棋打谱工具?
SGF围棋棋谱转HTML打谱工具 - 将棋谱文件生成可在浏览器中交互回放的网页,支持多级变化分支、试下功能、真实音效。当用户需要"SGF转网页"、"打谱"、"棋谱查看"、"变化图浏览"时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 360 downloads so far.
How do I install 围棋打谱工具?
Run "/install weiqi-sgf" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 围棋打谱工具 free?
Yes, 围棋打谱工具 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 围棋打谱工具 support?
围棋打谱工具 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 围棋打谱工具?
It is built and maintained by tokener (@zhangbin2025); the current version is v2.0.2.
More Skills