# Eye

> AFK Eye — internal skill for reading web game state via DOM/CDP. Called internally by afk-play and afk-coach. Not meant for direct user invocation.

- Skill: `lilmgenius/eye-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lilmgenius/eye-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lilmgenius/eye-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: lilmgenius (https://skillmd.com/u/lilmgenius)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lilmgenius/eye-2

---


# Eye: Read Game State

Internal skill. Called by `afk-play` and `afk-coach`. Reads the current game board from the browser.

## Tool Priority

1. `mcp__chrome_devtools__evaluate_script` — run the Eye Script from `games/<game>.md` (fastest, most accurate)
2. `mcp__chrome_devtools__take_snapshot` — get accessibility tree with element UIDs
3. `mcp__chrome_devtools__take_screenshot` — visual fallback for canvas/WebGL only

## Rules

- Always use the Eye Script from `games/<game>.md` first
- Extract only what is needed for the next decision — no full DOM dumps
- If DOM returns empty: check `document.readyState` — page may still be loading
- If selectors don't match: use `take_snapshot` to find actual structure, then update `games/<game>.md`
- DOM first. Screenshot only when DOM has no game state (canvas games).

