canvas-context

canvas-context is a skill for Claude Code, Codex from ddcat-ai/open-ai-canvas. It costs 37 tokens per session (578 once invoked), scanned A, original, MIT.

A guide for reading the current state of a visual canvas, including its nodes, connections, selected items, and media resources. It also defines how to create real workflow nodes and verify their connections.

In plain words
What is it for?
It helps inspect selected content, find nodes, read exact node details, check generated media, build workflows, and confirm that stages are connected.
Why use it?
It prevents mistaken assumptions about what is on the canvas or whether an image, video, or connection is actually ready and available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps inspect selected content, find nodes, read exact node details, check generated media, build workflows, and confirm that stages are connected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ddcat-ai/open-ai-canvas/canvas-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ddcat-ai/open-ai-canvas --skill canvas-context
Clone the repo
git clone --depth 1 https://github.com/ddcat-ai/open-ai-canvas

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for canvas-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/ddcat-ai/open-ai-canvas/canvas-context/github.svg)](https://agentmods.dev/skills/ddcat-ai/open-ai-canvas/canvas-context)
Your own site
<a href="https://agentmods.dev/skills/ddcat-ai/open-ai-canvas/canvas-context"><img src="https://agentmods.dev/badge/skills/ddcat-ai/open-ai-canvas/canvas-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for canvas-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/ddcat-ai/open-ai-canvas/canvas-context"><img src="https://agentmods.dev/badge/skills/ddcat-ai/open-ai-canvas/canvas-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00578
Opus 5 $0.00018 $0.00289
Sonnet 5 $0.00007 $0.00116
Haiku 4.5 $0.00004 $0.00058

Measured 11d ago against content hash 549bddb05df8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

canvas-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/yingce/skills/canvas-context/SKILL.md · 30 lines

What it actually says

画布上下文协议

不要把画布当成一段需要猜测的 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 确认连接实际存在时,才能向用户报告“已连线”。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 30 lines · 37 tokens per session scan A 549bddb05df8

Subscribe to this mod's changes

canvas-context is a skill published in the GitHub repository ddcat-ai/open-ai-canvas (846 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 578 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens