Agent Skills › ddcat-ai/open-ai-canvas › canvas-context

canvas-context

GitHub

提供画布上下文理解与操作规范,指导Agent通过工具读取节点、资源及状态,并正确构建包含角色卡片、分镜等语义节点的工作流流水线。

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

Trigger Scenarios

用户询问画布当前结构或选区内容 用户要求创建工作流、流水线或连接节点

Install

npx skills add ddcat-ai/open-ai-canvas --skill canvas-context -g -y
More Options

Non-standard path

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

Use without installing

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. 看到 loading、error、缺少 storageKey/resourceId 的节点时,向用户说明它是未就绪或占位状态。

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

工作流与流水线

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

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

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

Version History

  • ad9c74b Current 2026-08-27 10:17

Same Skill Collection

.claude/skills/superdesign/SKILL.md
backend/builtin/ai-表演实验室/SKILL.md
backend/builtin/ai演员微表情导演/SKILL.md
backend/builtin/ai造型师高转化模特图/SKILL.md
backend/builtin/asmr沉浸式潮玩开箱导演/SKILL.md
backend/builtin/freestyle-风格库/SKILL.md
backend/builtin/h三-视频提示词套件/SKILL.md
backend/builtin/oc魅力诊断师/SKILL.md
backend/builtin/seedance-二-五-导演工艺/SKILL.md
backend/builtin/seedance-提示词工程/SKILL.md
backend/builtin/tiktok网红带货视频/SKILL.md
backend/builtin/一五秒极致夸张反转提示词/SKILL.md
backend/builtin/一五秒视觉特效/SKILL.md
backend/builtin/一图成片-电影广告全能导演/SKILL.md
backend/builtin/一镜到底短剧流水线/SKILL.md
backend/builtin/三d国漫风转身变身特效/SKILL.md
backend/builtin/三幕式短剧工厂/SKILL.md
backend/builtin/世界观美术设定/SKILL.md
backend/builtin/二维动画线稿批量上色/SKILL.md
backend/builtin/人像捏脸导演/SKILL.md
backend/builtin/体验设计五原则/SKILL.md
backend/builtin/先锋服装商拍视觉指导/SKILL.md
backend/builtin/决策思维模型格森/SKILL.md
backend/builtin/分镜语法/SKILL.md
backend/builtin/剧本工业化机器/SKILL.md
backend/builtin/剧本撰写/SKILL.md
backend/builtin/剧本资产视频一条龙创作/SKILL.md
backend/builtin/发布片三件套/SKILL.md
backend/builtin/叙事短片导演分镜/SKILL.md
backend/builtin/名导十五秒视频风格资产引擎/SKILL.md
backend/builtin/喜剧-mechanics/SKILL.md
backend/builtin/定位与命名策略/SKILL.md
backend/builtin/对白工坊/SKILL.md
backend/builtin/小红书素人穿搭配方/SKILL.md
backend/builtin/广告全链路打法/SKILL.md
backend/builtin/广告文案四步系统/SKILL.md
backend/builtin/影策短剧制作工作流/SKILL.md
backend/builtin/情景喜剧工坊/SKILL.md
backend/builtin/提示词工程模式/SKILL.md
backend/builtin/故事开发/SKILL.md
backend/builtin/故事结构引擎/SKILL.md
backend/builtin/故事营销八阶段/SKILL.md
backend/builtin/散文质地工艺/SKILL.md
backend/builtin/数字人搞笑采访视频生成/SKILL.md
backend/builtin/模型路由交互/SKILL.md
backend/builtin/治愈系原创ip孵化助手/SKILL.md
backend/builtin/消费心理转化设计/SKILL.md
backend/builtin/珠宝电商图文视频一站式/SKILL.md
backend/builtin/珠宝设计出款/SKILL.md
backend/builtin/珠宝设计进化/SKILL.md

Metadata

Files
0
Version
76b646b
Hash
549bddb0
Indexed
2026-08-27 10:17

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-28 15:25
浙ICP备14020137号-1