Canvas 标志

Canvas

组织
Navinspire-ia
canvas

在 Artifact Canvas 面板中,将独立的分析结果(审计、代码审查发现、基准测试、指标、Token 用量、PR/CI 状态、项目看板、视频 QA、调查以及数据量大的比较分析)呈现为 Navin 画布,并使用 present_artifact type=canvas 构建,其中的内容由带类型的 JSON 块组成。不适用于架构图(archify)、特定交付成果或简短回答。

Add to TypingMind

概览

发布者Navinspire-ia
代码仓库navin
技能名称canvas
星标数
37
复刻数
5
附带文件
仅含指令
许可协议AGPL-3.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 Navinspire-ia 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Canvas AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Navinspire-ia/navin/tree/main/navin/skills/canvas
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Navinspire-ia/navin.git /tmp/navin
mkdir -p .claude/skills
cp -r /tmp/navin/navin/skills/canvas .claude/skills/canvas
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Canvas,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Canvas。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Canvas 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Canvas

A canvas is a self-contained analytical page beside the chat: stat rows, sortable tables, labelled charts, timelines, findings and diffs, themed like the app. You send data (blocks); Navin validates it and renders it with a bundled kit. No HTML to write, no network at view time.

When to use

Use a canvas when the result is standalone and analytical, and the user will scan, sort or compare it:

  • audits and code review / security findings (severity, file:line, evidence, fix status)
  • performance benchmarks, before/after comparisons
  • metrics and usage (token usage, costs, counts over time)
  • investigations with several data points, architecture reviews with scored findings
  • status boards (PR checks, CI, project board, milestones)
  • repeatable reports the user will ask for again (same template, new data)

When not to use

  • The user asked for a specific deliverable (a docx, a deck, an app, a file in the repo): build that.
  • The work happens in a specific tool (editor, terminal, browser, board UI): stay there.
  • Active debugging loops: keep it in the transcript, fast.
  • Short answers: a sentence or a small Markdown table beats a canvas.
  • Architecture diagrams, PPT visuals, tender/RFP technical answers, Markdown plans: archify stays the default (AGENTS.md). Canvas is for data and analysis; it can sit next to an archify diagram, not replace it.
  • Outside the WebUI / desktop (Telegram, CLI): there is no canvas panel; answer in text.

How to call it

Free-form blocks:

json
present_artifact({
  "type": "canvas",
  "title": "API latency audit",
  "subtitle": "staging, 2026-10-12 to 2026-10-19",
  "blocks": [
    {"type": "stats", "items": [
      {"label": "Endpoints", "value": 42},
      {"label": "p95 over budget", "value": 3, "tone": "bad"}
    ]},
    {"type": "bar_chart", "title": "p95 by endpoint", "x_label": "Endpoint",
     "y_label": "p95 latency", "unit": "ms", "categories": ["/chat", "/files"],
     "series": [{"name": "Before", "values": [180, 95], "role": "baseline"},
                {"name": "After", "values": [120, 90]}],
     "caption": "Source: k6 run, 5 min at 50 rps. Lower is better."}
  ]
})

Templates (Navin data in, blocks out; navin/artifacts/canvas/templates.py):

templatedatasource
benchmark{"before": report, "after": report, "label_before"?, "label_after"?} or data_pathscripts/bench_tui.py --json, scripts/bench_agent_hotpath.py
findingsfindings list, or the security_scan / code_review filter resultreview + security tools
pr_status{"pr": forge pr_view, "ci": forge ci_status, "threads"?: [{path, line, resolved, body}]}forge tool
boardomit to read the project board.navin/board/
token_usageomit to read the usage log; {"prices": {model: {prompt, completion, cached}}} (USD per 1M tokens) adds estimated cost/api/settings/usage data
video_qadata_path to video-qa.jsonnavin/marketing/video_qa.py
json
present_artifact({"type": "canvas", "template": "video_qa", "data_path": "out/promo-qa/video-qa.json"})

Pass the same id to update a canvas in place instead of opening a new tab.

Block types

section (title, blocks, description?) | stats (items: label, value, unit?, delta?, tone?, hint?) | table (columns: key, label, unit?, align?, format? delta/delta_pct, better? lower/higher, mono?; rows; sort?; caption?) | bar_chart / line_chart (title, x_label, y_label, unit, caption, categories / x, series: name, values, role? baseline, color?; bar orientation? horizontal) | timeline (items: date, label, end?, status?, detail?, milestone?, critical?) | findings (items: severity critical/high/medium/low/info, title, file?, line?, location?, evidence?, detail?, status?, fix?) | diff (before/after: label, text) | badges (items: label, tone?) | text (text).

Table cells may be {"badge": "pass", "tone": "good", "sort": 2}. Tones: good, bad, warn, info, accent, neutral.

Validation rejects: unknown block types, empty lists (a canvas never shows an empty state), charts missing title, axis labels, unit, caption or series names, duplicate series names, mismatched lengths, non-finite numbers.

Design rules

  • Lead with a stats row: the 3 to 5 numbers that answer the question.
  • One idea per chart. Bars for categories, lines for time. Horizontal bars for long labels (models, file paths).
  • Every chart: title says what, axes say units, caption says source and time range. Legend appears automatically for multi-series.
  • Compare with role: "baseline" (grey) for before/previous and the accent for after/current. No more than 4 series.
  • Tables for detail, sorted by what matters (severity, p95, tokens). Numbers are right-aligned automatically.
  • Flat and calm: the kit forbids gradients, shadows and emojis; do not try to restyle it. Color means status, not decoration.
  • Aggregate before sending: top 12 plus "others", daily not per-request. Max 5000 table rows.
  • No em or en dashes in labels; use a hyphen.

Pre-delivery self-check

  1. Would a sentence answer it? Then do not make a canvas.
  2. Does the first row of stats answer the user's question on its own?
  3. Every chart has title, x_label, y_label with a unit, caption with source and range?
  4. Numbers come from tool output or files you read, not estimates? Say "estimated" where they are.
  5. Nothing empty, nothing duplicated between a chart and the table beside it without a reason.
  6. The tool returned "Presented 1 artifact(s)". If it returned a validation error, fix the listed blocks and call again.

Introducing it in the reply

One sentence pointing at the canvas plus the key takeaway, then stop: the canvas carries the detail. The first time in a conversation, say what it is: "I put the results in a canvas on the right: a sortable, themed report you can keep open while we work." Do not repeat the canvas content in the transcript.

常见问题

Canvas AI 技能有什么作用?

在 Artifact Canvas 面板中,将独立的分析结果(审计、代码审查发现、基准测试、指标、Token 用量、PR/CI 状态、项目看板、视频 QA、调查以及数据量大的比较分析)呈现为 Navin 画布,并使用 present_artifact type=canvas 构建,其中的内容由带类型的 JSON 块组成。不适用于架构图(archify)、特定交付成果或简短回答。

为什么在 TypingMind 中使用 Canvas?

因为您只需安装一次,就能搭配任何模型使用。Canvas 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Canvas?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Navinspire-ia/navin/tree/main/navin/skills/canvas。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Canvas?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Canvas 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Canvas 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Canvas AI 技能免费吗?

是的。Navinspire-ia 已在 GitHub 上根据 AGPL-3.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇