[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADBQXAJBTWP32YMPZJ5WRB":3,"skill-same:01M6ADBQXAJBTWP32YMPZJ5WRB":210},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6ADBQXAJBTWP32YMPZJ5WRB","github-copilot-app-automation","Copilot桌面应用自动化","Automate and research the GitHub Copilot app desktop experience. Use for driving Copilot App sessions, creating isolated app experiments, mapping app UI\u002Faccessibility controls, taking app screenshots, saving PNG captures, optimizing WebP images, testing prompts without submitting, using app\u002Fsession APIs, canvases, automations, macOS Accessibility, AppleScript, and safe end-to-end Copilot App workflow probes.","自动化并研究 GitHub Copilot 应用的桌面端体验。用于驱动 Copilot App 会话、创建隔离的应用实验、梳理应用 UI\u002F无障碍控件、截取应用截图、保存 PNG 截图、优化 WebP 图像、测试提示词（不实际提交）、使用 app\u002Fsession API、画布（canvas）、自动化（automations）、macOS 辅助功能（Accessibility）、AppleScript，以及安全的 Copilot App 端到端工作流探测。","github\u002Fcopilot-app-for-beginners","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6ADBDY5EBJ746TEWCCAFYY1",165,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH2SFTXSGVVGVBMDTMWK","桌面自动化与界面操作","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,10,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"github copilot app","copilot","github copilot app automation","automation","github copilot","screenshots","macos","workflow","ui","experiments","sessions","accessibility","testing","safe","desktop","research","2026-11-10 10:12:30",false,"---\nname: github-copilot-app-automation\ndescription: Automate and research the GitHub Copilot app desktop experience. Use for driving Copilot App sessions, creating isolated app experiments, mapping app UI\u002Faccessibility controls, taking app screenshots, saving PNG captures, optimizing WebP images, testing prompts without submitting, using app\u002Fsession APIs, canvases, automations, macOS Accessibility, AppleScript, and safe end-to-end Copilot App workflow probes.\n---\n\n# GitHub Copilot app Automation\n\nUse this skill when the task is about **driving, testing, mapping, or experimenting with the GitHub Copilot app**. Prefer app\u002Fsession APIs first, then app-native canvases\u002Fautomations, and use GUI Accessibility only when the visible desktop UI itself must be exercised.\n\n## Where to Run This\n\nThis skill's power depends heavily on where the agent runs:\n\n| Context | Session\u002Fapp APIs | Capture reliability | Best for |\n|---|---|---|---|\n| **Inside the GitHub Copilot app agent** (recommended) | Available for the host instance. They do not select a separately launched persona. | High when the agent launches, drives, and captures the persona by process ID | End-to-end screenshot capture with a dedicated persona |\n| **GitHub Copilot CLI** (terminal) | Not available | Low\u002Fmanual — a human must navigate the app, and its window must be on the same macOS Space as the terminal | Read-only mapping (`map-app.sh`), the dynamic `screenshots.sh` list\u002Fembed flow, and one-off captures of an already-visible window |\n\nFor course screenshots, **drive this from inside the app**, but do not use the\nhost instance as the screenshot target. Launch the dedicated persona below,\nthen use process-scoped Accessibility and capture. The shell scripts here run\nin both contexts because the app agent is built on Copilot CLI.\n\nRegardless of context: pixels still come from `screencapture` (there is no pure render\u002Fexport API yet, so the window must be visible), Screen Recording permission is required, captures must come from a **sanitized training account** on the training fork, and advanced features (Agent Merge, cloud automations) stay policy\u002Fbilling-gated.\n\nFor each screenshot, launch a new app process from the persistent, signed-in\n`demo` persona instead of creating a new persona or reusing an open process:\n\n```bash\nSK=.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\nPERSONA=\"demo\"\n# The local clone of the training fork, not the upstream course repository.\nREPO=\"$HOME\u002Fcopilot-app-for-beginners\"\nCOPILOT_PID=\"$(bash \"$SK\u002Fprepare-persona.sh\" \"$PERSONA\" \"$REPO\" 60)\"\n```\n\nThis keeps the existing login and persona data, starts a separate app process,\nsets only that window to a standard 1920x1080-point frame, resets the display\nzoom and zooms in three times (the zoom is measured and confirmed), enables and\nverifies **Streamer Mode**, verifies that the account is signed in, and\ndismisses transient banners before it returns the process ID. If no repository\nwith the folder name of the given path is in the sidebar, the pre-step adds the\nexact folder through the native folder picker. It then checks that a repository\nwith that folder name appears. It checks the name, not the full path, so do not\nkeep another clone with the same folder name in the persona. A setup failure\nkeeps the process\nfor inspection and does not return a successful process ID. Do not select a\ntarget by app name when another Copilot instance is open. Do not use full\nscreen: it can draw the menu bar and title bar over the app content.\n\nTo keep working on other displays during capture, set\n`COPILOT_CAPTURE_DISPLAY=builtin` for both `prepare-persona.sh` and\n`capture-window.sh`. The window then opens on the built-in laptop display and\nzooms in twice instead of three times, because the laptop frame is smaller.\nAfter setup, focus goes back to the app that you used before. The pointer is\nnot moved, and the capture does not activate the persona. Do not type during\nthe first launch seconds, and keep the laptop display on its current Space.\n\nBefore preparing the visible state, extract the Markdown around the image\nreference:\n\n```bash\npython3 \"$SK\u002Fscreenshot-context.py\" \u003Cchapter>\u002FREADME.md \u003Cimage-name>\n```\n\nFor a pending `\u003C!-- app-screenshot: ... -->` placeholder, which has no image\nname yet, pass `--line \u003Cline>` with the line that `screenshots.sh next` prints.\n\nUse the section heading, instructions before the image, and instructions after\nthe image to define the exact screen, open menu, selected item, and callouts.\nDo not capture a generic approximation. Confirm that current Accessibility\nlabels agree with the text. If the app label changed, update the directly\nrelated course text before capture.\n\nAdd numbered red callouts when one screenshot shows two or more controls that\nthe reader must select in order. The nearby instructions must identify each\nnumber, for example, \"select **+** (callout 1), then select **Add GitHub\nrepository** (callout 2).\" Do not add callouts to a single-action screenshot,\nan output example, or an evidence screenshot. To point at one item without a\nsequence, such as a menu item to select, use a red highlight box (`--box`)\ninstead. To point at one small status or control, such as a status pill, use a\nred arrow (`--arrow TAIL_X:TAIL_Y:HEAD_X:HEAD_Y`). Recreate the callouts,\nboxes, or arrows of an existing image when you retake it, at the new positions\nof the same controls.\n\nKeep the process ID and use it for all UI operations and capture. Do not use\n`navigate_to` or other app\u002Fsession APIs to prepare this window because those\nAPIs can route to the instance that hosts the agent. Drive the persona through\nAccessibility selectors scoped to its process ID.\n\nAn isolated `HOME` does not isolate credentials stored in the macOS Keychain.\nThe persona can still show the current GitHub account name and avatar.\nProcess-specific capture automatically derives the visible profile name from\nthe accessibility tree and replaces that text with **Copilot Dev**. If an\naccount handle or repository owner matches the normalized profile name, it\nreplaces that text with **copilotdev**, including inside paths and branch names.\nThe macOS account name and machine name, which terminal prompts and paths can\nshow, become **copilotdev** and **copilot-dev-mac**. It preserves the avatar\nand unrelated people and organizations. On a Settings screen, it also removes\nthe displayed app version. Never hard-code a person's name or an app version.\nNever treat the persona name alone as proof that the capture is sanitized.\nZoom in on every replaced span: a partial replacement can leave letters of the\nprivate name next to the new text.\n\n## Non-Interactive \u002F Hidden-Session Rule\n\nIf the user asks for a **fresh**, **separate**, or **hidden** Copilot App instance\u002Fsession:\n\n- Stay on app\u002Fsession APIs: `list_projects`, `create_session`, `send_session_message`, `get_session`, and filesystem verification.\n- Do **not** call `navigate_to`, foreground `open -a`, menu-bar actions, folder pickers, or Accessibility clicks unless the user explicitly asks to see the App UI.\n- Do **not** make the user select a folder or project. If a project cannot be registered through available non-interactive surfaces, report that limitation instead of opening a visible picker.\n- For local folders, first make the target folder a distinct repo root when needed (`git init` in the target folder) so the App can distinguish it from a parent repository.\n- If a hidden registration attempt is necessary, prefer `open -g -j -a \"GitHub Copilot\" \u003Cfolder>` and immediately verify with `list_projects`; if it does not register the project, stop and report the gap.\n- A screenshot of a hidden\u002Fminimized\u002Fbackground-only session is not possible with macOS `screencapture`; screenshot capture requires a visible window or a future App-provided render\u002Fexport API. Do not switch the user's current App window just to satisfy a hidden screenshot request.\n\n## Operating Model\n\nWork in layers, from safest to most brittle:\n\n1. **Session orchestration tools**: list projects\u002Fsessions, create isolated sessions, message sessions, inspect sessions, navigate to sessions.\n2. **App-native surfaces**: canvases, automations, project settings, MCP, skills, issue\u002FPR sessions.\n3. **Copilot CLI remote control**: useful for CLI sessions via GitHub.com\u002FGitHub Mobile, not for native app GUI control.\n4. **macOS Accessibility\u002FUI scripting**: use AppleScript\u002FSystem Events for named controls such as `Message`, `Select model`, and `Open changes`.\n5. **Screenshot capture**: use Accessibility window bounds plus `screencapture` to save PNGs, then convert to WebP for web delivery.\n6. **Low-level GUI clicking**: avoid unless the user explicitly approves and no named accessibility control exists.\n\n## Safety Rules\n\n- **Create a separate session for experiments** unless the user explicitly wants the current session modified.\n- For hidden\u002Fseparate-session tasks, **never navigate the user's visible App window** unless explicitly requested.\n- **Never submit a prompt, create a PR, merge, delete, approve permissions, or enable Agent Merge** without explicit user intent.\n- For GUI probes, start read-only: enumerate windows, controls, roles, names, and actions.\n- For composer tests, type a clearly marked draft and clear it without pressing Return\u002FEnter.\n- Avoid pixel-coordinate clicks. Target controls by accessibility role\u002Fname\u002Faction.\n- Do not persist secrets or private UI data in repo files. Store scratch probes in `\u002Ftmp` or the session artifact directory.\n- Screenshots may contain private repo names, prompts, diffs, terminal output, or tokens. Capture only the requested app state and save course-ready images under an intentional assets folder.\n- Expect transient app\u002Fwindow states. Re-discover the window and `AXWebArea` before each UI operation.\n- If Accessibility is denied, stop and ask the user to grant access to the automation caller. Do not try to bypass macOS privacy controls.\n- If `screencapture` fails or returns a privacy prompt, the automation caller also needs macOS Screen Recording permission.\n\n## Known Local App Facts\n\nObserved on this machine:\n\n- App path: `\u002FApplications\u002FGitHub Copilot.app`\n- Bundle id: `com.github.githubapp`\n- Bundle version: read dynamically with `map-app.sh`; do not rely on a stored version\n- Executable: `\u002FApplications\u002FGitHub Copilot.app\u002FContents\u002FMacOS\u002Fgithub`\n- Binary type: native macOS Mach-O arm64\n- Frameworks observed include AppKit and WebKit.\n- The desktop app is not obviously Electron\u002FChromium; do not assume Playwright\u002FCDP control is available.\n\n## Known Accessibility Map\n\nAfter macOS Accessibility permission was enabled, `System Events` could address the app as process `GitHub Copilot`.\n\nUseful exposed controls (sidebar 1.1.32, Customize 1.1.30, other controls 1.1.26; see [app-ui-map.md](references\u002Fapp-ui-map.md) for the full map):\n\n| Control | Role | Use |\n|---|---|---|\n| `GitHub Copilot` | `AXWindow` | Main app window |\n| `GitHub Copilot` | `AXWebArea` | Main webview-backed app content |\n| `Sidebar` | `AXGroup` | Sidebar region |\n| `Toggle sidebar, Command + B` | `AXCheckBox` | Collapse\u002Fexpand sidebar |\n| `New`, `Pull requests`, `Issues`, `Dashboards`, `Automations`, `Customize` | `AXButton` | Sidebar views (Quick links) |\n| `Customize sections` | `AXTabGroup` | Customize **Browse** and **Installed** tabs (1.1.30) |\n| `Filter by type: \u003Ctype>` | `AXPopUpButton` | Customize type filter: All types, MCP, Plugins, Skills, Extensions, Canvas |\n| `New repository or session` | `AXPopUpButton` | Sessions **+** menu |\n| `New session in \u003Cproject>` | `AXButton` | Project-specific new session entry (visible on hover or focus) |\n| `Message` | `AXTextArea` | Prompt composer |\n| `Project: \u003Cproject>` | `AXComboBox` | Composer project picker |\n| `Workspace: \u003Cchoice>, branch: \u003Cbranch>` | `AXPopUpButton` | **Where to work** menu |\n| `Toggle panel, Command + Option + B` | `AXCheckBox` | Review panel |\n| `Add tab, Command + T` | `AXPopUpButton` | Review panel tab menu |\n\nSee [macos-accessibility.md](references\u002Fmacos-accessibility.md) for scripts and caveats.\n\n## Preferred Workflows\n\n### Map the App Safely\n\n1. Confirm the app is running and discover bundle\u002Fprocess state.\n2. Enumerate projects and sessions with app\u002Fsession tools.\n3. Run a read-only Accessibility window\u002Fmenu probe.\n4. Enumerate `AXWebArea` children.\n5. Save findings to session artifacts, not the repo, unless the user asked for durable docs.\n\nUse:\n\n- [probe-readonly.applescript](sample_codes\u002Fmacos-accessibility\u002Fprobe-readonly.applescript)\n- [automation-map.md](references\u002Fautomation-map.md)\n\n### Test Composer Control Without Submitting\n\n1. Create a separate idle session.\n2. Navigate to that session.\n3. Focus `AXTextArea name=Message`.\n4. Set a draft value directly.\n5. Read the value back.\n6. Clear it with Command+A and Delete.\n7. Verify the returned `cleared-value` is empty.\n\nUse [type-and-clear-draft.applescript](sample_codes\u002Fmacos-accessibility\u002Ftype-and-clear-draft.applescript).\n\n### Capture Screenshots for Course Assets\n\nOnly use this workflow when the user has agreed the App can be visible or when the target state is already visible in a dedicated App window. Capture from a **sanitized training account** on the training fork — never the user's real private projects.\n\n1. Run `screenshot-context.py` for the referenced image and turn the nearby\n   course text into a concrete capture checklist. If you retake an existing\n   image, view the old image first and list its callouts, boxes, and crop.\n2. Launch a new process from the persistent `demo` persona with\n   `prepare-persona.sh`. The pre-step sets a standard 1920x1080-point window,\n   resets zoom, zooms in three times, and enables and verifies **Streamer Mode**. It\n   fails closed if Streamer Mode or the zoom cannot be verified. Pass the exact\n   local training repository and keep the returned process ID. Turn off Siri\n   before you capture: its waveform orb can appear next to a focused text field,\n   and the capture script fails when it sees the orb.\n3. Map that process with `COPILOT_PID=\"$COPILOT_PID\" bash \"$SK\u002Fmap-app.sh\"` so steps match\n   the current app build.\n4. Navigate that process to the exact state with Accessibility controls and let\n   spinners settle. Use `prepare-copilot-state.swift` for states that a named\n   action cannot create: `focus` shows a hover-only control (such as the **+**\n   on the **Chats** row), `highlight-menu-item` selects a menu item with the\n   keyboard (web menus ignore synthetic pointer moves), `set-value` fills a\n   field without pressing Return, and `park` moves the pointer and focus away\n   so no hover effects or focus rings remain.\n5. Find the final coordinates of each control with\n   `locate-copilot-element.swift`, then capture the window owned by that process\n   ID and convert it to WebP. Pass callouts in instruction order, highlight\n   boxes, and an optional crop, all in final 1920x1080 coordinates:\n   ```bash\n   bash \"$SK\u002Fcapture-window.sh\" \\\n     \u003Cchapter>\u002Fassets \u003Cbase-name> 40 \"$COPILOT_PID\"\n\n   bash \"$SK\u002Fcapture-window.sh\" \\\n     00-setup\u002Fassets app-add-project 40 \"$COPILOT_PID\" \\\n     --callout 1:372:338 --callout 2:585:437\n\n   bash \"$SK\u002Fcapture-window.sh\" \\\n     06-canvases\u002Fassets app-open-repo-issues-canvas 40 \"$COPILOT_PID\" \\\n     --box 1287:266:1551:309 --crop 352:0:1920:700\n   ```\n6. For callout images, confirm that every badge is next to its control, does not\n   cover a label or icon, and matches the instruction order. The standard style\n   is a 26px-radius `#ff594b` circle with a white number. Keep each badge at\n   least its radius plus 2 px from the image edge.\n7. Use WebP in web\u002Fcourse pages. Do not leave PNG files in a chapter `assets`\n   folder: capture to a scratch folder such as `\u002Ftmp` and copy only the WebP, or\n   delete the `.png` and `.raw.png` files after you verify the WebP.\n8. Confirm that full-window files are exactly 1920x1080. A crop keeps the size\n   of its crop rectangle.\n9. Confirm that the image has a 2px `#cccccc` border inside its edges, and\n   that no window corner shows black pixels. The app window has transparent\n   rounded corners. Put an image on white before any RGB conversion or\n   resize, or the corners turn black. `capture-window.sh` stops if it finds\n   dark corner pixels.\n10. Confirm that the three macOS window buttons do not show in the top-left\n    corner and that the sidebar icon is in their place. `capture-window.sh`\n    does this with `hide-window-controls.py`.\n11. Confirm that the output keeps the avatar, shows **Copilot Dev** instead of a\n   person's profile name, and uses **copilotdev** for matching personal\n   repository owners, paths, and branch names.\n12. For Settings screenshots, confirm that no app version is visible.\n13. Review the screenshot for other private data before committing or\n   publishing.\n14. Restore any persona state that you changed for the capture (hidden\n   projects, installed plugins or MCP servers, test automations or sessions),\n   then close the exact process with `cleanup-persona.sh` only after the\n   capture is verified. Keep the signed-in persona for the next screenshot.\n\nTo work through the course's pending shots, discover them dynamically and process one at a time (never hardcode the list): `screenshots.sh list` -> `screenshots.sh next` -> capture -> `screenshots.sh embed`. See [missing-screenshots.md](references\u002Fmissing-screenshots.md).\n\nUse:\n\n- [screenshot-capture.md](references\u002Fscreenshot-capture.md) — full method, permissions, and the macOS Spaces constraint\n- [missing-screenshots.md](references\u002Fmissing-screenshots.md) — the generic, one-at-a-time capture workflow (shots are discovered dynamically, never hardcoded)\n- [screenshots.sh](sample_codes\u002Fmacos-accessibility\u002Fscreenshots.sh) — dynamically `list` \u002F `next` \u002F `embed` the chapters' `\u003C!-- app-screenshot: ... -->` placeholders\n- [screenshot-context.py](sample_codes\u002Fmacos-accessibility\u002Fscreenshot-context.py) — extracts the course section that defines a screenshot's required state\n- [prepare-persona.sh](sample_codes\u002Fmacos-accessibility\u002Fprepare-persona.sh) — launches a new process from a signed-in persona, adds the local repository when it is missing, checks its folder name in the sidebar, and returns the process ID\n- [ensure-streamer-mode.swift](sample_codes\u002Fmacos-accessibility\u002Fensure-streamer-mode.swift) — enables and verifies Streamer Mode before screenshot preparation\n- [cleanup-persona.sh](sample_codes\u002Fmacos-accessibility\u002Fcleanup-persona.sh) — stops one exact screenshot process and preserves the signed-in persona\n- [launch-persona.sh](sample_codes\u002Fmacos-accessibility\u002Flaunch-persona.sh) — low-level launcher used by `prepare-persona.sh`\n- [control-copilot-window.swift](sample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-window.swift) — sets the 1920x1080-point capture frame and the measured 150% capture zoom (125% on the built-in display) for one exact app process\n- [control-copilot-ui.swift](sample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-ui.swift) — presses one named Accessibility control in an exact app process\n- [prepare-copilot-state.swift](sample_codes\u002Fmacos-accessibility\u002Fprepare-copilot-state.swift) — prepares transient states: focus a hover-only control, highlight a menu item, set a field value, dismiss banners, and park the pointer\n- [locate-copilot-element.swift](sample_codes\u002Fmacos-accessibility\u002Flocate-copilot-element.swift) — prints the final 1920x1080 coordinates of named controls for callouts, boxes, and crops\n- [find-private-identities.swift](sample_codes\u002Fmacos-accessibility\u002Ffind-private-identities.swift) — derives profile names and matching personal repository owners without hard-coded identities\n- [sanitize-screenshot.sh](sample_codes\u002Fmacos-accessibility\u002Fsanitize-screenshot.sh) — replaces identity text while preserving avatars; caches identities per process because dialogs can hide the sidebar\n- [app-ui-map.md](references\u002Fapp-ui-map.md) — sanitized factual UI map (menus, sidebar, views, composer controls), regenerable via map-app.sh\n- [capture-window.sh](sample_codes\u002Fmacos-accessibility\u002Fcapture-window.sh) — recommended: process-filtered CoreGraphics window capture + WebP, with `--callout`, `--box`, `--arrow`, and `--crop`\n- [finalize-screenshot.py](sample_codes\u002Fmacos-accessibility\u002Ffinalize-screenshot.py) — enforces 1920x1080 output, adds the required 2px `#cccccc` inside border, and crops\n- [hide-window-controls.py](sample_codes\u002Fmacos-accessibility\u002Fhide-window-controls.py) — removes the macOS window buttons and moves the sidebar icon into their place, so screenshots do not show the operating system\n- [add-step-callouts.py](sample_codes\u002Fmacos-accessibility\u002Fadd-step-callouts.py) — adds ordered red step badges, red highlight boxes, and red arrows to a finalized screenshot\n- [find-copilot-window.swift](sample_codes\u002Fmacos-accessibility\u002Ffind-copilot-window.swift) — lists on-screen Copilot windows with their window and process IDs\n- [map-app.sh](sample_codes\u002Fmacos-accessibility\u002Fmap-app.sh) — version-stamped UI map for grounding steps and diffing app updates\n- [capture-copilot-window.sh](sample_codes\u002Fmacos-accessibility\u002Fcapture-copilot-window.sh) — older Accessibility-rectangle fallback\n\n### Drive App Work Without GUI Scripting\n\nPrefer session orchestration:\n\n- `list_projects` to find a project id.\n- `create_session` to create a new isolated session.\n- `send_session_message` to give that session work.\n- `get_session` to inspect path and metadata.\n- `navigate_to` only when the user explicitly wants to see the session.\n\nSee [session-orchestration.md](references\u002Fsession-orchestration.md).\n\n### Use Canvases for Structured Human-Agent Work\n\nFor test boards, dashboards, course trackers, or visible state, use canvas surfaces instead of GUI clicking. Canvases are bidirectional and can expose agent-callable actions. See [canvas-and-automation.md](references\u002Fcanvas-and-automation.md).\n\n## Decision Table\n\n| Goal | Best mechanism |\n|---|---|\n| Learn how sessions behave | Create separate sessions and compare outputs |\n| Type\u002Fclear a prompt in the desktop UI | macOS Accessibility `Message` text area |\n| Click a named app button | Accessibility by role\u002Fname\u002Faction |\n| Capture a course screenshot | Accessibility window bounds + `screencapture` PNG + WebP conversion |\n| Launch recurring experiments | App automations\u002Fworkflows |\n| Build a visible experiment dashboard | Canvas extension |\n| Steer a CLI session away from machine | Copilot CLI remote control |\n| Test PR\u002Fissue lifecycle | App session APIs plus GitHub issue\u002FPR tools |\n| Full native UI regression testing | Appium Mac2 after explicit setup |\n\n## Source References\n\n- GitHub Copilot app overview: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fconcepts\u002Fagents\u002Fgithub-copilot-app>\n- Agent sessions: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fhow-tos\u002Fgithub-copilot-app\u002Fagent-sessions>\n- Canvas extensions: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fhow-tos\u002Fgithub-copilot-app\u002Fworking-with-canvas-extensions>\n- Automations: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fhow-tos\u002Fgithub-copilot-app\u002Fusing-automations>\n- Copilot CLI remote control: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fconcepts\u002Fagents\u002Fcopilot-cli\u002Fabout-remote-control>\n- Apple UI scripting: \u003Chttps:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FLanguagesUtilities\u002FConceptual\u002FMacAutomationScriptingGuide\u002FAutomatetheUserInterface.html>\n","# GitHub Copilot app Automation\n\nUse this skill when the task is about **driving, testing, mapping, or experimenting with the GitHub Copilot app**. Prefer app\u002Fsession APIs first, then app-native canvases\u002Fautomations, and use GUI Accessibility only when the visible desktop UI itself must be exercised.\n\n## Where to Run This\n\nThis skill's power depends heavily on where the agent runs:\n\n| Context | Session\u002Fapp APIs | Capture reliability | Best for |\n|---|---|---|---|\n| **Inside the GitHub Copilot app agent** (recommended) | Available for the host instance. They do not select a separately launched persona. | High when the agent launches, drives, and captures the persona by process ID | End-to-end screenshot capture with a dedicated persona |\n| **GitHub Copilot CLI** (terminal) | Not available | Low\u002Fmanual — a human must navigate the app, and its window must be on the same macOS Space as the terminal | Read-only mapping (`map-app.sh`), the dynamic `screenshots.sh` list\u002Fembed flow, and one-off captures of an already-visible window |\n\nFor course screenshots, **drive this from inside the app**, but do not use the\nhost instance as the screenshot target. Launch the dedicated persona below,\nthen use process-scoped Accessibility and capture. The shell scripts here run\nin both contexts because the app agent is built on Copilot CLI.\n\nRegardless of context: pixels still come from `screencapture` (there is no pure render\u002Fexport API yet, so the window must be visible), Screen Recording permission is required, captures must come from a **sanitized training account** on the training fork, and advanced features (Agent Merge, cloud automations) stay policy\u002Fbilling-gated.\n\nFor each screenshot, launch a new app process from the persistent, signed-in\n`demo` persona instead of creating a new persona or reusing an open process:\n\n```bash\nSK=.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\nPERSONA=\"demo\"\n# The local clone of the training fork, not the upstream course repository.\nREPO=\"$HOME\u002Fcopilot-app-for-beginners\"\nCOPILOT_PID=\"$(bash \"$SK\u002Fprepare-persona.sh\" \"$PERSONA\" \"$REPO\" 60)\"\n```\n\nThis keeps the existing login and persona data, starts a separate app process,\nsets only that window to a standard 1920x1080-point frame, resets the display\nzoom and zooms in three times (the zoom is measured and confirmed), enables and\nverifies **Streamer Mode**, verifies that the account is signed in, and\ndismisses transient banners before it returns the process ID. If no repository\nwith the folder name of the given path is in the sidebar, the pre-step adds the\nexact folder through the native folder picker. It then checks that a repository\nwith that folder name appears. It checks the name, not the full path, so do not\nkeep another clone with the same folder name in the persona. A setup failure\nkeeps the process\nfor inspection and does not return a successful process ID. Do not select a\ntarget by app name when another Copilot instance is open. Do not use full\nscreen: it can draw the menu bar and title bar over the app content.\n\nTo keep working on other displays during capture, set\n`COPILOT_CAPTURE_DISPLAY=builtin` for both `prepare-persona.sh` and\n`capture-window.sh`. The window then opens on the built-in laptop display and\nzooms in twice instead of three times, because the laptop frame is smaller.\nAfter setup, focus goes back to the app that you used before. The pointer is\nnot moved, and the capture does not activate the persona. Do not type during\nthe first launch seconds, and keep the laptop display on its current Space.\n\nBefore preparing the visible state, extract the Markdown around the image\nreference:\n\n```bash\npython3 \"$SK\u002Fscreenshot-context.py\" \u003Cchapter>\u002FREADME.md \u003Cimage-name>\n```\n\nFor a pending `\u003C!-- app-screenshot: ... -->` placeholder, which has no image\nname yet, pass `--line \u003Cline>` with the line that `screenshots.sh next` prints.\n\nUse the section heading, instructions before the image, and instructions after\nthe image to define the exact screen, open menu, selected item, and callouts.\nDo not capture a generic approximation. Confirm that current Accessibility\nlabels agree with the text. If the app label changed, update the directly\nrelated course text before capture.\n\nAdd numbered red callouts when one screenshot shows two or more controls that\nthe reader must select in order. The nearby instructions must identify each\nnumber, for example, \"select **+** (callout 1), then select **Add GitHub\nrepository** (callout 2).\" Do not add callouts to a single-action screenshot,\nan output example, or an evidence screenshot. To point at one item without a\nsequence, such as a menu item to select, use a red highlight box (`--box`)\ninstead. To point at one small status or control, such as a status pill, use a\nred arrow (`--arrow TAIL_X:TAIL_Y:HEAD_X:HEAD_Y`). Recreate the callouts,\nboxes, or arrows of an existing image when you retake it, at the new positions\nof the same controls.\n\nKeep the process ID and use it for all UI operations and capture. Do not use\n`navigate_to` or other app\u002Fsession APIs to prepare this window because those\nAPIs can route to the instance that hosts the agent. Drive the persona through\nAccessibility selectors scoped to its process ID.\n\nAn isolated `HOME` does not isolate credentials stored in the macOS Keychain.\nThe persona can still show the current GitHub account name and avatar.\nProcess-specific capture automatically derives the visible profile name from\nthe accessibility tree and replaces that text with **Copilot Dev**. If an\naccount handle or repository owner matches the normalized profile name, it\nreplaces that text with **copilotdev**, including inside paths and branch names.\nThe macOS account name and machine name, which terminal prompts and paths can\nshow, become **copilotdev** and **copilot-dev-mac**. It preserves the avatar\nand unrelated people and organizations. On a Settings screen, it also removes\nthe displayed app version. Never hard-code a person's name or an app version.\nNever treat the persona name alone as proof that the capture is sanitized.\nZoom in on every replaced span: a partial replacement can leave letters of the\nprivate name next to the new text.\n\n## Non-Interactive \u002F Hidden-Session Rule\n\nIf the user asks for a **fresh**, **separate**, or **hidden** Copilot App instance\u002Fsession:\n\n- Stay on app\u002Fsession APIs: `list_projects`, `create_session`, `send_session_message`, `get_session`, and filesystem verification.\n- Do **not** call `navigate_to`, foreground `open -a`, menu-bar actions, folder pickers, or Accessibility clicks unless the user explicitly asks to see the App UI.\n- Do **not** make the user select a folder or project. If a project cannot be registered through available non-interactive surfaces, report that limitation instead of opening a visible picker.\n- For local folders, first make the target folder a distinct repo root when needed (`git init` in the target folder) so the App can distinguish it from a parent repository.\n- If a hidden registration attempt is necessary, prefer `open -g -j -a \"GitHub Copilot\" \u003Cfolder>` and immediately verify with `list_projects`; if it does not register the project, stop and report the gap.\n- A screenshot of a hidden\u002Fminimized\u002Fbackground-only session is not possible with macOS `screencapture`; screenshot capture requires a visible window or a future App-provided render\u002Fexport API. Do not switch the user's current App window just to satisfy a hidden screenshot request.\n\n## Operating Model\n\nWork in layers, from safest to most brittle:\n\n1. **Session orchestration tools**: list projects\u002Fsessions, create isolated sessions, message sessions, inspect sessions, navigate to sessions.\n2. **App-native surfaces**: canvases, automations, project settings, MCP, skills, issue\u002FPR sessions.\n3. **Copilot CLI remote control**: useful for CLI sessions via GitHub.com\u002FGitHub Mobile, not for native app GUI control.\n4. **macOS Accessibility\u002FUI scripting**: use AppleScript\u002FSystem Events for named controls such as `Message`, `Select model`, and `Open changes`.\n5. **Screenshot capture**: use Accessibility window bounds plus `screencapture` to save PNGs, then convert to WebP for web delivery.\n6. **Low-level GUI clicking**: avoid unless the user explicitly approves and no named accessibility control exists.\n\n## Safety Rules\n\n- **Create a separate session for experiments** unless the user explicitly wants the current session modified.\n- For hidden\u002Fseparate-session tasks, **never navigate the user's visible App window** unless explicitly requested.\n- **Never submit a prompt, create a PR, merge, delete, approve permissions, or enable Agent Merge** without explicit user intent.\n- For GUI probes, start read-only: enumerate windows, controls, roles, names, and actions.\n- For composer tests, type a clearly marked draft and clear it without pressing Return\u002FEnter.\n- Avoid pixel-coordinate clicks. Target controls by accessibility role\u002Fname\u002Faction.\n- Do not persist secrets or private UI data in repo files. Store scratch probes in `\u002Ftmp` or the session artifact directory.\n- Screenshots may contain private repo names, prompts, diffs, terminal output, or tokens. Capture only the requested app state and save course-ready images under an intentional assets folder.\n- Expect transient app\u002Fwindow states. Re-discover the window and `AXWebArea` before each UI operation.\n- If Accessibility is denied, stop and ask the user to grant access to the automation caller. Do not try to bypass macOS privacy controls.\n- If `screencapture` fails or returns a privacy prompt, the automation caller also needs macOS Screen Recording permission.\n\n## Known Local App Facts\n\nObserved on this machine:\n\n- App path: `\u002FApplications\u002FGitHub Copilot.app`\n- Bundle id: `com.github.githubapp`\n- Bundle version: read dynamically with `map-app.sh`; do not rely on a stored version\n- Executable: `\u002FApplications\u002FGitHub Copilot.app\u002FContents\u002FMacOS\u002Fgithub`\n- Binary type: native macOS Mach-O arm64\n- Frameworks observed include AppKit and WebKit.\n- The desktop app is not obviously Electron\u002FChromium; do not assume Playwright\u002FCDP control is available.\n\n## Known Accessibility Map\n\nAfter macOS Accessibility permission was enabled, `System Events` could address the app as process `GitHub Copilot`.\n\nUseful exposed controls (sidebar 1.1.32, Customize 1.1.30, other controls 1.1.26; see [app-ui-map.md](references\u002Fapp-ui-map.md) for the full map):\n\n| Control | Role | Use |\n|---|---|---|\n| `GitHub Copilot` | `AXWindow` | Main app window |\n| `GitHub Copilot` | `AXWebArea` | Main webview-backed app content |\n| `Sidebar` | `AXGroup` | Sidebar region |\n| `Toggle sidebar, Command + B` | `AXCheckBox` | Collapse\u002Fexpand sidebar |\n| `New`, `Pull requests`, `Issues`, `Dashboards`, `Automations`, `Customize` | `AXButton` | Sidebar views (Quick links) |\n| `Customize sections` | `AXTabGroup` | Customize **Browse** and **Installed** tabs (1.1.30) |\n| `Filter by type: \u003Ctype>` | `AXPopUpButton` | Customize type filter: All types, MCP, Plugins, Skills, Extensions, Canvas |\n| `New repository or session` | `AXPopUpButton` | Sessions **+** menu |\n| `New session in \u003Cproject>` | `AXButton` | Project-specific new session entry (visible on hover or focus) |\n| `Message` | `AXTextArea` | Prompt composer |\n| `Project: \u003Cproject>` | `AXComboBox` | Composer project picker |\n| `Workspace: \u003Cchoice>, branch: \u003Cbranch>` | `AXPopUpButton` | **Where to work** menu |\n| `Toggle panel, Command + Option + B` | `AXCheckBox` | Review panel |\n| `Add tab, Command + T` | `AXPopUpButton` | Review panel tab menu |\n\nSee [macos-accessibility.md](references\u002Fmacos-accessibility.md) for scripts and caveats.\n\n## Preferred Workflows\n\n### Map the App Safely\n\n1. Confirm the app is running and discover bundle\u002Fprocess state.\n2. Enumerate projects and sessions with app\u002Fsession tools.\n3. Run a read-only Accessibility window\u002Fmenu probe.\n4. Enumerate `AXWebArea` children.\n5. Save findings to session artifacts, not the repo, unless the user asked for durable docs.\n\nUse:\n\n- [probe-readonly.applescript](sample_codes\u002Fmacos-accessibility\u002Fprobe-readonly.applescript)\n- [automation-map.md](references\u002Fautomation-map.md)\n\n### Test Composer Control Without Submitting\n\n1. Create a separate idle session.\n2. Navigate to that session.\n3. Focus `AXTextArea name=Message`.\n4. Set a draft value directly.\n5. Read the value back.\n6. Clear it with Command+A and Delete.\n7. Verify the returned `cleared-value` is empty.\n\nUse [type-and-clear-draft.applescript](sample_codes\u002Fmacos-accessibility\u002Ftype-and-clear-draft.applescript).\n\n### Capture Screenshots for Course Assets\n\nOnly use this workflow when the user has agreed the App can be visible or when the target state is already visible in a dedicated App window. Capture from a **sanitized training account** on the training fork — never the user's real private projects.\n\n1. Run `screenshot-context.py` for the referenced image and turn the nearby\n   course text into a concrete capture checklist. If you retake an existing\n   image, view the old image first and list its callouts, boxes, and crop.\n2. Launch a new process from the persistent `demo` persona with\n   `prepare-persona.sh`. The pre-step sets a standard 1920x1080-point window,\n   resets zoom, zooms in three times, and enables and verifies **Streamer Mode**. It\n   fails closed if Streamer Mode or the zoom cannot be verified. Pass the exact\n   local training repository and keep the returned process ID. Turn off Siri\n   before you capture: its waveform orb can appear next to a focused text field,\n   and the capture script fails when it sees the orb.\n3. Map that process with `COPILOT_PID=\"$COPILOT_PID\" bash \"$SK\u002Fmap-app.sh\"` so steps match\n   the current app build.\n4. Navigate that process to the exact state with Accessibility controls and let\n   spinners settle. Use `prepare-copilot-state.swift` for states that a named\n   action cannot create: `focus` shows a hover-only control (such as the **+**\n   on the **Chats** row), `highlight-menu-item` selects a menu item with the\n   keyboard (web menus ignore synthetic pointer moves), `set-value` fills a\n   field without pressing Return, and `park` moves the pointer and focus away\n   so no hover effects or focus rings remain.\n5. Find the final coordinates of each control with\n   `locate-copilot-element.swift`, then capture the window owned by that process\n   ID and convert it to WebP. Pass callouts in instruction order, highlight\n   boxes, and an optional crop, all in final 1920x1080 coordinates:\n   ```bash\n   bash \"$SK\u002Fcapture-window.sh\" \\\n     \u003Cchapter>\u002Fassets \u003Cbase-name> 40 \"$COPILOT_PID\"\n\n   bash \"$SK\u002Fcapture-window.sh\" \\\n     00-setup\u002Fassets app-add-project 40 \"$COPILOT_PID\" \\\n     --callout 1:372:338 --callout 2:585:437\n\n   bash \"$SK\u002Fcapture-window.sh\" \\\n     06-canvases\u002Fassets app-open-repo-issues-canvas 40 \"$COPILOT_PID\" \\\n     --box 1287:266:1551:309 --crop 352:0:1920:700\n   ```\n6. For callout images, confirm that every badge is next to its control, does not\n   cover a label or icon, and matches the instruction order. The standard style\n   is a 26px-radius `#ff594b` circle with a white number. Keep each badge at\n   least its radius plus 2 px from the image edge.\n7. Use WebP in web\u002Fcourse pages. Do not leave PNG files in a chapter `assets`\n   folder: capture to a scratch folder such as `\u002Ftmp` and copy only the WebP, or\n   delete the `.png` and `.raw.png` files after you verify the WebP.\n8. Confirm that full-window files are exactly 1920x1080. A crop keeps the size\n   of its crop rectangle.\n9. Confirm that the image has a 2px `#cccccc` border inside its edges, and\n   that no window corner shows black pixels. The app window has transparent\n   rounded corners. Put an image on white before any RGB conversion or\n   resize, or the corners turn black. `capture-window.sh` stops if it finds\n   dark corner pixels.\n10. Confirm that the three macOS window buttons do not show in the top-left\n    corner and that the sidebar icon is in their place. `capture-window.sh`\n    does this with `hide-window-controls.py`.\n11. Confirm that the output keeps the avatar, shows **Copilot Dev** instead of a\n   person's profile name, and uses **copilotdev** for matching personal\n   repository owners, paths, and branch names.\n12. For Settings screenshots, confirm that no app version is visible.\n13. Review the screenshot for other private data before committing or\n   publishing.\n14. Restore any persona state that you changed for the capture (hidden\n   projects, installed plugins or MCP servers, test automations or sessions),\n   then close the exact process with `cleanup-persona.sh` only after the\n   capture is verified. Keep the signed-in persona for the next screenshot.\n\nTo work through the course's pending shots, discover them dynamically and process one at a time (never hardcode the list): `screenshots.sh list` -> `screenshots.sh next` -> capture -> `screenshots.sh embed`. See [missing-screenshots.md](references\u002Fmissing-screenshots.md).\n\nUse:\n\n- [screenshot-capture.md](references\u002Fscreenshot-capture.md) — full method, permissions, and the macOS Spaces constraint\n- [missing-screenshots.md](references\u002Fmissing-screenshots.md) — the generic, one-at-a-time capture workflow (shots are discovered dynamically, never hardcoded)\n- [screenshots.sh](sample_codes\u002Fmacos-accessibility\u002Fscreenshots.sh) — dynamically `list` \u002F `next` \u002F `embed` the chapters' `\u003C!-- app-screenshot: ... -->` placeholders\n- [screenshot-context.py](sample_codes\u002Fmacos-accessibility\u002Fscreenshot-context.py) — extracts the course section that defines a screenshot's required state\n- [prepare-persona.sh](sample_codes\u002Fmacos-accessibility\u002Fprepare-persona.sh) — launches a new process from a signed-in persona, adds the local repository when it is missing, checks its folder name in the sidebar, and returns the process ID\n- [ensure-streamer-mode.swift](sample_codes\u002Fmacos-accessibility\u002Fensure-streamer-mode.swift) — enables and verifies Streamer Mode before screenshot preparation\n- [cleanup-persona.sh](sample_codes\u002Fmacos-accessibility\u002Fcleanup-persona.sh) — stops one exact screenshot process and preserves the signed-in persona\n- [launch-persona.sh](sample_codes\u002Fmacos-accessibility\u002Flaunch-persona.sh) — low-level launcher used by `prepare-persona.sh`\n- [control-copilot-window.swift](sample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-window.swift) — sets the 1920x1080-point capture frame and the measured 150% capture zoom (125% on the built-in display) for one exact app process\n- [control-copilot-ui.swift](sample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-ui.swift) — presses one named Accessibility control in an exact app process\n- [prepare-copilot-state.swift](sample_codes\u002Fmacos-accessibility\u002Fprepare-copilot-state.swift) — prepares transient states: focus a hover-only control, highlight a menu item, set a field value, dismiss banners, and park the pointer\n- [locate-copilot-element.swift](sample_codes\u002Fmacos-accessibility\u002Flocate-copilot-element.swift) — prints the final 1920x1080 coordinates of named controls for callouts, boxes, and crops\n- [find-private-identities.swift](sample_codes\u002Fmacos-accessibility\u002Ffind-private-identities.swift) — derives profile names and matching personal repository owners without hard-coded identities\n- [sanitize-screenshot.sh](sample_codes\u002Fmacos-accessibility\u002Fsanitize-screenshot.sh) — replaces identity text while preserving avatars; caches identities per process because dialogs can hide the sidebar\n- [app-ui-map.md](references\u002Fapp-ui-map.md) — sanitized factual UI map (menus, sidebar, views, composer controls), regenerable via map-app.sh\n- [capture-window.sh](sample_codes\u002Fmacos-accessibility\u002Fcapture-window.sh) — recommended: process-filtered CoreGraphics window capture + WebP, with `--callout`, `--box`, `--arrow`, and `--crop`\n- [finalize-screenshot.py](sample_codes\u002Fmacos-accessibility\u002Ffinalize-screenshot.py) — enforces 1920x1080 output, adds the required 2px `#cccccc` inside border, and crops\n- [hide-window-controls.py](sample_codes\u002Fmacos-accessibility\u002Fhide-window-controls.py) — removes the macOS window buttons and moves the sidebar icon into their place, so screenshots do not show the operating system\n- [add-step-callouts.py](sample_codes\u002Fmacos-accessibility\u002Fadd-step-callouts.py) — adds ordered red step badges, red highlight boxes, and red arrows to a finalized screenshot\n- [find-copilot-window.swift](sample_codes\u002Fmacos-accessibility\u002Ffind-copilot-window.swift) — lists on-screen Copilot windows with their window and process IDs\n- [map-app.sh](sample_codes\u002Fmacos-accessibility\u002Fmap-app.sh) — version-stamped UI map for grounding steps and diffing app updates\n- [capture-copilot-window.sh](sample_codes\u002Fmacos-accessibility\u002Fcapture-copilot-window.sh) — older Accessibility-rectangle fallback\n\n### Drive App Work Without GUI Scripting\n\nPrefer session orchestration:\n\n- `list_projects` to find a project id.\n- `create_session` to create a new isolated session.\n- `send_session_message` to give that session work.\n- `get_session` to inspect path and metadata.\n- `navigate_to` only when the user explicitly wants to see the session.\n\nSee [session-orchestration.md](references\u002Fsession-orchestration.md).\n\n### Use Canvases for Structured Human-Agent Work\n\nFor test boards, dashboards, course trackers, or visible state, use canvas surfaces instead of GUI clicking. Canvases are bidirectional and can expose agent-callable actions. See [canvas-and-automation.md](references\u002Fcanvas-and-automation.md).\n\n## Decision Table\n\n| Goal | Best mechanism |\n|---|---|\n| Learn how sessions behave | Create separate sessions and compare outputs |\n| Type\u002Fclear a prompt in the desktop UI | macOS Accessibility `Message` text area |\n| Click a named app button | Accessibility by role\u002Fname\u002Faction |\n| Capture a course screenshot | Accessibility window bounds + `screencapture` PNG + WebP conversion |\n| Launch recurring experiments | App automations\u002Fworkflows |\n| Build a visible experiment dashboard | Canvas extension |\n| Steer a CLI session away from machine | Copilot CLI remote control |\n| Test PR\u002Fissue lifecycle | App session APIs plus GitHub issue\u002FPR tools |\n| Full native UI regression testing | Appium Mac2 after explicit setup |\n\n## Source References\n\n- GitHub Copilot app overview: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fconcepts\u002Fagents\u002Fgithub-copilot-app>\n- Agent sessions: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fhow-tos\u002Fgithub-copilot-app\u002Fagent-sessions>\n- Canvas extensions: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fhow-tos\u002Fgithub-copilot-app\u002Fworking-with-canvas-extensions>\n- Automations: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fhow-tos\u002Fgithub-copilot-app\u002Fusing-automations>\n- Copilot CLI remote control: \u003Chttps:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fconcepts\u002Fagents\u002Fcopilot-cli\u002Fabout-remote-control>\n- Apple UI scripting: \u003Chttps:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FLanguagesUtilities\u002FConceptual\u002FMacAutomationScriptingGuide\u002FAutomatetheUserInterface.html>\n",{"name":5,"description":7},"main","f4fe510c5e94fc9bbcb90d4e41a101ef8d512e84",".github\u002Fskills\u002Fgithub-copilot-app-automation",196,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners","https:\u002F\u002Fgh.io\u002Fcopilot-app-course","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-12 12:39:45",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add github\u002Fcopilot-app-for-beginners --skill github-copilot-app-automation",{"tool":68,"command":69},"bunx","bunx skills add github\u002Fcopilot-app-for-beginners --skill github-copilot-app-automation",{"tool":71,"command":72},"pnpm","pnpm dlx skills add github\u002Fcopilot-app-for-beginners --skill github-copilot-app-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002FSKILL.md",true,[76,82,86,90,94,98,102,106,112,116,120,124,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fapp-ui-map.md","REFERENCE","参考文档",22269,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Freferences\u002Fapp-ui-map.md",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fautomation-map.md",2428,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Freferences\u002Fautomation-map.md",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fcanvas-and-automation.md",1111,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Freferences\u002Fcanvas-and-automation.md",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fmacos-accessibility.md",4656,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Freferences\u002Fmacos-accessibility.md",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fmissing-screenshots.md",4611,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Freferences\u002Fmissing-screenshots.md",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fscreenshot-capture.md",22776,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Freferences\u002Fscreenshot-capture.md",{"path":103,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fsession-orchestration.md",2385,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Freferences\u002Fsession-orchestration.md",{"path":107,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":110,"sourceHtmlUrl":111},"sample_codes\u002Fmacos-accessibility\u002Fadd-step-callouts.py","SCRIPT","脚本",8029,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fadd-step-callouts.py",{"path":113,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":114,"sourceHtmlUrl":115},"sample_codes\u002Fmacos-accessibility\u002Fcapture-copilot-window.sh",3100,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fcapture-copilot-window.sh",{"path":117,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":118,"sourceHtmlUrl":119},"sample_codes\u002Fmacos-accessibility\u002Fcapture-window.sh",12387,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fcapture-window.sh",{"path":121,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":122,"sourceHtmlUrl":123},"sample_codes\u002Fmacos-accessibility\u002Fcleanup-persona.sh",862,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fcleanup-persona.sh",{"path":125,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":128,"sourceHtmlUrl":129},"sample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-ui.swift","OTHER","其他",2788,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-ui.swift",{"path":131,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":132,"sourceHtmlUrl":133},"sample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-window.swift",13505,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fcontrol-copilot-window.swift",{"path":135,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":136,"sourceHtmlUrl":137},"sample_codes\u002Fmacos-accessibility\u002Fensure-streamer-mode.swift",5762,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fensure-streamer-mode.swift",{"path":139,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":140,"sourceHtmlUrl":141},"sample_codes\u002Fmacos-accessibility\u002Ffinalize-screenshot.py",4050,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Ffinalize-screenshot.py",{"path":143,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":144,"sourceHtmlUrl":145},"sample_codes\u002Fmacos-accessibility\u002Ffind-copilot-window.swift",1779,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Ffind-copilot-window.swift",{"path":147,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":148,"sourceHtmlUrl":149},"sample_codes\u002Fmacos-accessibility\u002Ffind-message-composer.applescript",2100,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Ffind-message-composer.applescript",{"path":151,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":152,"sourceHtmlUrl":153},"sample_codes\u002Fmacos-accessibility\u002Ffind-private-identities.swift",4917,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Ffind-private-identities.swift",{"path":155,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":156,"sourceHtmlUrl":157},"sample_codes\u002Fmacos-accessibility\u002Fhide-window-controls.py",3035,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fhide-window-controls.py",{"path":159,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":160,"sourceHtmlUrl":161},"sample_codes\u002Fmacos-accessibility\u002Flaunch-persona.sh",3807,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Flaunch-persona.sh",{"path":163,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":164,"sourceHtmlUrl":165},"sample_codes\u002Fmacos-accessibility\u002Flocate-copilot-element.swift",4893,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Flocate-copilot-element.swift",{"path":167,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":168,"sourceHtmlUrl":169},"sample_codes\u002Fmacos-accessibility\u002Fmap-app.sh",4459,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fmap-app.sh",{"path":171,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":172,"sourceHtmlUrl":173},"sample_codes\u002Fmacos-accessibility\u002Fprepare-copilot-state.swift",12586,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fprepare-copilot-state.swift",{"path":175,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":176,"sourceHtmlUrl":177},"sample_codes\u002Fmacos-accessibility\u002Fprepare-persona.sh",4957,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fprepare-persona.sh",{"path":179,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":180,"sourceHtmlUrl":181},"sample_codes\u002Fmacos-accessibility\u002Fprobe-readonly.applescript",2852,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fprobe-readonly.applescript",{"path":183,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":184,"sourceHtmlUrl":185},"sample_codes\u002Fmacos-accessibility\u002Fsanitize-screenshot.py",42356,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fsanitize-screenshot.py",{"path":187,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":188,"sourceHtmlUrl":189},"sample_codes\u002Fmacos-accessibility\u002Fsanitize-screenshot.sh",2641,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fsanitize-screenshot.sh",{"path":191,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":192,"sourceHtmlUrl":193},"sample_codes\u002Fmacos-accessibility\u002Fscreenshot-context.py",3614,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fscreenshot-context.py",{"path":195,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":196,"sourceHtmlUrl":197},"sample_codes\u002Fmacos-accessibility\u002Fscreenshots.sh",5400,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fscreenshots.sh",{"path":199,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":200,"sourceHtmlUrl":201},"sample_codes\u002Fmacos-accessibility\u002Fsetup-copilot-persona.swift",7061,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Fsetup-copilot-persona.swift",{"path":203,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":204,"sourceHtmlUrl":205},"sample_codes\u002Fmacos-accessibility\u002Ftype-and-clear-draft.applescript",2769,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fmacos-accessibility\u002Ftype-and-clear-draft.applescript",{"path":207,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":208,"sourceHtmlUrl":209},"sample_codes\u002Fsession-orchestration\u002Fsafe-experiment-prompts.md",861,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgithub-copilot-app-automation\u002Fsample_codes\u002Fsession-orchestration\u002Fsafe-experiment-prompts.md",[211,229,244],{"skillNo":212,"name":213,"nameZh":214,"description":215,"descriptionZh":216,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":217,"categories":218,"keywords":225,"publishedAt":47},"01M6ADBMTBWFPZMV3GAES608GM","create-svg-image","SVG图像步骤标注","Wrap a raster image in an SVG and overlay a numbered red \"step\" circle for course screenshots. Use when running \u002Fcreate-svg-image, or when asked to add a numbered callout badge to an image (e.g. a red circle with a \"1\" pointing at a UI control) that must still render on a GitHub README.","将光栅图像包装在 SVG 中，并叠加一个带编号的红色“步骤”圆圈，用于课程截图。在运行 \u002Fcreate-svg-image 时使用，或被要求为图像添加带编号的标注徽章时使用（例如指向某个 UI 控件的带“1”的红色圆圈），且该标注必须仍能在 GitHub README 中正常渲染。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcreate-svg-image\u002FSKILL.md",[219,222],{"categoryNo":220,"categoryName":221,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKC3WYCB32755485KS6","视觉设计",{"categoryNo":223,"categoryName":224,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",[226,227,228,36,39,10],"image","create svg image","create",{"skillNo":230,"name":231,"nameZh":232,"description":233,"descriptionZh":234,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":235,"categories":236,"keywords":241,"publishedAt":47},"01M6ADBJFS3ZTFFKAZGZ78P9XV","check-screenshots-content","课程应用截图内容核对","Verify GitHub Copilot app screenshots match the course content. Use when running \u002Fcheck-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.","验证 GitHub Copilot 应用截图与课程内容一致。在运行 \u002Fcheck-screenshots-content 时，或被要求确认章节 assets 文件夹中 app- 前缀的截图与引用它们的 README 标签、按钮名称、菜单项、对话框选项及分步说明保持一致时使用。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcheck-screenshots-content\u002FSKILL.md",[237,238],{"categoryNo":223,"categoryName":224,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":239,"categoryName":240,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BZBNYC0854523N0JJSZGK3","内容质量审核与优化",[242,243,36,35,32,10,31],"check screenshots content","content",{"skillNo":245,"name":246,"nameZh":247,"description":248,"descriptionZh":249,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":250,"categories":251,"keywords":258,"publishedAt":47},"01M6ADBG6RYHZZJ3T80612P31R","book-app-reviewer","示例图书应用变更审查","Review changes in samples\u002Fbook-app-web for accessibility, responsive layout, tests\u002Fbuild validation, and small beginner-safe changes.","审查 samples\u002Fbook-app-web 中的变更，涵盖无障碍访问、响应式布局、测试\u002F构建验证，以及适合初学者的细小改动。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-app-for-beginners\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fbook-app-reviewer\u002FSKILL.md",[252,255],{"categoryNo":253,"categoryName":254,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":256,"categoryName":257,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[259,260,42,261,44,262,263],"book app reviewer","review","validation","review changes","web"]