课程应用截图内容核对
check-screenshots-content
验证 GitHub Copilot 应用截图与课程内容一致。在运行 /check-screenshots-content 时,或被要求确认章节 assets 文件夹中 app- 前缀的截图与引用它们的 README 标签、按钮名称、菜单项、对话框选项及分步说明保持一致时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 165
- Forks
- 196
01 前言 Front Matter
- name
- check-screenshots-content
- description
- Verify GitHub Copilot app screenshots match the course content. Use when running /check-screenshots-content, or when asked to confirm that app- prefixed screenshots in chapter assets folders are consistent with the README labels, button names, menu items, dialog options, and step-by-step instructions that reference them.
02 资源文件 1
03 SKILL.md 正文
Check Screenshots Content
Use this skill to confirm that the app screenshots in the course stay in sync with the course text that describes them. It loads every app screenshot, reads the UI text out of each image, and cross-checks that text against the chapter READMEs that embed or describe it.
Convention This Skill Assumes
- App screenshots (real GitHub Copilot app captures) are named
app-<topic>.webpand live in a chapter'sassets/folder, for example03-development-workflows/assets/app-workspace-panel.webp. - Illustrations and analogy art (recording-studio theme, flow diagrams) do not
use the
app-prefix, so this skill ignores them.
If an obvious app screenshot is missing the app- prefix, flag it so the author
can rename it (and update the README image reference).
What To Check
For every app-* screenshot, compare the exact on-screen text to how the
course refers to it:
- Label casing and wording — UI labels must match the screenshot verbatim,
including casing. For example the sidebar shows
Pull requests(lowercase "r"),Issues,Dashboards,Automations, andCustomize. TheChatsrow appears underSessionsafter a chat exists. Match the specific control: the cloud Tools group isPull Requests, but the sidebar view isPull requests. - Buttons, menu items, and dialog options — names the README tells the user
to click must match the screenshot, e.g.
Create from…,Toggle Panel,Exit plan mode and I will prompt myself,Local folder or repository,GitHub repository,Repository URL. - Mode and control names —
Interactive,Plan,Autopilotplus their descriptions, and the model / reasoning-effort controls.Copilot FusionhasStandard,High, andMaxeffort levels; it is not a session mode. - Image embed and alt text — every
app-*image is embedded by at least one README (no orphan images), everylink resolves to a file that exists (no broken paths), and the alt text matches what the image shows. - Instruction ↔ screenshot coverage — when a README step names a UI
affordance that a screenshot does show, the wording must match. When a step
names an affordance that no screenshot shows, report it as a coverage gap
(these are often already marked with
<!-- app-screenshot: ... -->or<!-- MANUAL STEP TO VERIFY ... -->comments).
Treat
.github/skills/github-copilot-app-automation/references/app-ui-map.md
as the canonical source for UI label spelling and casing. If a screenshot and the
UI map disagree, trust the screenshot and note that the UI map needs a refresh.
Workflow
-
Discover and prepare the images. Run the helper, which lists every
app-*screenshot and writes a PNG copy you can load (some.webpfiles do not load directly in the image view tool):bash .github/skills/check-screenshots-content/sample_codes/list-app-screenshots.shFallback if you prefer to do it by hand: glob
*/assets/app-*and convert any.webpwithsips -s format png <file>.webp --out /tmp/<name>.pngbefore viewing. -
Read each screenshot. View the PNG and transcribe the visible UI text: labels, button captions, menu items, dialog headings and options, mode names, tooltips, and any keyboard shortcuts.
-
Find where the course references it. For each image, grep the chapters for its filename to find the embedding README and the surrounding steps, e.g.
grep -rn "app-workspace-panel" .Then read the alt text and the nearby numbered steps. -
Cross-check the transcribed text against the README using the rules in What To Check above. Also scan the whole course for the visible labels to catch casing drift in chapters that do not embed the image (e.g.
grep -rn "Pull Requests" .). -
Report findings (see Output). Do not edit images or rename files as part of the check. Only propose or apply text fixes if the user asks.
Output
Produce a concise, grouped report:
- ✅ Matches — screenshot ↔ course text agreements worth confirming (brief).
- ⚠️ Discrepancies — concrete mismatches, each with the screenshot, the
expected on-screen text, the actual course text, and a
file:linecitation. - 📷 Coverage gaps — README steps that name UI with no supporting screenshot,
and any obvious app screenshot missing the
app-prefix.
Keep citations exact (path/README.md:NN) so fixes are easy to apply.
Safety and Notes
- Convert
.webpto PNG in a temp dir (/tmp), never write derived images into the repo. - Screenshots may contain account names, private repo names, or paths. Do not copy private data into the report; describe the UI generically.
- Casing matters: product labels use the app's exact sentence case
(e.g.
Pull requests,Assigned to me), even inside Title Case headings.
04 同仓库更多 Skills
Copilot桌面应用自动化
github-copilot-app-automation
自动化并研究 GitHub Copilot 应用的桌面端体验。用于驱动 Copilot App 会话、创建隔离的应用实验、梳理应用 UI/无障碍控件、截取应用截图、保存 PNG 截图、优化 WebP 图像、测试提示词(不实际提交)、使用 app/session API、画布(canvas)、自动化(automations)、macOS 辅助功能(Accessibility)、AppleScript,以及安全的 Copilot App 端到端工作流探测。
SVG图像步骤标注
create-svg-image
将光栅图像包装在 SVG 中,并叠加一个带编号的红色“步骤”圆圈,用于课程截图。在运行 /create-svg-image 时使用,或被要求为图像添加带编号的标注徽章时使用(例如指向某个 UI 控件的带“1”的红色圆圈),且该标注必须仍能在 GitHub README 中正常渲染。
示例图书应用变更审查
book-app-reviewer
审查 samples/book-app-web 中的变更,涵盖无障碍访问、响应式布局、测试/构建验证,以及适合初学者的细小改动。