afk-coach

Read live DOM game state and provide real-time move advice for web games.

4|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/LilMGenius/AFK --skill afk-coach
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: afk-coach
Source: https://github.com/LilMGenius/AFK/tree/main/.cursor/skills/afk-coach
Command: npx skills add https://github.com/LilMGenius/AFK --skill afk-coach

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Playing web games like 2048 or Minesweeper often requires quick, context-aware strategy decisions that can interrupt your flow or lead to suboptimal moves if you're distracted. This Skill eliminates that friction by automatically reading the live game board and providing tailored, actionable move advice in real time.

Core Features & Use Cases

  • Live Board Analysis: Reads the actual DOM state of open web games directly via Chrome DevTools, no manual input or screenshots required.
  • Game-Specific Strategy: Includes pre-built strategy logic for popular titles like 2048 and Minesweeper, with a template to add support for any web game.
  • Continuous Real-Time Coaching: Runs an auto-detection loop that watches for board changes and updates advice as you play, ideal for long or complex game sessions.
  • Use Case: Stuck on a high-stakes 2048 run? This Skill will read your current tile positions, calculate the optimal next move to build a 2048 tile, and explain the reasoning so you can execute it yourself.

Quick Start

To receive real-time move advice for your open web game, simply ask your AI agent for coaching (for example, say "afk:coach 2048" or "what's my next best move in minesweeper?") and the Skill will automatically read your live game board to provide tailored, actionable strategy guidance.

Frequently Asked Questions about afk-coach

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get real-time strategy advice for web games like 2048 or Minesweeper?

You can get real-time strategy advice for browser games by running an AI agent that reads the live DOM state via Chrome DevTools, analyzing the current board to calculate and explain your optimal next move.

What do I need to set up live game coaching with an AI agent?

To set up live game coaching, you need a Chrome instance running on remote debugging port 9222, Chrome DevTools MCP tools for reading DOM state, and a WebSocket connection to the AFK Chrome extension for overlay output.

Can I add game coaching support for custom browser games?

Yes, you can add support for custom browser games by configuring the game logic using the provided template, allowing the AI agent to read the DOM and deliver tailored move advice for your specific title.

Does game coaching work with CLI AI agents like Cursor or Claude Code?

Yes, real-time browser game coaching works with CLI AI agents such as Cursor, Claude Code, and Codex, using them to process live game board state and generate actionable strategy guidance.

How does the AI detect game board changes during a continuous session?

The AI detects game board changes during continuous sessions by running an auto-detection loop that constantly watches the live DOM state, automatically updating your strategy advice as the board evolves.