The decision that shaped it
Hand the agent a brief, not a screenshot
Open threads copy out as markdown: the element’s id and selector, the text the reviewer saw and the whole conversation. The agent replies by thread number, so each note closes against its change.
# Feedback to address: /docs/intro/ (build a1b2c3d)
## 1. [Feedback] Open · https://github.com/acme/handbook/discussions/41
**HTML id:** `#setup`
**Element:** `main > section:nth-of-type(2) > h2#setup`
**Text:** "Getting started"
**Source hint:** search the repo for `id="setup"` or the text above
**Thread:**
- @alice: This heading is too close to the hero on mobile.
- @bob: Agree, 16px more spacing would fix it.
## 3. [Question] Open · https://github.com/acme/handbook/discussions/43
**HTML id:** none on this element
**Element:** `main > section:nth-of-type(2) > aside`
**Text:** "Heads up: device codes expire after 15 minutes."
**Source hint:** search the repo for the text above
**Thread:**
- @mei: Is it 15 minutes on Enterprise too? I thought it was configurable.
## 4. [Feedback] Open · https://github.com/acme/handbook/discussions/44
**HTML id:** none on this element
**Element:** `main > section:nth-of-type(3) > ul > li:nth-of-type(2)`
**Text:** "Search Find any page in under 50ms."
**Source hint:** search the repo for the text above
**Note:** written against build 9f3e1a0.
**Thread:**
- @alice: The search icon looks blurry on retina screens.
## 5. [Feedback] Open · https://github.com/acme/handbook/discussions/46
**HTML id:** none on this element
**Element:** `main > section:nth-of-type(2) > pre`
**Text:** "npx pages-feedback init"
**Source hint:** search the repo for the text above
**Thread:**
- @sam: This command should copy with one click.
## Instructions
Make the minimal change to resolve each thread. Reply with a summary per thread number.Pick threads and the brief rewrites itself. Each one carries the element’s id, its selector, the text a person saw and where to look in the repo. Threads are synthetic; the format is the toolbar’s own.
Where it stands
- Live now
- Live at feedback.rsimms.com and used for design crit at SEEK.
- Tested
- Pin styles against worst-case threads, and anchoring on a test page where cards swap places between builds.
- Not yet proven
- Whether decisions get made faster. Reviewers still need a GitHub token, and a reworded heading can orphan its thread.
The problem
Design crit produces good feedback and then loses most of it. A comment turns up in Slack as a screenshot with a red circle. Another ends up in meeting notes as “the spacing near the top”. By the time someone acts on it, the prototype has moved on, and nobody is sure which spacing, on which build.
With a coding agent building the prototype, a screenshot is also the wrong handover. It doesn’t tell the agent which element in the code the reviewer meant, or which build they were looking at.
The full build breakdownThe opportunity · What I built · Key decisions · How it works · How I verified it · Results · What I’d change
The opportunity
The feedback already belongs next to the code. If threads live in the repo the prototype deploys from, there’s no backend to run, anyone with access can search them, and handing them to an agent is a copy rather than a rewrite.
Installing it is a script tag and a repo setting. That matters when the person adding it is a designer, not an engineer.
What I built
A reviewer presses C and clicks anything on the page. The comment pins to that element, so it stays in place at any window width. Others reply, resolve it or open an issue from it without leaving the page.
I prototyped the toolbar in my UI playground, then shipped it at feedback.rsimms.com.
Key decisions
Pin to the element, not the pixel
A comment anchored to a position drifts as soon as the window changes width. Anchoring to the element keeps it on the thing it’s about.
Open the thread beside its pin
Threads first opened in a panel in the corner, away from the element. Where the thread opens turned out to matter more than how the pin looks.
Keep three pin styles
I tested three on worst-case threads and expected to pick one. Each won somewhere different, so all three stayed as a setting.
No backend
Threads are GitHub Discussions in the prototype’s repo, labelled by kind. They outlast the tool, and there’s nothing for me or a team to host.
How it works
Each thread stores four ways to find its element, tried in order: a stable id, a CSS selector, the element’s text and role, then an xpath. The anchor sits in a hidden comment in the Discussion body, with the commit the note was written against, so a reviewer can tell when a note is older than the page.
The selector on its own was the trap. When two cards swap places, “the second card” still matches, just the wrong one. The resolver refuses a selector match whose text has changed and falls through to the text.
A thread that matches nothing is kept and flagged. Quietly dropping someone’s feedback is worse than showing it out of place.
The next build renames the setup heading’s id, removes the callout and swaps two cards.
Ship feedback straight from the page
Reviewers pin comments to the parts of a Pages site they care about. Every thread lives in GitHub Discussions, next to the code.
Getting started
Add the script to your deploy step. The reusable workflow turns on Discussions too.
npx pages-feedback initWhat you get
- Pins Comments stay attached to the element, not the pixel.
- Search Find any page in under 50ms.
- Deploy previews Review every branch before it ships.
What the Discussion stores for thread 4
<!-- pagefeedback:{
"v": 1,
"path": "/docs/intro/",
"selector": "main > section:nth-of-type(3) > ul > li:nth-of-type(2)",
"fallbacks": {
"text": "Search Find any page in under 50ms.",
"role": "listitem",
"xpath": "./main[1]/section[3]/ul[1]/li[2]"
},
"offset": {
"x": 0.12,
"y": 0.22
},
"viewport": 1440,
"rev": "9f3e1a0"
} -->The order is id, selector, text and role, then xpath. A thread that matches none of them is kept and flagged, not dropped. Synthetic page; the resolver is the toolbar’s own.
How I verified it
I tested the pin styles on one page with worst-case threads: a 27-character username, a four-comment thread and two notes on neighbouring elements. The demos on this page run the toolbar’s own anchoring and prompt code on a synthetic page, including cards that swap places between builds.
Since then the real test has been design crit at SEEK. It works across devices, and I use it to collate feedback and turn it into prompts for changes.
A numbered dot where the comment was made. Compact, but says nothing until it’s opened.
Ship feedback straight from the page
Reviewers pin comments to the parts of a Pages site they care about. Every thread lives in GitHub Discussions, next to the code.
Getting started
Add the script to your deploy step. The reusable workflow turns on Discussions too.
npx pages-feedback initWhat you get
- Pins Comments stay attached to the element, not the pixel.
- Search Find any page in under 50ms.
- Deploy previews Review every branch before it ships.
Open a pin to read its thread where it was left. The page, people and threads are synthetic, taken from the playground experiment; nothing here posts to GitHub.
Results
I haven’t measured whether decisions get made faster. What I can say is narrower. Feedback from people who couldn’t make the crit now arrives on the page, against a build, where the next person can find it.
Usage is minimal at the moment.
What I’d change
Every reviewer needs a fine-grained GitHub token for that one repo, pasted into the toolbar once. That’s a real barrier for people outside engineering, and it’s the first thing I’d remove.
Anchors can still lose their way. A heading rewritten with a new id and new words has nothing left to match, so its thread shows as orphaned until someone reattaches it.
Try it
The full toolbar also runs in my UI playground.
Explore Feedbackfeedback.rsimms.com