crm-hotkeys-bind

Adds keyboard shortcuts for adding new customers, search, and saving settings using hotkeys-js. Invoke this when users need CRM shortcuts, keyboard accelerators, or hotkeys-js bindings.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "crm-hotkeys-bind" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6179d6ae0cf8ae96b2793bdf0b7c7811f4be3283fbc95028800677574edbba34. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/rjvx2026647 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Adds keyboard shortcuts for adding new customers, search, and saving settings using hotkeys-js. Invoke this when users need CRM shortcuts, keyboard accelerators, or hotkeys-js bindings.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: crm-hotkeys-bind
slug: rjvx2026647
displayName: CRM快捷键
version: 1.0.0
summary: 用 hotkeys-js 为新增客户、搜索、保存配置键盘快捷键。
license: MIT
description: 用 hotkeys-js 为新增客户、搜索、保存配置键盘快捷键。当用户要 CRM 快捷键、键盘加速键、hotkeys-js 绑定时使用。

CRM 快捷键

灵感:能力工具箱 hotkeys(pkg: hotkeys-js)。

为 CRM 常用动作绑定快捷键(新建客户、聚焦搜索、保存等),并在输入框内默认不触发冲突键。

何时使用

  • 「Ctrl+K 打开搜索」「Ctrl+S 保存客户」
  • 列表页键盘效率增强

硬约束

  1. 使用 hotkeys-js;组件卸载时 hotkeys.unbind。
  2. 默认在 INPUT/TEXTAREA/SELECT/contenteditable 内忽略全局快捷键(保存类可按需例外并写清)。
  3. 提供可配置映射表:{ combo, actionId, handler };冲突时后注册覆盖前注册并 console.warn。
  4. 帮助面板列出当前快捷键;Mac 显示 ⌘ / Windows 显示 Ctrl。
  5. 不拦截浏览器关键键(如 Ctrl+W 关标签)除非用户明确要求且有风险提示。

推荐实现要点

import hotkeys from 'hotkeys-js'

export type HotkeyItem = { combo: string; actionId: string; run: () => void }

export function bindCrmHotkeys(items: HotkeyItem[]) {
  hotkeys.filter = (event) => {
    const tag = (event.target as HTMLElement)?.tagName
    if (tag && /^(INPUT|TEXTAREA|SELECT)$/.test(tag)) return false
    if ((event.target as HTMLElement)?.isContentEditable) return false
    return true
  }
  for (const it of items) {
    hotkeys(it.combo, (e) => {
      e.preventDefault()
      it.run()
    })
  }
  return () => {
    for (const it of items) hotkeys.unbind(it.combo)
  }
}

// 示例
// bindCrmHotkeys([
//   { combo: 'ctrl+k,command+k', actionId: 'search', run: () => focusSearch() },
//   { combo: 'ctrl+n,command+n', actionId: 'new-customer', run: () => openCreate() },
// ])

Agent 步骤

  1. 实现绑定/解绑与 filter。
  2. 接入路由页 onMounted / onUnmounted。
  3. 自测:输入框内打字不误触;快捷键可触发动作。

附加

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 CRM 系统键盘快捷键绑定功能,显著提升用户在客户管理场景下的操作效率
  • 使用 hotkeys-js 实现,具有良好的通用性和实用性
Trigger Precision85/100

Highlights

  • 触发描述清晰明确,覆盖 CRM 快捷键、键盘加速键等核心使用场景
  • 边界定义清晰,不易与其他 Skill 产生歧义
Structure and Standards88/100

Areas to improve

  • description 写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 与 skill_body 内部 description 重复

    Recommendation: 建议统一将详细描述放在 skill_body 内部,顶层 frontmatter 保留简洁 summary

Highlights

  • 文档结构完整,包含使用场景、约束条件、实现要点和具体步骤
  • 提供了完整的 TypeScript 代码示例和端到端使用说明
Execution Reliability92/100

Highlights

  • 实现代码完整,包含输入框冲突防护、资源清理和冲突处理机制
  • 工具来源明确,参数使用正确,覆盖主要异常场景
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.