Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: ide-shortcut-unified-layer description: Unified export/import layer for IDE keyboard shortcuts, using a single canonical JSON as the interchange format. Use when the user asks to export, import, migrate, sync, unify, or copy keyboard shortcuts / keymaps / keybindings between editors such as IntelliJ / JetBrains IDEs and Cursor / VS Code. The canonical file is written to the current working directory unless the user provides an explicit path.
IDE Shortcut Unified Layer (Export / Import)
One CLI handles both directions: IDE → canonical JSON, and canonical JSON → IDE. The canonical file is the single interchange format.
When To Use
- "Export my IntelliJ shortcuts."
- "Import these shortcuts into Cursor."
- "Move my keymap from <IDE-A> to <IDE-B>."
Supported IDEs (v1)
| Key | IDE | Source of truth | |
|---|---|---|---|
intellij | IntelliJ IDEA / any JetBrains IDE | ~/Library/Application Support/JetBrains/<Product>/keymaps/*.xml | |
cursor | Cursor | ~/Library/Application Support/Cursor/User/keybindings.json | |
vscode | VS Code | ~/Library/Application Support/Code/User/keybindings.json |
Paths above are macOS defaults. On other OSes pass an explicit path via --path.
Canonical Format (shortcuts.json)
{"version": 1,"source_ide": "intellij","exported_at": "2026-04-17T12:00:00Z","shortcuts": [{"intent": "edit.copy","ide_action": "$Copy","keys": ["meta c"],"when": null,"raw": { "...": "source-specific payload" }}]}
intent— portable semantic id fromscripts/mappings.json;nullif the action is not in the mapping table.ide_action— native command / action id ($Copyfor IntelliJ,editor.action.clipboardCopyActionfor VS Code/Cursor).keys— normalized chords, space-separated modifiers, lowercase (e.g."shift meta f").when— VS Code/Cursorwhenclause;nullfor IntelliJ.raw— original object preserved so round-trips lose nothing.
Workflow — Export
python3 <skill-dir>/scripts/ide_shortcuts.py export \--ide intellij \--output ./shortcuts.json
--ide {intellij,cursor,vscode}— required.--path PATH— override the source file. Defaults to the IDE's OS-default location.--output PATH— defaults to./shortcuts.jsonin the current working directory.
For IntelliJ, if multiple products or keymaps exist, the script picks the most recently modified keymap unless --path is passed.
Workflow — Import
python3 <skill-dir>/scripts/ide_shortcuts.py import \--ide cursor \--input ./shortcuts.json
--ide {intellij,cursor,vscode}— required.--input PATH— defaults to./shortcuts.jsonin the current working directory.--path PATH— override the destination file. Defaults to the IDE's OS-default location.--merge(default) — merge into existing keybindings, replacing entries with the sameide_action.--replace— replace the destination file entirely (prompts for confirmation unless--yes).--report PATH— write unmapped shortcuts to this path (default./shortcuts.unmapped.json) so the user can hand-edit them.
Translation rules
- If
intentis set andmappings.jsonhas an entry for the target IDE, use that native command. - Else if
source_ide == target_ide, useide_actiondirectly. - Else the entry is unmapped: written to the report file and skipped from the import with a summary at the end.
Agent Steps
- Identify direction (export vs import) and target IDE from the user's request.
- If the user did not give a path, default to the current working directory for
shortcuts.json. - Run the CLI with the right subcommand.
- After import, surface: counts of applied vs unmapped entries and the report path.
- Tell the user to reload the IDE (Cursor:
Developer: Reload Window; IntelliJ: restart orFile → Manage IDE Settings → Reload).
Utility Script
scripts/ide_shortcuts.py— single-file Python 3 CLI, stdlib only.scripts/mappings.json— curatedintenttable. Extend it to grow cross-IDE fidelity.
Extending
Add a new IDE by implementing _export_<ide> and _import_<ide> in ide_shortcuts.py and adding its native command strings to mappings.json.