← 返回 Skills 市场
qhyw99

Interactive Infographic

作者 ContextWeave · GitHub ↗ · v0.1.8 · MIT-0
cross-platform ⚠ suspicious
258
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install interactive-infographic
功能描述
强大的AI自动化绘图与复杂信息可视化工具(基于 ContextWeave)。不仅支持代码与系统架构的可视化,更广泛适用于复杂逻辑梳理、知识库转换、业务流程图、思维导图及长文本的结构化信息图生成。通过深度的语义分析与请求编排,一键将晦涩文本与复杂知识转化为清晰直观的图形表达。
使用说明 (SKILL.md)

\r \r

ContextWeave Skill\r

\r 本 Skill 的定位是“绘图请求客户端”,负责把用户需求转换为可执行的绘图意图,并通过基于文件生成的单一路径与后端协同完成产出。\r \r

哲学层\r

\r

论证而非展示\r

\r

  • 图结构必须服务于语义论证,而非仅做视觉摆放\r
  • 概念层级、因果关系、依赖链路需成为结构主线\r
  • 当存在多种图形组织方式时,优先选择能解释“为什么这样组织”的方案\r \r

关系显式化\r

\r

  • 关系通过显式连线、依赖方向、分层归属表达\r
  • 禁止用“元素靠得近”替代关系定义\r
  • 关键关系必须可被复述为明确语句(例如“A 依赖 B”“C 触发 D”)\r \r

同构校验\r

\r

  • 结构方案应通过“去文字后仍可识别核心逻辑”的检验\r
  • 若移除文本标签后关系含义丢失,说明结构设计不合格\r
  • 每次复杂改动后都需重新校验结构与语义是否同构\r \r

术语语义补全规则\r

\r

未知专有名词强制释义\r

\r

  • 对后端返回或用户输入中的未知专有名词,必须先完成语义释义再进入绘图请求编排\r
  • 未释义术语不得直接作为节点标签、分组标题或关系端点输出\r
  • 释义结论需可复述为完整语句,避免仅保留缩写或单词本体\r \r

最小补全信息集\r

\r

  • 角色:术语在当前系统中的对象类型与责任边界\r
  • 层级:术语所属模块、抽象层或业务层位置\r
  • 动作:术语触发、承载或约束的关键行为\r
  • 上下游关系:术语与前置依赖、后续影响对象的连接关系\r \r

反模式约束\r

\r

  • 禁止“仅列词成框”:只把术语放入方框但不定义语义与关系\r
  • 若输入仅包含术语清单,先补全最小信息集,再生成结构化图意图\r
  • 替代写法必须体现“术语定义 + 关系链路 + 作用路径”,而非词汇堆叠\r \r

案例执行准则\r

\r

Good Case 准则\r

\r

  • 归纳为“链路完备输入”:输入已包含术语语义、关系方向、层级归属与关键动作\r
  • 编排时直接进入结构决策与请求组织,重点优化论证路径与可读性\r \r

Bad Case 准则\r

\r

  • 归纳为“术语不足输入先释义再出图”:输入语义不足时,先补全术语定义与上下游关系\r
  • 补全完成前不得进入最终生成阶段\r \r

输出前自检\r

\r

  • 检查是否存在未释义专有名词\r
  • 检查每个关键术语是否具备角色、层级、动作、上下游关系\r
  • 检查图中是否出现“仅列词成框”且缺少关系链路\r
  • 检查 good/bad case 准则是否被正确执行\r \r

会话规则\r

\r

  • 客户端本身无状态,状态由后端托管\r
  • 首次生成后必须从返回 JSON 中提取 session_id\r
  • 当前默认流程只要求完成基于文件的生成调用\r
  • 不要求用户重复输入旧会话,优先复用上一步返回值\r
  • 若会话缺失或过期,按错误策略重试当前生成调用\r \r

客户端职责边界\r

\r

客户端负责\r

\r

  • 分析用户输入,抽取实体、关系、层级与叙事路径\r
  • 将图表达意图组织为结构化文件,并触发基于 input_file 的后端调用\r
  • 从后端返回中提取关键字段并组织规整结果输出\r \r

后端负责\r

\r

  • 绘图引擎执行与渲染产出\r
  • 图元布局、坐标计算、路由与格式化导出实现\r
  • 运行时执行控制与图形生成细节\r \r

非职责范围\r

\r

  • 本地编译流程与执行管线设计\r
  • 本地渲染实现或图形引擎运行细节\r
  • 在 Skill 层定义坐标级布局算法与底层绘图执行逻辑\r \r

执行优先级规则\r

\r

  • 默认只走“请求编排为文件后,基于文件生成”这一种执行形式\r
  • 禁止只给语义分析或方案文本而不发起脚本调用\r
  • 若脚本失败,先按错误策略重试;仅在重试后仍失败时,输出失败原因与下一步操作建议\r
  • 路径应使用可移植定位:优先基于 Skill 根目录执行 scripts/...,避免依赖宿主固定绝对路径\r
  • 推荐完成“落盘 + 执行 + 回填”闭环:先写 input_file,再执行脚本,最后回填结果\r
  • 若当前环境无法执行脚本,需明确返回受限原因,并提供可执行替代步骤\r \r

决策流表达\r

\r

  1. 解析需求:识别用户想表达的核心问题、受众和信息密度\r
  2. 结构决策:基于哲学层原则选择图组织方式并显式定义关系\r
  3. 请求编排:将结构化意图组织为文件并写入 input_file\r
  4. 基于文件生成:node scripts/generate_contextweave.cjs --input_file "\x3C绝对文件路径>"\r
  5. 结果校验:检查结构是否仍满足“论证性、关系显式、同构可读”\r \r

意图到命令模板\r

\r

  • 请求编排:将结构化意图组织为文件后,向后端发起调用 - 基于文件生成:node scripts/generate_contextweave.cjs --input_file "\x3C绝对文件路径>"\r \r

参数约束与回填规则\r

\r

  • input_file:必填,且必须为绝对路径\r
  • input_file:执行前必须存在且可读;不存在时禁止调用脚本\r
  • 文件内容:必须是结构化意图结果,禁止仅放零散关键词\r
  • 返回回填:每轮输出必须包含本轮脚本名、执行状态、核心返回字段\r
  • 若未完成落盘或未实际执行脚本:返回 status: error 且标记 code: EXECUTION_NOT_PERFORMED\r
  • input_file 不存在:返回 status: error 且标记 code: INPUT_FILE_NOT_FOUND\r
  • input_file 非绝对路径:返回 status: error 且标记 code: INPUT_FILE_NOT_ABSOLUTE\r \r

回复格式硬约束\r

\r

  • 回复必须是单个 JSON 对象,禁止 markdown、标题、解释性段落、代码块\r
  • 未执行脚本时禁止返回“方案说明”,必须返回错误 JSON\r
  • JSON 字段顺序固定为:scriptinput_filestatussession_idresulterror\r
  • status 仅允许 okerror\r
  • status=ok 时必须包含 session_idresulterror 置为 null\r
  • status=error 时必须包含 error.codeerror.messagesession_id 置为 null\r \r

成功 JSON 模板\r

\r {"script":"generate_contextweave.cjs","input_file":"/abs/path/request_xxx.md","status":"ok","session_id":"\x3Csession_id>","result":{"run_id":"\x3Crun_id>","svg_url":"\x3Csvg_url>"},"error":null}\r \r

失败 JSON 模板\r

\r {"script":"generate_contextweave.cjs","input_file":"/abs/path/request_xxx.md","status":"error","session_id":null,"result":null,"error":{"code":"EXECUTION_NOT_PERFORMED","message":"未完成落盘或未执行脚本"}}\r \r

文件落盘与执行规范\r

\r

  • 默认落盘目录:当前工作区目录下的 .cw_skill/requests\r
  • 文件名规范:request_\x3Ctimestamp>.md\r
  • 文件最小结构:# Request 段写自然语言目标;\r
  • 完整执行顺序:生成结构化内容 → 写文件 → 校验路径绝对性与文件存在 → 执行脚本 → 解析 JSON → 输出回填\r
  • 成功输出至少包含:scriptinput_filestatussession_id、关键产物字段,且 input_file 必须是实际存在路径\r
  • 失败输出至少包含:scriptinput_filestatus:errorerror.codeerror.message\r \r

脚本能力映射\r

\r

  • scripts/generate_contextweave.cjs:用于基于 input_file 执行生成;输出包含可复用的 session_id\r
  • scripts/cw_client.cjs:用于统一后端请求与响应适配;承载鉴权、错误归一和返回结构解析\r \r

错误策略\r

\r

  • MISSING_SESSION_ID:视为不可继续迭代,立即重试当前请求并校验返回\r
  • SESSION_INVALID_OR_EXPIRED:先重建会话,再回放当前意图\r
  • AUTH_ERROR:校验密钥与配置后重试\r
  • PAYMENT_REQUIRED:完成额度恢复后重试\r
  • API_ERROR:检查网络与服务状态后重试\r \r

输入约束\r

\r

  • input_file:来自当前回合请求编排产物,必须为绝对路径\r
  • 文件内容:需要体现结构化意图与关系,不使用空文件或纯术语清单\r
  • 其他请求参数:按脚本参数要求透传,不在 Skill 层定义渲染实现细节\r \r

安全边界与隐私声明\r

\r

  • 后端地址与数据路由:本 Skill 在运行时会读取 CONTEXTWEAVE_EDITOR_PROTOCOL,若未显式设置,将使用内置默认值 trae。代码会将带有 API Key 和绘图数据的请求发送至内置的官方服务器(https://pptx.chenxitech.site)。用户明确知悉其数据会被路由至该默认配置的地址。\r
  • 凭据获取:凭据优先读取环境变量 CONTEXTWEAVE_MCP_API_KEY,若未显式设置,将使用内置的默认匿名凭据。不得通过扫描本地目录自动发现密钥。\r
  • 文件访问:只读取当前任务明确指定的输入文件;禁止遍历用户目录、工作区或无关配置文件;所有文件路径必须是绝对路径且被严格限制在当前执行工作区目录范围内。\r
  • 数据最小化:仅向后端发送完成当前绘图请求所必需的数据,禁止附带无关本地文件内容。\r
安全使用建议
This skill will send the text you provide (and any CW code blocks in the input file) to a remote server hard-coded as https://pptx.chenxitech.site. The code also contains a built-in default API key, and it reads an additional env var (CONTEXTWEAVE_EDITOR_PROTOCOL) that isn't listed in the metadata. Before using: (1) don't supply sensitive or confidential data unless you trust the remote domain and operator; (2) review and, if desired, change the hard-coded base URL and remove the embedded default API key or replace it with a key you control; (3) prefer running the scripts in a sandboxed environment and test with non-sensitive inputs; (4) be aware that some helper scripts default to relative names (e.g., import/export) but the client enforces absolute paths — expect some CLI rough edges. If you want to trust this skill, ask the publisher for a clear statement of the backend operator, or modify the scripts to point to a backend you control.
功能分析
Type: OpenClaw Skill Name: interactive-infographic Version: 0.1.8 The skill bundle is a legitimate client for the ContextWeave visualization service, designed to convert text and structured data into infographics. The code in `cw_client.cjs` includes proactive security measures, such as path traversal validation (`validateSafePath`) to ensure file access is restricted to the working directory and a URL allowlist to prevent unauthorized data exfiltration to untrusted domains. While it contains a hardcoded default API key, this appears to be an intentional fallback for default service access rather than a malicious credential leak. The instructions in `SKILL.md` are focused on semantic analysis and diagram quality, with no evidence of prompt injection or harmful intent.
能力评估
Purpose & Capability
The skill's name/description (convert text into diagrams via ContextWeave backend) aligns with its code (node scripts that read an input file and POST to a remote /run endpoint). Requiring node and an API key is expected. However, the repository includes a sample config (cwmcp_config.example.json) suggesting an api_url override, but the runtime code does not read that config and instead hardcodes https://pptx.chenxitech.site. That mismatch is unexpected and reduces transparency.
Instruction Scope
Runtime instructions and scripts restrict file reads to the provided input_file and validate that it is absolute and inside the current working directory before reading. The scripts follow the described workflow (write file → run scripts/generate_contextweave.cjs → POST). The SKILL.md explicitly discloses that data (and API key) will be routed to the built-in server. One minor inconsistency: SKILL.md references reading CONTEXTWEAVE_EDITOR_PROTOCOL and the code does so, but that env var is not documented in the registry metadata.
Install Mechanism
No install spec is present (instruction + scripts only). This minimizes surprising installation behavior (nothing is downloaded or installed automatically). The risk comes from executing local node scripts that will make network calls — not from an install/download step.
Credentials
Declared primary credential is CONTEXTWEAVE_MCP_API_KEY (appropriate), but the code also reads CONTEXTWEAVE_EDITOR_PROTOCOL (not declared in metadata). The CW client contains a hard-coded default API key value embedded in source; this means the skill will operate even without a user-provided key and could cause requests to be attributed to that shared/anonymous key. The declared set of env vars is incomplete relative to what the code actually uses.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent platform privileges. It does not modify other skills or system-wide settings. Scripts write files into the working directory only and the client enforces path checks to avoid traversal outside the cwd.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install interactive-infographic
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /interactive-infographic 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.8
- 移除了环境变量 CONTEXTWEAVE_API_URL 的必需约束,仅保留了 CONTEXTWEAVE_MCP_API_KEY(如未设置将使用匿名凭据)。 - 安全边界与隐私声明更新:明确请求会发送至官方服务器 https://pptx.chenxitech.site,支持通过 CONTEXTWEAVE_EDITOR_PROTOCOL 设置数据路由,未指定时使用内置配置。 - 优化了凭据读取优先级和方式,防止通过本地扫描自动发现密钥。 - 明确了默认地址、数据路由与凭据获取的行为,增强用户对数据流向和安全性的知情权。 - 其余执行流程与接口格式保持一致。
v0.1.1
- Skill 名称由 "contextweave-diagrams-infographic" 改为 "interactive-infographic" - 文件 SKILL.md 内的所有标识与说明均已更新为新名称 - 保持全部现有功能与约束描述不变,仅进行品牌和命名上的更新
v0.1.0
Initial release of contextweave-diagrams-infographic skill: - Provides automated, AI-powered complex information diagramming and visualization (business flows, mind maps, system/process diagrams). - Enforces semantic structure: diagrams reflect explicit relationships, concept hierarchies, causality, and dependency chains. - Strong rules for handling unknown terminology and structuring input before visualization; prevents diagrams with undefined or contextless terms. - Strict JSON output and error handling format, with detailed controls on file/command execution and client-server interaction. - Requires environment variables for secure authentication and API connection. - Designed as a “draw request client” coordinating user intent, diagram structure, and back-end execution via file-based workflows.
元数据
Slug interactive-infographic
版本 0.1.8
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Interactive Infographic 是什么?

强大的AI自动化绘图与复杂信息可视化工具(基于 ContextWeave)。不仅支持代码与系统架构的可视化,更广泛适用于复杂逻辑梳理、知识库转换、业务流程图、思维导图及长文本的结构化信息图生成。通过深度的语义分析与请求编排,一键将晦涩文本与复杂知识转化为清晰直观的图形表达。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 258 次。

如何安装 Interactive Infographic?

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

Interactive Infographic 是免费的吗?

是的,Interactive Infographic 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Interactive Infographic 支持哪些平台?

Interactive Infographic 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Interactive Infographic?

由 ContextWeave(@qhyw99)开发并维护,当前版本 v0.1.8。

💬 留言讨论