hotkey — hotkey install for AI agents hotkey, community, hotkey install for AI agents, ide skills, typescript hotkey integration, custom keyboard shortcuts for AI agents, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for UI-focused Agents needing customizable keyboard shortcuts for streamlined conversation workflows. Hotkey is a feature that allows developers to assign custom keyboard shortcuts to specific actions in their AI agents, using constants and registrations.

Features

Updates hotkey constants in src/types/hotkey.ts
Registers default hotkeys in src/const/hotkeys.ts
Utilizes KeyMapEnum and combineKeys from @lobehub/ui
Supports HotkeyEnum for clear chat actions
Enables customization of keyboard shortcuts for conversation workflows

# Core Topics

cute-baobao cute-baobao
[0]
[0]
Updated: 3/6/2026

Agent Capability Analysis

The hotkey skill by cute-baobao is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for hotkey install for AI agents, typescript hotkey integration, custom keyboard shortcuts for AI agents.

Ideal Agent Persona

Perfect for UI-focused Agents needing customizable keyboard shortcuts for streamlined conversation workflows.

Core Value

Empowers agents to register custom hotkeys using TypeScript and UI frameworks like @lobehub/ui, enabling efficient conversation management via keyboard shortcuts such as 'ClearChat' and combining keys with 'combineKeys' from '@lobehub/ui'.

Capabilities Granted for hotkey

Registering default hotkeys for common actions
Updating hotkey constants for new features
Streamlining conversation workflows with custom keyboard shortcuts

! Prerequisites & Limits

  • Requires TypeScript and UI framework compatibility
  • Needs access to 'src/types/hotkey.ts' and 'src/const/hotkeys.ts' files
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

hotkey

Install hotkey, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Adding Keyboard Shortcuts Guide

Steps to Add a New Hotkey

1. Update Hotkey Constant

In src/types/hotkey.ts:

typescript
1export const HotkeyEnum = { 2 // existing... 3 ClearChat: 'clearChat', // Add new 4} as const;

2. Register Default Hotkey

In src/const/hotkeys.ts:

typescript
1import { KeyMapEnum as Key, combineKeys } from '@lobehub/ui'; 2 3export const HOTKEYS_REGISTRATION: HotkeyRegistration = [ 4 { 5 group: HotkeyGroupEnum.Conversation, 6 id: HotkeyEnum.ClearChat, 7 keys: combineKeys([Key.Mod, Key.Shift, Key.Backspace]), 8 scopes: [HotkeyScopeEnum.Chat], 9 }, 10];

3. Add i18n Translation

In src/locales/default/hotkey.ts:

typescript
1const hotkey: HotkeyI18nTranslations = { 2 clearChat: { 3 desc: '清空当前会话的所有消息记录', 4 title: '清空聊天记录', 5 }, 6};

4. Create and Register Hook

In src/hooks/useHotkeys/chatScope.ts:

typescript
1export const useClearChatHotkey = () => { 2 const clearMessages = useChatStore((s) => s.clearMessages); 3 return useHotkeyById(HotkeyEnum.ClearChat, clearMessages); 4}; 5 6export const useRegisterChatHotkeys = () => { 7 useClearChatHotkey(); 8 // ...other hotkeys 9};

5. Add Tooltip (Optional)

tsx
1const clearChatHotkey = useUserStore(settingsSelectors.getHotkeyById(HotkeyEnum.ClearChat)); 2 3<Tooltip hotkey={clearChatHotkey} title={t('clearChat.title', { ns: 'hotkey' })}> 4 <Button icon={<DeleteOutlined />} onClick={clearMessages} /> 5</Tooltip>;

Best Practices

  1. Scope: Choose global or chat scope based on functionality
  2. Grouping: Place in appropriate group (System/Layout/Conversation)
  3. Conflict check: Ensure no conflict with system/browser shortcuts
  4. Platform: Use Key.Mod instead of hardcoded Ctrl or Cmd
  5. Clear description: Provide title and description for users

Troubleshooting

  • Not working: Check scope and RegisterHotkeys hook
  • Not in settings: Verify HOTKEYS_REGISTRATION config
  • Conflict: HotkeyInput component shows warnings
  • Page-specific: Ensure correct scope activation

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is hotkey?

Perfect for UI-focused Agents needing customizable keyboard shortcuts for streamlined conversation workflows. Hotkey is a feature that allows developers to assign custom keyboard shortcuts to specific actions in their AI agents, using constants and registrations.

How do I install hotkey?

Run the command: npx killer-skills add cute-baobao/pm/hotkey. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for hotkey?

Key use cases include: Registering default hotkeys for common actions, Updating hotkey constants for new features, Streamlining conversation workflows with custom keyboard shortcuts.

Which IDEs are compatible with hotkey?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for hotkey?

Requires TypeScript and UI framework compatibility. Needs access to 'src/types/hotkey.ts' and 'src/const/hotkeys.ts' files.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add cute-baobao/pm/hotkey. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use hotkey immediately in the current project.

Related Skills

Looking for an alternative to hotkey or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI