/second-brain-skills:fix-windows-keyboardfrom second-brain-skills
Diagnoses and reversibly fixes Windows keyboard issues where Shift, Caps Lock, Alt+Shift or layout switching stops responding. Checks stuck modifiers, Sticky/Filter Keys, ctfmon, layout toggle registry, input hooks, and OEM filter drivers like HP Easy Clean.
Ships in second-brain-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The tool is kbd_fix.py next to this file. Run it as
python -X utf8 kbd_fix.py <command>. Commands: status, fix, watch.
status: prints a check or cross per class. Exit code 2 means at least one cross.fix to stop it, then ask the owner before uninstalling.fix.watch --seconds 120 while the user presses keys in Notepad.osk.exe.ctfmon or the voice-typing window (TextInputHost) holds the foreground.HKCU\Keyboard Layout\Toggle; normal values are 1 / 1 / 3 (Alt+Shift).Scancode Map in HKLM.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.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.
ctfmon runs elevated: without admin it cannot be killed or started (WinError 740). The script then leaves it alone and prints the command for an elevated window. Editing Scancode Map needs UAC and a reboot; leave it to the owner.
watch --seconds 120 logs modifiers and counts ordinary keys as one number (no text, no order), then gives a verdict. Letters at 20 or more with zero modifiers means the modifiers die below Windows. Ask the user to press in Notepad, 2 or 3 times each: left Shift, right Shift, Caps Lock, left Alt, Alt+Shift.
Two layers can fail at once: a deaf ctfmon (the process lives but Alt+Shift and Win+Space do not switch layout even with synthetic keys; check GetKeyboardLayout before and after a synthetic chord; fix by killing ctfmon and restarting the MsCtfMonitor task from an elevated prompt) and an OEM filter driver that survives uninstalling the app (a restart of the device may fail; only a reboot clears it). Test synthetic input in Notepad first (separates Windows from hardware), then physical presses.
One line: failure class, what was done, evidence (status output after), what is left for the owner.
No automation. kbd_fix.py prints a cheat sheet: Sticky and Slow Keys in com.apple.universalaccess, key remaps via hidutil property --get UserKeyMapping, Karabiner as the first suspect.
Like this skill? It is part of second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.
Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).
Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_
Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
windows-keyboard, keyboard-fix, input-issues, sticky-keys, filter-keys, ctfmon
npx claudepluginhub tonydzi/second-brain-starter-kit --plugin second-brain-skills248 skills in this plugin
/03Run an autonomous consensus round between agent peers on several machines: they negotiate a decision over a shared channel and execute it without a human relaying messages. Use when multiple machines must agree on a change. Triggers: "/03", "work it out among yourselves", "find consensus". Wakes the human only for irreversible actions or a deadlock./1Recover a session after a hard crash (app died, machine rebooted, context lost mid-work): replay the turn-state ledger for the last requests, files and decisions, run a green/red health ping over the system map, file sync and MCP connectors, then rebuild the previous session history for pickup. Triggers: "/1", "resume after crash", "wake"./agendaShow the operator's day: today's calendar plus what needs them personally (leads due, people awaiting a reply, deadlines), pulled from Calendar and Telegram and ranked. Read-only: sends and commits nothing. Triggers: "/agenda", "what's on today", "my agenda".Other plugins' skills for the same job