keybindings-help
БесплатноБез исполняемых скриптовНе проверенUse when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claude/keybindings.json. Examples: "rebind ctrl+s"…
от lza6★ 19 звёзд на GitHubОб этом скилле
Keybindings Skill
Create or modify ~/.claude/keybindings.json to customize keyboard shortcuts.
CRITICAL: Read Before Write
Always read ~/.claude/keybindings.json first (it may not exist yet). Merge changes with existing bindings — never replace the entire file.
- Use Edit tool for modifications to existing files
- Use Write tool only if the file does not exist yet
File Format
{
"$schema": "https://www.schemastore.org/claude-code-keybindings.json",
"$docs": "https://code.claude.com/docs/en/keybindings",
"bindings": [
{
"context": "Chat",
"bindings": {
"ctrl+e": "chat:externalEditor"
}
}
]
}
Always include the $schema and $docs fields.
Keystroke Syntax
Modifiers (combine with +):
ctrl(alias:control)alt(aliases:opt,option) — note:altandmetaare identical in terminalsshiftmeta(aliases:cmd,command)
Special keys: escape/esc, enter/return, tab, space, backspace, delete, up, down, left, right
Chords: Space-separated keystrokes, e.g. ctrl+k ctrl+s (1-second timeout between keystrokes)
Examples: ctrl+shift+p, alt+enter, ctrl+k ctrl+n
Unbinding Default Shortcuts
Set a key to null to remove its default binding:
{
"context": "Chat",
"bindings": {
"ctrl+s": null
}
}
How User Bindings Interact with Defaults
- User bindings are additive — they are appended after the default bindings
- To move a binding to a different key: unbind the old key (
null) AND add the new binding - A context only needs to appear in the user's file if they want to change something in that context
Common Patterns
Rebind a key
To change the external editor shortcut from ctrl+g to ctrl+e:
{
"context": "Chat",
"bindings": {
"ctrl+g": null,
"ctrl+e": "chat:externalEditor"
}
}
Add a chord binding
{
"context": "Global",
"bindings": {
"ctrl+k ctrl+t": "app:toggleTodos"
}
}
Behavioral Rules
- Only include contexts the user wants to change (minimal overrides)
- Validate that actions and contexts are from the known lists below
- Warn the user proactively if they choose a key that conflicts with reserved shortcuts or common tools like tmux (
ctrl+b) and screen (ctrl+a) - When adding a new binding for an existing action, the new binding is additive (existing default still works unless explicitly unbound)
- To fully replace a default binding, unbind the old key AND add the new one
Validation
Claude Code validates ~/.claude/keybindings.json when it loads; warnings go to the debug log. After editing the file, re-check it against the rules below and fix anything that matches.
Common Issues and Fixes
| Issue | Cause | Fix |
|---|---|---|
keybindings.json must have a "bindings" array |
Missing wrapper object | Wrap bindings in { "bindings": [...] } |
"bindings" must be an array |
bindings is not an array |
Set "bindings" to an array: [{ context: ..., bindings: ... }] |
Unknown context "X" |
Typo or invalid context name | Use exact context names from the Available Contexts table |
Duplicate key "X" in Y bindings |
Same key defined twice in one context | Remove the duplicate; JSON uses only the last value |
"X" may not work: ... |
Key conflicts with terminal/OS reserved shortcut | Choose a different key (see Reserved Shortcuts section) |
Invalid action for "X" |
Action value is not a string or null | Actions must be strings like "app:help" or null to unbind |
Example validation warnings (debug log)
[keybindings] Found 2 validation issue(s)
[keybindings] [error] Unknown context "chat" — Valid contexts: Global, Chat, Autocomplete, ...
[keybindings] [warning] "ctrl+c" may not work: Terminal interrupt (SIGINT)
Errors prevent bindings from working and must be fixed. Warnings indicate potential conflicts but the binding may still work.
Reserved Shortcuts
Non-rebindable (errors)
ctrl+c— Cannot be rebound - used for interrupt/exit (hardcoded)ctrl+d— Cannot be rebound - used for exit (hardcoded)ctrl+m— Cannot be rebound - identical to Enter in terminals (both send CR)ctrl+[— Cannot be rebound - identical to Escape in terminalsctrl+i— Cannot be rebound - identical to Tab in terminalsctrl+h— Cannot be rebound - identical to Backspace in terminalscapslock— Caps Lock is not delivered to terminal applications
Terminal reserved (errors/warnings)
ctrl+z— Unix process suspend (SIGTSTP) (may conflict)ctrl+\— Terminal quit signal (SIGQUIT) (will not work)
macOS reserved (errors)
cmd+c— macOS system copycmd+v— macOS system pastecmd+x— macOS system cutcmd+q— macOS quit applicationcmd+w— macOS close window/tabcmd+tab— macOS app switchercmd+space— macOS Spotlight
Available Contexts
| Context
Установить keybindings-help в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл keybindings-help?
Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claude/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".
Как установить скилл keybindings-help?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл keybindings-help запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic