-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add visual-pr plugin — screenshot capture, annotation, and PR embedding #1804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nohwnd
wants to merge
4
commits into
github:staged
Choose a base branch
from
nohwnd:visual-pr-skills
base: staged
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
598360c
Add visual-pr plugin: screenshot capture, annotation, PR embedding, a…
nohwnd fb2669f
Update generated README tables and marketplace.json
nohwnd bca9d30
Embed annotate.py module in image-annotations skill
nohwnd e5a49fa
Address review feedback: mss.mss() context manager, fix RECT struct, …
nohwnd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "name": "visual-pr", | ||
| "description": "Capture, annotate, and embed screenshots and animated GIF demos in pull request descriptions. Includes Playwright-based UI capture, PIL image annotations, PR embedding workflows for GitHub and Azure DevOps, and screen recording with variable timing.", | ||
| "version": "1.0.0", | ||
| "keywords": [ | ||
| "screenshots", | ||
| "pull-request", | ||
| "before-after", | ||
| "annotations", | ||
| "playwright", | ||
| "gif", | ||
| "screen-recording", | ||
| "visual" | ||
| ], | ||
| "author": { "name": "Awesome Copilot Community" }, | ||
| "repository": "https://github.com/github/awesome-copilot", | ||
| "license": "MIT", | ||
| "skills": [ | ||
| "./skills/image-annotations/", | ||
| "./skills/pr-screenshots/", | ||
| "./skills/screen-recording/", | ||
| "./skills/ui-screenshots/" | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Visual PR Plugin | ||
|
|
||
| When you change how something looks — a layout, a chart, a form — the PR description should show the change. Not describe it in words. Show it. A before/after screenshot tells your reviewer exactly what happened, and they don't have to check out the branch to see it. | ||
|
|
||
| This plugin teaches Copilot to capture screenshots of your web app (or any UI), annotate them with callouts, and embed them in the PR description. Once you get used to having up-to-date screenshots on every visual change, going back to text-only PRs feels like reviewing code with your eyes closed. | ||
|
|
||
| ## Demo 🎬 | ||
|
|
||
| It is 2009. You just added the feature to show labels on issues. You better include screenshots because this is huge. | ||
|
|
||
| Here is how such PR description would look like with our plugin: | ||
|
|
||
| > **Before** — issues list without labels: | ||
| > | ||
| > <img src="demo/before.png" width="600" alt="Issues list without labels"> | ||
| > | ||
| > **After** — labels are shown directly on each issue row: | ||
| > | ||
| > <img src="demo/after.png" width="600" alt="Issues list with labels annotated"> | ||
|
|
||
| --- | ||
|
|
||
| ## It's not just for PRs | ||
|
|
||
| The same annotation engine works for any screenshot. Here's a single prompt: | ||
|
|
||
| > *"Go to the GitHub issues page of github/awesome-copilot. Screenshot the issues list and annotate: any issue icon, ready-for-review label, repo name, pinned issues, my avatar, most commented issue, New Issue button."* | ||
|
|
||
|  | ||
|
|
||
| The agent captured the page, identified 6 of 7 requested elements, and annotated them all. It correctly reported that the 7th (user avatar) isn't visible because the page was captured without authentication — no hallucinated annotations. | ||
|
|
||
| ### Debug mode | ||
|
|
||
| Every annotation run can produce a debug heatmap showing how the algorithm chose label placements — contrast scoring, exclusion zones, and candidate rankings: | ||
|
|
||
|  | ||
|
|
||
| --- | ||
|
|
||
| ## Skills Included | ||
|
|
||
| | Skill | What it does | | ||
| |-------|-------------| | ||
| | [ui-screenshots](../../skills/ui-screenshots/SKILL.md) | Capture web UI screenshots with Playwright + PIL crop workflow | | ||
| | [image-annotations](../../skills/image-annotations/SKILL.md) | Annotate any image with callout rectangles, arrows, labels, and color-coded highlights | | ||
| | [pr-screenshots](../../skills/pr-screenshots/SKILL.md) | Embed before/after images in PR descriptions (GitHub + Azure DevOps) | | ||
| | [screen-recording](../../skills/screen-recording/SKILL.md) | Create annotated animated GIF demos with variable timing | | ||
|
|
||
| ## Use Cases | ||
|
|
||
| - **Visual PRs** — show reviewers what changed without checking out the branch | ||
| - **Release notes** — embed GIF demos of new features | ||
| - **Bug reports** — before/after screenshots proving the fix | ||
| - **Documentation** — annotated screenshots with callouts highlighting key areas | ||
|
|
||
| ## Requirements | ||
|
|
||
| This plugin needs a model that can view images — the workflow relies on looking at screenshots to find crop coordinates and verify annotations. The demo images in this README were generated with **Claude Opus 4.6**. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.