reexamine_keyboard

reexamine_keyboard is a cursor rule for Cursor from HomenShum/NodeBenchAI. It costs 411 tokens per session, scanned A, original, MIT.

A set of rules for making an interface usable with a keyboard. It covers skip links, shortcuts, focus movement, tab order, and keeping keyboard users inside open dialogs until they close them.

In plain words
What is it for?
Use it when building or reviewing websites and web applications. It helps check keyboard shortcuts, modals, menus, focus targets, tab order, and accessible navigation.
Why use it?
It prevents keyboard users from getting lost, trapped, or forced to navigate through irrelevant content. It also keeps focus in a predictable order.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when building or reviewing websites and web applications. It helps check keyboard shortcuts, modals, menus, focus targets, tab order, and accessible navigation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/homenshum/nodebenchai/reexamine_keyboard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HomenShum/NodeBenchAI

Made for: 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 reexamine_keyboard

README.md
[![agentmods](https://agentmods.dev/badge/rules/homenshum/nodebenchai/reexamine_keyboard/github.svg)](https://agentmods.dev/rules/homenshum/nodebenchai/reexamine_keyboard)
Your own site
<a href="https://agentmods.dev/rules/homenshum/nodebenchai/reexamine_keyboard"><img src="https://agentmods.dev/badge/rules/homenshum/nodebenchai/reexamine_keyboard/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 reexamine_keyboard

Your own site · 80×15
<a href="https://agentmods.dev/rules/homenshum/nodebenchai/reexamine_keyboard"><img src="https://agentmods.dev/badge/rules/homenshum/nodebenchai/reexamine_keyboard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 411 This file is loaded in full into every session.
When invoked 411 The same file — it is already loaded in full.
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.00411 $0.00411
Opus 5.5 $0.00164 $0.00164
Sonnet 5.5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

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

Security

Grade A, and why

reexamine_keyboard 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 3mo 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/rules/reexamine_keyboard.mdc · 37 lines

What it actually says

Re-examine: Keyboard Efficiency

  • First focusable element on page: <a href="#main-content" class="sr-only focus:not-sr-only">Skip to main content</a>
  • Multiple skip links for complex layouts: "Skip to search", "Skip to results"
  • Target element needs tabindex="-1" if it's not natively focusable

Keyboard shortcuts

  • Search: Ctrl+K or / to focus search input
  • Escape: close modals, dropdowns, lightboxes, cancel operations
  • Arrow keys: navigate within lists, carousels, tab bars
  • Enter/Space: activate buttons and interactive cards
  • Document shortcuts in a help overlay (accessible via ? key)

Tab order

  • Logical reading order: left-to-right, top-to-bottom (matches visual layout)
  • Never use tabindex > 0 — it breaks natural flow
  • tabindex="0" only on custom interactive elements that need to be in tab order
  • tabindex="-1" for programmatically focusable elements (skip link targets, error summaries)

Focus traps

  • Modals/dialogs: Tab wraps within the dialog (last → first → last)
  • Escape key always closes the trap
  • On close, return focus to the element that opened the modal
  • aria-modal="true" + role="dialog" on the container

Cards and list items

  • If a card is clickable, the entire card should be a <button> or contain a primary <a>
  • Enter and Space should both trigger the card action
  • Keyboard hint on hover: consider showing "(Enter to open)" for non-obvious interactive elements
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. 3mo ago First seen · 37 lines · 411 tokens per session scan A 593d214d52b4

Subscribe to this mod's changes

reexamine_keyboard is a cursor rule published in the GitHub repository HomenShum/NodeBenchAI (14 stars, last pushed 17d ago), licensed MIT. It adds 411 tokens to every session, about $0.0016 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-30.

Related

reexamine_keyboard compared with cursor rules from other repositories

reexamine_keyboard next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reexamine_keyboardHomenShum/NodeBenchAICursor rule1417d agoMITA411Cursor
chart-encoding-standardyonatangross/orchestkitCursor rule312yesterdayMITA67Cursor
hatch3r-design-system-detectionhatch3r/hatch3rCursor rule262mo agoMITA0Cursor
frontend-10x-promptingKevin-Liu-01/LoopCursor rule1721d agoMITA0Cursor
hatch3r-component-conventionshatch3r/hatch3rCursor rule262mo agoMITA0Cursor
66-stack-shadcnLuxvil/ai-coding-rulesCursor rule32mo agoMITA0Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor