跳到主内容
智客 ZICQ

技能库 智客分类:设计创意 agentation-self-driving

Agentation Self Driving

使用代理注释工具栏的自主设计批判模式. 当用户要求"critic this page","添加设计说明","审查UI","自驾车模式","自动通知",或想让AI代理通过浏览器将设计反馈说明自动添加到网页时使用. 要求在目标页面上安装代理工具栏,并具备代理浏览器技能.

7128 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

使用代理注释工具栏的自动设计批判模式

何时用

用户要求"critic this page","添加设计说明","审查UI","自驾车模式","自动通知",或希望AI代理通过浏览器将设计反馈说明自动添加到网页上. 需要将代理工具栏安装在柏油上

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Agentation Self-Driving Mode、Launch — Always Headed、Try to open. If it fails (stale session), close first then retry.、1. Check toolbar exists on the page. Agentation 3.1+ renders inside a shadow root on <agentation-toolbar>,、so query through it (the fallback to document keeps older versions working)、If "NOT FOUND": Agentation is not installed on this page — stop and tell the user。 其中含规范建议的小节:分步指令。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 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. Requires the Agentation toolbar to be installed on the target page and agent-browser skill to be available.

Agentation Self-Driving ModeLaunch — Always HeadedTry to open. If it fails (stale session), close first then retry.1. Check toolbar exists on the page. Agentation 3.1+ renders inside a shadow root on <agentation-toolbar>,so query through it (the fallback to document keeps older versions working)If "NOT FOUND": Agentation is not installed on this page — stop and tell the user2. Expand ONLY if collapsed (clicking when already expanded collapses it)3. Verify: take a snapshot and look for toolbar controlsIf 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 2Critical: How to Create Annotations1. Take interactive snapshot — identify target element and build a CSS selector

· allowed-tools:Bash(agent-browser:*)

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
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. Requires the Agentation toolbar to be installed on the target page and agent-browser skill to be available.
allowed-tools
Bash(agent-browser:*)实验字段,支持情况取决于客户端;字段声明本身不会授予工具权限。
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「agentation-self-driving」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-f80e997cd1b4fab1-%E8%87%AA%E9%A9%BE%E8%BD%A6.html
请存为 .cursor/skills/agentation-self-driving/SKILL.md 或 .claude/skills/agentation-self-driving/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/benjitaylor/agentation' --list

npx skills add 'https://github.com/benjitaylor/agentation' --skill 'agentation-self-driving'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- 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. Requires the Agentation toolbar to be installed on the target page and agent-browser skill to be available. allowed-tools: Bash(agent-browser:*) --- # 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: ```bash 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: ```bash # Try to open. If it fails (stale session), close first then retry. agent-browser --headed open 2>&1 || { agent-browser close 2>/dev/null; agent-browser --headed open ; } ``` Then verify the Agentation toolbar is present and expand it: ```bash # 1. Check toolbar exists on the page. Agentation 3.1+ renders inside a shadow root on , # so query through it (the fallback to document keeps older versions working) agent-browser eval "(document.querySelector('agentation-toolbar')?.shadowRoot || 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('agentation-toolbar')?.shadowRoot || document).querySelector('[data-feedback-toolbar][class*=expanded]') ? 'already expanded' : ((document.querySelector('agentation-toolbar')?.shadowRoot || 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**: Only `click`, `fill`, `type`, `hover`, `focus`, `check`, `select`, `drag` support `@ref` syntax. The commands `scrollintoview`, `get box`, and `eval` do NOT — they expect CSS selectors. Use `eval` with `querySelector` for scrolling and position lookup. ```bash # 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 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 @ "Your critique here" # 7. Submit (Add button enables after text is filled) agent-browser click @ ``` If no dialog appears after clicking, the toolbar may have collapsed. Re-expand (only if collapsed) and retry: ```bash agent-browser eval "(document.querySelector('agentation-toolbar')?.shadowRoot || document).querySelector('[data-feedback-toolbar][class*=expanded]') ? 'ok' : ((document.querySelector('agentation-toolbar')?.shadowRoot || 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: ```bash 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: ```bash agent-browser eval "(document.querySelector('agentation-toolbar')?.shadowRoot || 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: ```bash ln -s "$(pwd)/skills/agentation-self-driving" ~/.claude/skills/agentation-self-driving ``` Restart 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/null` then retry the `--headed open` command - **Toolbar not found on page**: Agentation isn't installed — run `/agentation` to 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 close` to 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 | Always read the **full** snapshot output — never truncate | | `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_annotations` in 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.

相关技能

设计创意

Automation Workflows

设计和实施自动化工作流程,以节省时间和规模化操作作为独家. 用于识别重复任务实现自动化,构建跨工具的工作流程,设置触发器和行动,或优化现有自动化. 包括自动化机会识别,工作流程设计,工具选择(Zapier,Make,n8n),测试,和维护. 触发"自动","自动","工作流程自动…

设计创意

Ui Ux Pro Max

UI/UX设计智能及建筑抛光接口实施指导. 当用户要求UI设计,UX流量,信息架构,视觉风格方向,设计系统/托盘,组件规格,副本/显微镜,可访问性,或生成/critique/refine前端UI(HTML/CSS/JS,React,Next.js,Vue,Svelte,Tailw…

设计创意

Frontend Design

创建美丽现代UI的专家前端设计指南. 在构建起落架页面,仪表板,或任何用户界面时使用.

设计创意

N8n Workflow Automation

设计和输出 n8n 工作流程 JSON 有强力触发器, idempotency, 错误处理, 记录, 重试, 以及 人入"一站"审查队列. 当您需要可审计的自动化时使用.