360 Secure SkillHub
360 安全技能中心

Keybindings Customizer

核心功能为Claude Code快捷键定制,支持重绑定、解绑、创建组合键。操作时读取现有配置,采用合并修改而非全量覆盖的方式,保留原有配置结构与文档字段,提前检测并提示系统或终端保留快捷键冲突。典型场景如修改外部编辑器快捷键、添加待办切换组合键。输入为定制需求、现有配置及系统限制,输出为合并后的配置及冲突说明。

wimi321
wimi321
热度 39.26
最近更新 2026-05-11 17:39:12
分类:开发依赖:读写文件应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add claude-code-keybindings-customizer
Metadata
name
keybindings_customizer
description
Use when the user wants to customize Claude Code keybindings, rebind shortcuts, add chords, or edit `~/.claude/keybindings.json` safely.

Keybindings Customizer

Use this skill for shortcut rebinding, unbinding, or chord creation.

Workflow

  1. Read the current keybindings file first.
  2. Merge changes instead of replacing the entire file.
  3. Keep schema and docs fields intact.
  4. Validate against reserved and non-rebindable shortcuts.
  5. Explain any conflicts or terminal-level limitations.

Guardrails

  • Never overwrite the full file blindly.
  • Preserve unrelated existing bindings.
  • Flag OS or terminal-reserved shortcuts before saving.

Example Requests

  • Rebind the external editor shortcut.
  • Add a chord to toggle todos without overwriting my keybindings file.

Inputs

  • Requested key changes
  • Existing keybindings file
  • OS or terminal constraints

Outputs

  • Merged keybinding config
  • Conflict explanations

Success Criteria

  • The file was merged, not clobbered.
  • Reserved shortcuts were handled correctly.
  • Schema and docs fields remain intact.

Non-Goals

  • Whole-file replacement for a small binding change

Source Provenance

Derived from src/skills/bundled/keybindings.ts.