fix-windows-keyboard

fix-windows-keyboard is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 100 tokens per session (1,315 once invoked), scanned A, original, MIT.

A Windows troubleshooting skill for diagnosing and reversibly fixing broken keyboard modifiers and keyboard-layout switching. It checks settings, background programs, registry values, and keyboard drivers, then guides tests to separate software from hardware problems.

In plain words
What is it for?
Use it to check the keyboard, apply supported fixes, monitor key input in Notepad, and test with an on-screen or external USB keyboard.
Why use it?
It helps find why keys such as Shift, Caps Lock, or Alt+Shift stop working without making irreversible changes too early. It also helps determine whether the problem is caused by Windows, another program, a driver, or the keyboard itself.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the second-brain-skills plugin — 258 skills, 3 agents, 1 plugin shipped together

Good fit Use it to check the keyboard, apply supported fixes, monitor key input in Notepad, and test with an on-screen or external USB keyboard.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/fix-windows-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.

Any agent
npx skills add tonydzi/second-brain-starter-kit --skill fix-windows-keyboard
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 258 skills, 3 agents, 1 plugin.

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 fix-windows-keyboard

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/fix-windows-keyboard/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/fix-windows-keyboard)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/fix-windows-keyboard"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/fix-windows-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 fix-windows-keyboard

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/fix-windows-keyboard"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/fix-windows-keyboard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,315 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.00100 $0.01315
Opus 5.5 $0.00040 $0.00526
Sonnet 5.5 $0.00020 $0.00263
Haiku 4.5 $0.00010 $0.00131

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

Security

Grade A, and why

fix-windows-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (kbd_fix.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/fix-windows-keyboard/SKILL.md · 69 lines

How it starts

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

fix-windows-keyboard: Shift / Caps Lock / Alt+Shift stopped working

The tool is kbd_fix.py next to this file. Run it as python -X utf8 kbd_fix.py <command>. Commands: status, fix, watch.

Decision flow

  1. status: prints a check or cross per class. Exit code 2 means at least one cross.
  2. Class H (OEM filter driver process alive) found: run fix to stop it, then ask the owner before uninstalling.
  3. Any other cross: run fix.
  4. All checks pass: run watch --seconds 120 while the user presses keys in Notepad.
  5. Every key arrived: the hardware is fine, look for a window that intercepts input (full-screen remote desktop, per-app layout).
  6. Only some keys arrived: hardware or driver; test an external USB keyboard and osk.exe.
  7. Nothing arrived: focus was elsewhere, repeat with Notepad in front.

Step 1. Diagnosis classes

  • A: a stuck modifier key.
  • B: Sticky Keys or Filter Keys enabled.
  • C: ctfmon or the voice-typing window (TextInputHost) holds the foreground.
  • D: layout switch hotkey, HKCU\Keyboard Layout\Toggle; normal values are 1 / 1 / 3 (Alt+Shift).
  • E: Scancode Map in HKLM.
  • F: input interceptors (AutoHotkey, remote-desktop tools in control mode, PowerToys, vendor utilities).
  • G: keyboard devices in PnP.
  • H: a vendor background app with a keyboard filter driver. Example: HP Easy Clean (HPKbfDriver.sys) sits as an upper filter on the keyboard class and, while the app runs, drops modifiers: letters arrive, Shift/Alt/Caps do not, Alt+Shift does not switch layout. Stopping the process restores them. It is reversible: start the app again from the Start menu. Removing it for good (Remove-AppxPackage) is the owner's decision; editing UpperFilters needs admin, a reboot and risks losing the keyboard, so do not.

Step 2. Fix (reversible, no UAC)

fix releases all 8 modifiers via SendInput, disables Sticky and Filter Keys (hotkeys untouched), restores the layout Toggle value with a backup under ~/.claude/kbd_fix/, and tries to restart ctfmon. Flags: --caps-off turns Caps Lock off, --no-ctfmon skips ctfmon.

Read the full file on GitHub · 69 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 69 lines · 100 tokens per session scan A 3b818a3797dd

Subscribe to this mod's changes

fix-windows-keyboard is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (16 stars, last pushed 3d ago), licensed MIT. It adds 100 tokens to every session and 1,315 once invoked, about $0.0004 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-11-21.

Related

fix-windows-keyboard compared with skills from other repositories

fix-windows-keyboard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-windows-keyboardtonydzi/second-brain-starter-kitSkill163d agoMITA100Claude Code
wiki-lintAgriciDaniel/claude-obsidianSkill17k1mo agoMITA79Claude Code
wiki-modeAgriciDaniel/claude-obsidianSkill17k1mo agoMITA83Claude Code
wikiAgriciDaniel/claude-obsidianSkill17k1mo agoMITA84Claude Code
defuddleAgriciDaniel/claude-obsidianSkill17k1mo agoMITA61Claude Code
wiki-foldAgriciDaniel/claude-obsidianSkill17k1mo agoMITA76Claude Code
molio-doctorzhuzhaoyun/MolioSkill4522d agononeA0Claude Code, Codex