Agent Skillsddcat-ai/open-ai-canvas › canvas-context

canvas-context

GitHub

理解画布语义结构、选区及资源状态,指导基于现有画布继续工作。支持节点查询、任务状态观察及工作流创建,确保操作基于事实而非猜测。

plugins/yingce/skills/canvas-context/SKILL.md ddcat-ai/open-ai-canvas

触发场景

需要读取画布上下文或节点信息 询问选中内容或资源状态 请求创建流水线或工作流

安装

npx skills add ddcat-ai/open-ai-canvas --skill canvas-context -g -y
更多选项

非标准路径

npx skills add https://github.com/ddcat-ai/open-ai-canvas/tree/main/plugins/yingce/skills/canvas-context -g -y

不安装直接使用

npx skills use ddcat-ai/open-ai-canvas@canvas-context

指定 Agent (Claude Code)

npx skills add ddcat-ai/open-ai-canvas --skill canvas-context -a claude-code -g -y

安装 repo 全部 skill

npx skills add ddcat-ai/open-ai-canvas --all -g -y

预览 repo 内 skill

npx skills add ddcat-ai/open-ai-canvas --list

SKILL.md

Frontmatter
{
    "name": "canvas-context",
    "description": "理解影策当前画布的语义结构、选区、连接关系和媒体资源状态;适用于任何需要基于已有画布继续工作的请求。"
}

画布上下文协议

不要把画布当成一段需要猜测的 JSON。先读取事实,再决定动作:

  1. canvas_get_context:读取语义化节点、真实 id、连接关系、选区、资源清单和 stateHash
  2. 用户说“这个/选中内容”时,补 canvas_get_selection
  3. 不知道节点 id 时用 canvas_find_nodes,不要猜 id。
  4. 已经知道真实节点或连线 id 时,分别用 canvas_get_node / canvas_get_connection 精确读取,不要为确认一个对象反复传输整张画布。
  5. 需要知道画布内生成任务的绑定节点、taskId、状态、进度或阶段时,用 canvas_get_generation_tasks;它只观察画布快照,不等于主动轮询上游。
  6. 涉及图片、视频、音频参考时用 canvas_get_resources;只有 ready=true 且有持久化引用的资源才可作为可用素材。
  7. 看到 loadingerror、缺少 storageKey/resourceId 的节点时,向用户说明它是未就绪或占位状态。

上下文只作为事实来源,不要把 storageKey、内部 id 或资源状态编造成媒体 URL。工具结果返回后,以结果为准继续下一步。

工作流与流水线

用户提出“流水线、工作流、节点图、管线、连线”时,优先使用 canvas_create_workflow,不要用 canvas_create_text_nodes 伪造流程。将阶段拆成真实语义节点:

  • character_cards:角色拆分图片卡片,实际类型为 image
  • character_three_view:角色三视图,实际类型为 image
  • storyboard_video:分镜剧情视频,实际类型为 video
  • script:剧本或分镜文字,实际类型为 script

媒体节点要有 promptcontent。已知画布素材时,先检索并将真实 node id 放入 referenceNodeIds;工作流内部依赖放入 referenceRefs。工具会自动布局、默认建立顺序连线并返回连接与重叠复核结果。只有结果中的 verification 确认连接实际存在时,才能向用户报告“已连线”。

版本历史

  • ad9c74b 当前 2026-08-27 10:17

同 Skill 集合

.claude/skills/superdesign/SKILL.md
plugins/infinite-canvas/skills/open-canvas/SKILL.md
plugins/yingce/skills/asset-aware-generation/SKILL.md
plugins/yingce/skills/open-canvas/SKILL.md
plugins/infinite-canvas/skills/canvas/SKILL.md
plugins/yingce/skills/canvas-editing/SKILL.md
plugins/yingce/skills/canvas/SKILL.md

元信息

文件数
0
版本
474f21d
Hash
549bddb0
收录时间
2026-08-27 10:17

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 06:31
浙ICP备14020137号-1 $访客地图$