napkin
它能做什么
Napkin 会在浏览器中创建一块虚拟白板,你可以在上面绘图、速写和添加笔记。之后,AI 就能看到你画的内容,并给你提供想法或建议。
适用场景
- ✓在项目开始前,直观地整理思路。
- ✓勾勒工作流程或处理过程。
- ✓快速进行头脑风暴,并与 AI 分享。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/napkin/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我为我的网站集思广益,设计一个新版面。”
每周 5 个新技能,1 分钟读完。
工作原理
它会在浏览器中打开一块白板。你在上面绘图或书写,然后让 AI 进行分析。AI 会读取你的图片和便签文字,再给出回应。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Napkin — Visual Whiteboard for Copilot CLI
Napkin gives users a browser-based whiteboard where they can draw, sketch, and add sticky notes to think through ideas visually. The agent reads back the whiteboard contents (via a PNG snapshot and optional JSON data) and responds conversationally with analysis, suggestions, and next steps.
The target audience is lawyers, PMs, and business stakeholders — not software developers. Keep everything approachable and jargon-free.
Activation
When the user invokes this skill — saying things like "let's napkin," "open a napkin," "start a whiteboard," or using the slash command — do the following:
Copy the bundled HTML template from the skill assets to the user's Desktop.
- The template lives at
assets/napkin.htmlrelative to this SKILL.md file. - Copy it to
~/Desktop/napkin.html. - If
~/Desktop/napkin.htmlalready exists, ask the user whether they want to open the existing one or start fresh before overwriting.
- The template lives at
Open it in the default browser:
- macOS:
open ~/Desktop/napkin.html - Linux:
xdg-open ~/Desktop/napkin.html - Windows:
start ~/Desktop/napkin.html
- macOS:
Tell the user what to do next. Say something warm and simple:
Your napkin is open in your browser! Draw, sketch, or add sticky notes — whatever helps you think through your idea. When you're ready for my input, click the green "Share with Copilot" button on the whiteboard, then come back here and say "check the napkin."
Reading the Napkin
When the user says "check the napkin," "look at the napkin," "what do you think," "read my napkin," or anything similar, follow these steps:
Step 1 — Read the PNG snapshot (primary)
Look for a PNG file called napkin-snapshot.png. Check these locations in order (the browser saves it to the user's default download folder, which varies):
~/Downloads/napkin-snapshot.png~/Desktop/napkin-snapshot.png
Use the view tool to read the PNG. This sends the image as base64-encoded data to the model, which can visually interpret it. The PNG is the primary way the agent understands what the user drew — it captures freehand sketches, arrows, spatial layout, annotations, circled or crossed-out items, and anything else on the canvas.
If the PNG is not found in either location, do NOT silently skip it. Instead, tell the user:
I don't see a snapshot from your napkin yet. Here's what to do:
1. Go to your whiteboard in the browser
2. Click the green "Share with Copilot" button
3. Come back here and say "check the napkin" again
The button saves a screenshot that I can look at.
Step 2 — Read the clipboard for structured JSON (supplementary)
Also try to grab structured JSON data from the system clipboard. The whiteboard copies this automatically alongside the PNG.
- macOS:
pbpaste - Linux:
xclip -selection clipboard -o - Windows:
powershell -command "Get-Clipboard"
The JSON contains the exact text content of sticky notes and text labels, their positions, and their colors. This supplements the PNG by giving you precise text that might be hard to read from a screenshot.
If the clipboard doesn't contain JSON data, that's fine — the PNG alone gives the model plenty to work with. Do not treat a missing clipboard as an error.
Step 3 — Interpret both sources together
Synthesize the visual snapshot and the structured text into a coherent understanding of what the user is thinking or planning:
- From the PNG: Describe what you see — sketches, diagrams, flowcharts, groupings, arrows, spatial layout, annotations, circled items, crossed-out items, emphasis marks.
- From the JSON: Read the exact text content of sticky notes and labels, noting their positions and colors.
- Combine both into a single, conversational interpretation.
Step 4 — Respond conversationally
Do not dump raw data or a technical summary. Respond as a collaborator who looked at someone's whiteboard sketch. Examples:
- "I can see you've sketched out a three-stage process — it looks like you're thinking about [X] flowing into [Y] and then [Z]. The sticky note in the corner says '[text]' — is that a concern you want me to address?"
- "It looks like you've grouped these four ideas together on the left side and separated them from the two items on the right. Are you thinking of these as two different categories?"
…
常见问题
如果 AI 找不到我的绘图怎么办?
如果 AI 找不到白板图片,它会让你点击白板上的“与 Copilot 共享”按钮,然后再试一次。
AI 能直接在我的白板上画画吗?
不能直接画。AI 可以提供想法,或者根据你的绘图内容另外创建一份文档。
我需要很会画画吗?
不需要!最重要的是理清你的思路。即使你的图画得很简单,AI 也能理解。
详情
作者的原始描述
Visual whiteboard collaboration for Copilot CLI. Creates an interactive whiteboard that opens in your browser — draw, sketch, add sticky notes, then share everything back with Copilot. Copilot sees your drawings and text, and responds with analysis, suggestions, and ideas.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7307
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。