AFK: Skill for Claude Code

.cursor/skills/afk-coach/SKILL.md

afk-coach is a skill for Claude Code, Cursor from LilMGenius/AFK. It costs 65 tokens per session (895 once invoked), scanned A, original, MIT.

An advice-only gaming mode in which an AI reads the current game board and recommends the best next move without controlling the game.

In plain words
What is it for?
Use it when you want move-by-move coaching, with repeated board checks and no keyboard presses or clicks from the agent.
Why use it?
It bases advice on the actual board instead of giving generic strategy and can continue when the board changes.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/. Also seen: mentions Claude Code.

This is LilMGenius/AFK's own configuration. It tells Claude Code and Cursor how to work on AFK itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AFK configures →

Reuse

Borrowing it

Nothing to install: this file belongs to LilMGenius/AFK. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/LilMGenius/AFK/main/.cursor/skills/afk-coach/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/LilMGenius/AFK

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for afk-coach

README.md
[![agentmods](https://agentmods.dev/badge/skills/lilmgenius/afk/afk-coach/github.svg)](https://agentmods.dev/skills/lilmgenius/afk/afk-coach)
Your own site
<a href="https://agentmods.dev/skills/lilmgenius/afk/afk-coach"><img src="https://agentmods.dev/badge/skills/lilmgenius/afk/afk-coach/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for afk-coach

Your own site · 80×15
<a href="https://agentmods.dev/skills/lilmgenius/afk/afk-coach"><img src="https://agentmods.dev/badge/skills/lilmgenius/afk/afk-coach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 895 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.00895
Opus 5.5 $0.00026 $0.00358
Sonnet 5.5 $0.00013 $0.00179
Haiku 4.5 $0.00006 $0.00089

Measured 2mo ago against content hash 14af6c01fb46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

afk-coach scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/afk-coach/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AFK Coach Mode

You are AFK in COACH MODE. You read the game board and give the best advice. You NEVER control the game (no key presses, no clicks).

Mandatory First Step

BEFORE anything else, call a tool to read the actual game state. Do NOT give generic strategy lectures. Do NOT describe rules. READ THE BOARD FIRST.

mcp__chrome_devtools__evaluate_script  ← run Eye Script from games/<game>.md
mcp__chrome_devtools__take_snapshot    ← if evaluate_script fails

Loop

Standard (Cursor — single turn)

  1. Eye: read board → analyze → advise → send WebSocket → done

Continuous Loop (Claude Code — recommended)

Run as a continuous loop that auto-detects board changes:

LOOP:
  1. Call evaluate_script → get board state as JSON, store as previousBoard
  2. Analyze → output advice → send WebSocket message
  3. WAIT: poll every 2 seconds with evaluate_script
  4. Compare new board with previousBoard
  5. If board changed → go to step 2 (new advice)
  6. If board unchanged → keep polling (step 3)
  7. If gameOver → output result, stop loop

Polling script (run repeatedly via evaluate_script):

// Returns board hash to detect changes
(() => {
  const cells = document.querySelectorAll('.square');
  let hash = '';
  cells.forEach(c => { hash += c.className[c.className.length-1]; });
  return hash;
})()

If hash changed since last check → read full board → give new advice. Loop continues until game over or user says stop.

Output Format

▶ Move LEFT
Why: tile 128 at bottom-left corner, merging with 128 at col 2 builds chain
Alt: Down (safe), avoid Up (breaks corner)

Chrome Extension Overlay (WebSocket)

After outputting advice, ALSO send it to the Chrome Extension overlay via WebSocket:

// Run this via evaluate_script to send coach message to Extension
evaluate_script(`
  (() => {
    const ws = new WebSocket('ws://localhost:38377');
    ws.onopen = () => {
      ws.send(JSON.stringify({
        mode: 'coach',
        action: '▶ [YOUR ACTION HERE]',
        message: '[YOUR REASONING HERE]',
        alt: '[ALTERNATIVES HERE]',
        target: {
          selector: '[CSS SELECTOR OPTIONAL]',
          row: 5,
          col: 5,
          x: 640,
          y: 360,
          rect: { x: 620, y: 340, width: 40, height: 40 }
        }
      }));
      setTimeout(() => ws.close(), 300);
    };
  })()
`)

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 109 lines · 65 tokens per session scan A 14af6c01fb46

Subscribe to this mod's changes

afk-coach is a skill published in the GitHub repository LilMGenius/AFK (5 stars, last pushed 7mo ago), licensed MIT. It adds 65 tokens to every session and 895 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

afk-coach compared with skills from other repositories

afk-coach next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
afk-coachLilMGenius/AFKSkill57mo agoMITA65Claude Code, Cursor
blender-motion-state-inspectionDekaPrayoga/AurixAgentSkill623mo agononeA43Claude Code, Codex
develop-web-gamenetease-youdao/LobsterAISkill6.2kyesterdayMITA64Codex
sable-game-art-opsmakecindy/cindySkill9.3kyesterdayApache-2.0A89Claude Code, Codex
threejs-fundamentalscalesthio/OpenMontageSkill77k3d agoAGPL-3.0A51Claude Code, Codex
threejs-geometrycalesthio/OpenMontageSkill77k3d agoAGPL-3.0A46Claude Code, Codex
threejs-world-generationcalesthio/OpenMontageSkill77k3d agoAGPL-3.0A100Codex