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.

lilmgenius bfac234 1013 B Updated

File contents

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).

lilmgenius/afk/tree/main/.cursor/skills/eye commit bfac234a44

Frequently asked questions

npx skillmds@latest add lilmgenius/eye-2