
Agentation Self Driving
- 5.7k installs
- 4.3k repo stars
- Updated June 7, 2026
- benjitaylor/agentation
Autonomous design annotation of a web page via AI agent, using the Agentation toolbar in a visible browser to add critique feedback on visual hierarchy, spacing, typography, and interaction patterns.
About
Agentation Self-Driving Mode enables autonomous design critique of web pages by having an AI agent navigate and annotate UI elements through the Agentation toolbar in a headed browser. The agent scrolls through page sections, identifies design targets, and creates structured annotations with actionable feedback on hierarchy, spacing, typography, and visual patterns. Developers use this skill to automate design review workflows, reducing manual feedback cycles. Key workflows include preflight verification of agent-browser and toolbar availability, coordinate-based mouse interactions to trigger annotation dialogs, CSS selector derivation from snapshots, and annotation submission with design-specific critique. The skill integrates with MCP for bidirectional feedback loops where Session 1 annotates and Session 2 implements fixes. --- name: agentation-self-driving description: Autonomous design critique mode using the Agentation annotation toolbar. Use when the user asks to "critique this page," "add design annotations," "review the UI," "self-driving mode," "auto-annotate," or wants an AI agent to autonomously add design feedback annotations to a web page via the browser.
- Autonomous page navigation with real-time browser visibility - watch agent scan, click, and annotate
- Coordinate-based interaction model using mouse events to trigger Agentation overlay dialogs
- Full snapshot introspection to locate toolbar controls and annotation dialog refs
- 5-8 structured annotations per page with 2-3 sentence actionable design critique
- MCP integration for two-session workflow: annotate in browser, auto-fix in codebase
Agentation Self Driving by the numbers
- 5,745 all-time installs (skills.sh)
- +103 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #137 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
agentation-self-driving capabilities & compatibility
- Capabilities
- autonomous page scanning and element targeting · coordinate based annotation dialog triggering · css selector derivation from snapshot refs · design specific critique generation with alterna · annotation verification and count validation · mcp payload delivery for downstream fixes
- Use cases
- code review · ui design · testing
- Platforms
- macOS · Linux · Windows
- Runs
- Runs locally
- Pricing
- Free
What agentation-self-driving says it does
Autonomously critique a web page by adding design annotations via the Agentation toolbar — in a visible headed browser so the user can watch the agent work in real time, like watching a self-driving c
npx skills add https://github.com/benjitaylor/agentation --skill agentation-self-drivingAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 5.7k |
|---|---|
| repo stars | ★ 4.3k |
| Security audit | 1 / 3 scanners passed |
| Last updated | June 7, 2026 |
| Repository | benjitaylor/agentation ↗ |
What it does
Autonomously critique web page design by adding annotations via the Agentation toolbar in a visible browser, enabling real-time observation of AI-driven design feedback.
Who is it for?
Design-heavy applications, marketing sites, component showcase pages; teams wanting to automate first-pass design feedback before human review.
Skip if: Headless/server-side rendering; pages without Agentation toolbar installed; private/authenticated-only pages without browser context.
When should I use this skill?
User requests 'critique this page', 'add design annotations', 'review the UI', 'self-driving mode', 'auto-annotate', or wants AI-driven design feedback.
What you get
Page receives 5-8 actionable design annotations with specific critique and alternatives; annotations integrate with MCP for automated code fixes in parallel.
- 5-8 design annotations added to page
- Actionable 2-3 sentence critique per annotation
- Verification of annotation count increase
By the numbers
- Targets 5-8 annotations per page unless specified otherwise
- 2-3 sentences max per annotation critique
- Coordinate-based clicks replace ref-based interaction for overlay interception
Files
Agentation Self-Driving Mode
Autonomously critique a web page by adding design annotations via the Agentation toolbar — in a visible headed browser so the user can watch the agent work in real time, like watching a self-driving car navigate.
Launch — Always Headed
The browser MUST be visible. Never run headless. The user watches you scan, hover, click, and annotate.
Preflight: Verify agent-browser is available before anything else:
command -v agent-browser >/dev/null || { echo "ERROR: agent-browser not found. Install the agent-browser skill first."; exit 1; }Launch: Try opening directly first. Only close an existing session if the open command fails with a stale session error — this avoids killing a browser someone else is using:
# Try to open. If it fails (stale session), close first then retry.
agent-browser --headed open <url> 2>&1 || { agent-browser close 2>/dev/null; agent-browser --headed open <url>; }Then verify the Agentation toolbar is present and expand it:
# 1. Check toolbar exists on the page (data-feedback-toolbar is the root marker)
agent-browser eval "document.querySelector('[data-feedback-toolbar]') ? 'toolbar found' : 'NOT FOUND'"
# If "NOT FOUND": Agentation is not installed on this page — stop and tell the user
# 2. Expand ONLY if collapsed (clicking when already expanded collapses it)
agent-browser eval "document.querySelector('[data-feedback-toolbar][class*=expanded]') ? 'already expanded' : (document.querySelector('[class*=toggleContent]')?.click(), 'expanding')"
# 3. Verify: take a snapshot and look for toolbar controls
agent-browser snapshot -i
# If expanded: you'll see "Block page interactions" checkbox, color buttons (Purple, Blue, etc.)
# If collapsed: you'll only see the small toggle button — retry step 2"Block page interactions" must be checked (default: on).
eval quoting rule: Always use [class*=toggleContent] (no quotes around the attribute value) in eval strings. Do not use double-bang in eval because bash treats it as history expansion. Do not use backslash-escaped inner quotes either, as they break unpredictably across shells.Critical: How to Create Annotations
Standard element clicks (`click @ref`) do NOT trigger annotation dialogs. The Agentation overlay intercepts pointer events at the coordinate level. Use coordinate-based mouse events — this also makes the interaction visible in the browser as the cursor moves across the page.
`@ref` compatibility: Onlyclick,fill,type,hover,focus,check,select,dragsupport@refsyntax. The commandsscrollintoview,get box, andevaldo NOT — they expect CSS selectors. UseevalwithquerySelectorfor scrolling and position lookup.
# 1. Take interactive snapshot — identify target element and build a CSS selector
agent-browser snapshot -i
# Example: snapshot shows heading "Point at bugs." [ref=e10]
# Derive a CSS selector: 'h1', or more specific: 'h1:first-of-type'
# 2. Scroll the element into view via eval (NOT scrollintoview @ref — that breaks)
agent-browser eval "document.querySelector('h1').scrollIntoView({block:'center'})"
# 3. Get its bounding box via eval (NOT get box @ref — that also breaks)
agent-browser eval "((r) => r.x+','+r.y+','+r.width+','+r.height)(document.querySelector('h1').getBoundingClientRect())"
# Returns: "383,245,200,40" (parse these as x,y,width,height)
# 4. Move cursor to element center, then click
# centerX = x + width/2, centerY = y + height/2
agent-browser mouse move <centerX> <centerY>
agent-browser mouse down left
agent-browser mouse up left
# 5. Get the annotation dialog refs — read the FULL snapshot output
# Dialog refs appear at the BOTTOM of the list, don't truncate with head/tail
agent-browser snapshot -i
# Look for: textbox "What should change?" and "Cancel" / "Add" buttons
# 6. Type critique — fill and click DO support @ref
agent-browser fill @<textboxRef> "Your critique here"
# 7. Submit (Add button enables after text is filled)
agent-browser click @<addRef>If no dialog appears after clicking, the toolbar may have collapsed. Re-expand (only if collapsed) and retry:
agent-browser eval "document.querySelector('[data-feedback-toolbar][class*=expanded]') ? 'ok' : (document.querySelector('[class*=toggleContent]')?.click(), 'expanded')"Building CSS selectors from snapshots
The snapshot shows element roles, names, and refs. Map them to CSS selectors:
| Snapshot line | CSS selector |
|---|---|
heading "Point at bugs." [ref=e10] | h1 or h1:first-of-type |
button "npm install agentation Copy" [ref=e15] | button:has(code) or by text content via eval |
link "Star on GitHub" [ref=e28] | a[href*=github] |
paragraph (long text...) [ref=e20] | Target by section: section:nth-of-type(2) p |
When in doubt, use a broader selector and verify with eval:
agent-browser eval "document.querySelector('h2').textContent"The Loop
Work top-to-bottom through the page. For each annotation:
1. Scroll to the target area via eval (scrollIntoView) 2. Pick a specific element — heading, paragraph, button, section container 3. Get its bounding box via eval (getBoundingClientRect) 4. Execute the coordinate-click sequence (mouse move → mouse down → mouse up) 5. Read the full snapshot output to find dialog refs at the bottom 6. Write the critique (fill @ref) and submit (click @ref) 7. Verify the annotation was added (see below) 8. Move to the next area
Verifying annotations
After submitting each annotation, confirm the count increased:
agent-browser eval "document.querySelectorAll('[data-annotation-marker]').length"
# Should return the expected count (1 after first, 2 after second, etc.)If the count didn't increase, the submission failed silently — re-snapshot and check if the dialog is still open.
Aim for 5-8 annotations per page unless told otherwise.
What to Critique
| Area | What to look for |
|---|---|
| Hero / above the fold | Headline hierarchy, CTA placement, visual grouping |
| Navigation | Label styling, category grouping, visual weight |
| Demo / illustrations | Clarity, depth, animation readability |
| Content sections | Spacing rhythm, callout treatments, typography hierarchy |
| Key taglines | Whether resonant lines get enough visual emphasis |
| CTAs and footer | Conversion weight, visual separation, final actions |
Critique Style
2-3 sentences max per annotation:
- Specific and actionable: "Stack the install command below the subheading at 16px" not "fix the layout"
- 1-2 concrete alternatives: Reference CSS values, layout patterns, or design systems
- Name the principle: Visual hierarchy, Gestalt grouping, whitespace, emphasis, conversion design
- Reference comparable products: "Like how Stripe/Linear/Vercel handles this"
Bad: "This section needs work" Good: "This bullet list reads like docs, not a showcase. Use a 3-column card grid with icons — similar to Stripe's guidelines pattern. Creates visual rhythm and scannability."
Install
The skill must be symlinked into ~/.claude/skills/ for Claude Code to discover it:
ln -s "$(pwd)/skills/agentation-self-driving" ~/.claude/skills/agentation-self-drivingRestart Claude Code after installing. Verify with /agentation-self-driving — if it loads the skill instructions, the symlink is working.
Troubleshooting
- "Browser not launched. Call launch first.": Stale session from a previous run — run
agent-browser close 2>/dev/nullthen retry the--headed opencommand - Toolbar not found on page: Agentation isn't installed — run
/agentationto set it up first - No dialog after clicking: Toolbar collapsed — re-expand with the state-aware eval (check
[class*=expanded]first), retry - Wrong element targeted: Click Cancel, scroll to intended element, retry with correct coordinates
- Add button stays disabled: Text wasn't filled — re-snapshot and fill the textbox
- Page navigated: "Block page interactions" is off — enable via toolbar settings
- Annotation count didn't increase: Submission failed — dialog may still be open, re-snapshot and check
- Interrupted mid-run (Ctrl+C): The browser stays open with whatever state it was in. Run
agent-browser closeto clean up before starting a new session
agent-browser Pitfalls
These will silently break the workflow if you're not aware of them:
| Pitfall | What happens | Fix |
|---|---|---|
scrollintoview @ref | Crashes: "Unsupported token @ref while parsing css selector" | Use eval "document.querySelector('sel').scrollIntoView({block:'center'})" |
get box @ref | Same crash — get box parses refs as CSS selectors | Use eval "((r)=>r.x+','+r.y+','+r.width+','+r.height)(document.querySelector('sel').getBoundingClientRect())" |
eval with double-bang | Bash expands double-bang as history substitution before the command runs | Use expr !== null or expr ? true : false instead |
eval with backslash-escaped quotes | Escaped inner quotes break across shells | Drop the quotes: [class*=toggleContent] works for simple values without spaces |
| `snapshot -i \ | head -50` | Annotation dialog refs (textbox "What should change?", Add, Cancel) appear at the BOTTOM of the snapshot |
click @ref on overlay elements | The click goes through to the real DOM, bypassing the Agentation overlay | Use mouse move → mouse down left → mouse up left for coordinate-based clicks that the overlay intercepts |
--headed open fails with "Browser not launched" | Stale sessions from previous runs block new launches | Run agent-browser close 2>/dev/null then retry the open command |
Rule of thumb: @ref works for interaction commands (click, fill, type, hover). For everything else (eval, get, scrollintoview), use CSS selectors via querySelector in an eval.
Two-Session Workflow (Full Self-Driving)
With MCP connected (toolbar shows "MCP Connected"), annotations auto-send to any listening agent. This enables:
- Session 1 (this skill): Watches the page, adds critique annotations in the visible browser
- Session 2: Runs
agentation_watch_annotationsin a loop, receives annotations, edits code to address each one
The user watches Session 1 drive through the page in the browser while Session 2 fixes issues in the codebase — fully autonomous design review and implementation.
Two-Session Self-Driving Workflow
Full autonomous design review: one agent critiques, another fixes.
Prerequisites
- Agentation toolbar installed on the target page
- MCP server running and connected (toolbar shows "MCP Connected")
agent-browserskill installed
Setup
Terminal 1 — The Critic (this skill)
claude
> /agentation-self-drivingThis session opens the headed browser, scans the page, and adds design annotations. The user watches the browser as the agent navigates and critiques.
Terminal 2 — The Fixer
claude
> Watch for agentation annotations and fix each one. Use agentation_watch_annotations
> in a loop. For each annotation: read the target code, make the fix, then call
> agentation_resolve with a summary of what you changed.This session blocks on agentation_watch_annotations, receives each annotation as it's created by Terminal 1, and edits the codebase to address the feedback.
How It Connects
1. Critic adds annotation → auto-sent via MCP webhook 2. Fixer's agentation_watch_annotations unblocks with the new annotation 3. Fixer reads the annotation (element path, CSS selectors, feedback text) 4. Fixer greps the codebase using the selectors/component names 5. Fixer makes changes, then calls agentation_resolve with a summary 6. Fixer loops back to agentation_watch_annotations
Flow Diagram
Browser (visible) Terminal 1 (Critic) Terminal 2 (Fixer)
───────────────── ─────────────────── ──────────────────
User watches cursor → Scrolls, clicks elements Blocking on watch...
Annotation dialog → Fills critique, clicks Add
Annotation auto-sends → Receives annotation
Reads code, makes fix
Resolves annotation
Moves to next element → Blocking on watch...Tips
- Start the Fixer session first so it's ready when annotations arrive
- The Critic can add annotations faster than the Fixer processes them — that's fine, they queue up
- If the page hot-reloads from Fixer's changes, the Critic may need to re-expand the toolbar
- Both sessions share the same MCP server via
.mcp.jsonin the project
Related skills
FAQ
Why must the browser be headed (visible)?
The user watches the agent scan, click, and annotate in real time — similar to observing a self-driving car navigate. Headless mode defeats this core UX.
How does the agent create annotations if standard clicks don't work?
Agentation intercepts pointer events at coordinate level, not ref clicks. Agent uses mouse move, mouse down, mouse up sequence at element center coords derived from getBoundingClientRect().
What does MCP two-session workflow enable?
Session 1 annotates page in visible browser; Session 2 runs agentation_watch_annotations loop to receive and auto-implement fixes in codebase — fully autonomous design review.
Is Agentation Self Driving safe to install?
skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.