前言¶
DSH 的理念是「一切皆插件」,社区目录是独立站点,与 DeepSeek / 幻方无官方从属关系。对智能体开发者来说,模型经常需要输出路线图、时间线、流程、能力地图等信息。若这些信息只以 Markdown 代码块出现,开发者往往需要复制 DSL、打开外部工具渲染、再导出 SVG 或 PNG。dsh-antv-infographic 把这部分流程放回 DSH 回复中:模型输出 infographic fenced block 后,插件可以直接渲染为 AntV Infographic SVG,并支持本地编辑与导出。
这是什么¶
dsh-antv-infographic 是一个 DSH 插件,由 HellowVirgil 维护,许可证为 MIT。它用于在 DeepSeek Harness(DSH)回复中渲染可编辑、可导出的 AntV Infographic SVG。
核心能力¶
下面介绍主要能力:
- 支持约 200 个 AntV Infographic 模板。
- 在模型流式响应时渐进渲染。
- 默认进入 view mode,可切换到 local editing mode。
- 可导出 SVG 或 PNG,并复制 source DSL。
- 当 DSH 可用
fence-registry时,插件使用该注册机制;旧宿主使用 DOM fallback,显示fence-channel=dom而不是fence-channel=registry。 - 按需加载 AntV engine,不阻塞 DSH 初始页面加载。
- 限制模型生成源大小,并阻止 executable markup、dangerous URLs 和 private-network resources。
- 提供可选的
antv-infographicSkill,用于更详细的模板选择和 DSL 生成指导。
安装与启用¶
1、把插件安装到 web profile:
dsh plugin --profile web add dsh-antv-infographic
2、安装完成后,重启 dsh web,并在浏览器中硬刷新页面。
3、如果 agent 环境会读取 ~/.agents/skills,并且希望获得更详细的模板选择与 DSL 生成指导,可安装可选 Skill:将 SKILL.md 复制到 ~/.agents/skills/antv-infographic/SKILL.md。插件本身不要求单独安装 Skill。
典型用法¶
在新会话中,可以使用下面这个示例提示:
Use infographic to create a roadmap from product research to scaled launch.
模型输出 infographic fenced block 后,插件会把它渐进渲染为 AntV Infographic SVG。经过上面的步骤,可以在 DSH 回复中查看信息图,并在本地编辑、导出 SVG/PNG、复制 source DSL。
适用场景与注意¶
适合以下场景:
- roadmaps
- timelines
- processes
- capability maps
- hierarchies
- comparisons
- data stories
- executive summaries
不适合以下场景:
- forms
- operational buttons
- quizzes
- complex business panels
- interactions whose results must be sent back to the model
注意:插件会限制模型生成源大小,并阻止 executable markup、dangerous URLs 和 private-network resources。由于插件以当前 dsh 进程权限运行,安装前应检查源码与许可证。插件许可证为 MIT,AntV Infographic 也为 MIT。
相关链接¶
- 目录页(
catalog_url字段提供;目录为独立站点,不与 DeepSeek / 幻方构成官方从属关系):https://www.skillhub.cn/plugins/HellowVirgil/dsh-antv-infographic - GitHub:https://github.com/HellowVirgil/dsh-antv-infographic