agent-eyes
БесплатноБез исполняемых скриптовНе проверенVisual context analyzer for AI agents. Provides screenshots, accessibility scans, DOM snapshots, and element descriptions for web pages. Use when you need to…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Agent Eyes
Visual context analyzer for web pages. Provides AI agents with the ability to "see" web applications through screenshots, accessibility scans, DOM snapshots, and element descriptions.
Prerequisites
- Python 3.10+
uvpackage manager (recommended)- Playwright browsers installed:
playwright install chromium
Compact Mode (Token-Efficient Output)
All commands support --compact / -c flag for token-efficient output:
| Mode | Screenshot | DOM | A11y | Total Tokens |
|---|---|---|---|---|
| Standard | Base64 inline | depth=5, 20 children | Full violations | ~500K+ |
| Compact | File path only | depth=3, 10 children | Summary only | ~3-5K |
Use compact mode when context window size is a concern (which is most of the time).
# Compact context - reduces ~500K tokens to ~3-5K tokens
uv run $SKILL_DIR/agent_eyes.py context http://localhost:3000 --compact
# Compact screenshot - always saves to file, never returns base64
uv run $SKILL_DIR/agent_eyes.py screenshot http://localhost:3000 --compact
# Compact a11y - returns summary + top N issues only
uv run $SKILL_DIR/agent_eyes.py a11y http://localhost:3000 --compact
# Compact DOM - stricter limits on depth and children
uv run $SKILL_DIR/agent_eyes.py dom http://localhost:3000 --compact
Commands
All commands use uv run for automatic dependency management:
SKILL_DIR=".claude/skills/agent-eyes/scripts"
Screenshot
Capture full page or element screenshots:
# Full page screenshot (saves to .canvas/screenshots/)
uv run $SKILL_DIR/agent_eyes.py screenshot http://localhost:3000
# Element screenshot
uv run $SKILL_DIR/agent_eyes.py screenshot http://localhost:3000 --selector ".hero"
# Save to specific path
uv run $SKILL_DIR/agent_eyes.py screenshot http://localhost:3000 --output ./tmp/page.png
# Get as base64 (for inline context) - NOT recommended, use --compact instead
uv run $SKILL_DIR/agent_eyes.py screenshot http://localhost:3000 --base64
# RECOMMENDED: Compact mode - always saves to file, never returns base64
uv run $SKILL_DIR/agent_eyes.py screenshot http://localhost:3000 --compact
Accessibility Scan
Run axe-core accessibility analysis:
# Full page scan (WCAG 2.1 AA)
uv run $SKILL_DIR/agent_eyes.py a11y http://localhost:3000
# Scoped to element
uv run $SKILL_DIR/agent_eyes.py a11y http://localhost:3000 --selector "main"
# WCAG AAA level
uv run $SKILL_DIR/agent_eyes.py a11y http://localhost:3000 --level AAA
# RECOMMENDED: Compact mode - summary + top issues only (~1-2K tokens vs 100K+)
uv run $SKILL_DIR/agent_eyes.py a11y http://localhost:3000 --compact
uv run $SKILL_DIR/agent_eyes.py a11y http://localhost:3000 --compact --max-issues 5
DOM Snapshot
Get simplified DOM tree:
# Full page DOM
uv run $SKILL_DIR/agent_eyes.py dom http://localhost:3000
# Subtree only
uv run $SKILL_DIR/agent_eyes.py dom http://localhost:3000 --selector ".content"
# Control depth and children
uv run $SKILL_DIR/agent_eyes.py dom http://localhost:3000 --depth 3 --max-children 10
# RECOMMENDED: Compact mode - depth=3, max-children=10, text=50 chars
uv run $SKILL_DIR/agent_eyes.py dom http://localhost:3000 --compact
Describe Element
Get detailed element information (styles, bounding box, attributes):
uv run $SKILL_DIR/agent_eyes.py describe http://localhost:3000 --selector ".hero-button"
Full Context
Get comprehensive context bundle (screenshot + a11y + DOM + description):
# Full context for page
uv run $SKILL_DIR/agent_eyes.py context http://localhost:3000
# Focused on element
uv run $SKILL_DIR/agent_eyes.py context http://localhost:3000 --selector ".hero"
# Without screenshot (smaller output)
uv run $SKILL_DIR/agent_eyes.py context http://localhost:3000 --no-screenshot
# RECOMMENDED: Compact mode - file paths only, limited DOM/a11y (~3-5K tokens)
uv run $SKILL_DIR/agent_eyes.py context http://localhost:3000 --compact
# Compact with custom limits
uv run $SKILL_DIR/agent_eyes.py context http://localhost:3000 --compact \
--dom-depth 2 --max-children 5 --max-issues 5
Output Format
All commands return JSON to stdout:
{
"ok": true,
"...": "command-specific fields"
}
On error:
{
"ok": false,
"error": "Error description"
}
Compact Mode Output Examples
Compact context output (~3-5K tokens instead of ~500K):
{
"ok": true,
"url": "http://localhost:3000",
"title": "My App",
"timestamp": "2026-01-22T10-30-00-000Z",
"compact": true,
"screenshot_path": ".canvas/screenshots/2026-01-22T10-30-00-000Z.png",
"screenshot_size": 443281,
"dom": {
"tag": "body",
"children": [...]
},
"a11y_summary": {
"total_violations": 5,
"by_severity": {"critical": 1, "serious": 2, "moderate": 2, "minor": 0},
"top_issues": [
{"id": "color-contrast", "impact": "serious", "affected_count": 3}
]
}
}
**Compact a11y ou
Установить agent-eyes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-eyes?
Visual context analyzer for AI agents. Provides screenshots, accessibility scans, DOM snapshots, and element descriptions for web pages. Use when you need to see what a web page looks like, analyze accessibility issues, inspect DOM structure, or get detailed element information. Triggers on requests like "take a screenshot", "check accessibility", "what does this page look like", "analyze the UI", "inspect this element", or any visual/UI analysis task.
Как установить скилл agent-eyes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-eyes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic