360 Secure SkillHub
360 安全技能中心

Keybindings Customizer

用于定制 Claude Code 键位的 Skill:先读取现有 keybindings.json,再合并用户的改键、解绑或和弦请求,保留 schema 与其他已有绑定,检查与保留键位的冲突,并说明操作系统或终端层面的限制。

wimi321
wimi321
热度 39.29
最近更新 2026-05-11 17:39:34
分类:自动化依赖:读写文件 / 内部调用大模型应用场景:工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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.