mac-left-option-ime-switcher
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "mac-left-option-ime-switcher":https://skillpi.com/zh/skills/deepskill-467f7e1756e8c0adea7ff87b609756f0c255a07a230c4243c1f8f99175dea5fb。安装前核对上游来源和版本:https://skillhub.cn/skills/user_b85d9503/option-input-switch。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于安装并排查在 macOS 上实现“按住左 Option 键临时切换输入法”的全局自动化方案。适用于希望在 Mac 上用左 Option 键按住切换输入法的用户,尤其是搜狗输入法与豆包输入法之间的切换。实现思路基于 Hammerspoon 的键盘事件监听,并涉及辅助功能或输入监控权限设置,可用于团队共享该工作流程。
介绍来源: third_party · user_b85d9503 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: mac-left-option-ime-switcher
description: Install and troubleshoot a macOS global automation that temporarily switches input methods while the left Option key is held. Use when a user wants Mac left Option hold-to-switch behavior, especially Sogou-to-Doubao IME switching, Hammerspoon-based keyboard event monitoring, Accessibility/Input Monitoring permission setup, or sharing this workflow with coworkers.Mac Left Option IME Switcher
Use this skill to install a Hammerspoon automation on macOS:
- Hold left Option: switch to Doubao IME.
- Release left Option: switch back to Sogou IME.
- Right Option is ignored.
- Other key events are observed only and not swallowed.
The tested input source IDs are:
- Sogou:
com.sogou.inputmethod.sogou.pinyin, fallbackcom.sogou.inputmethod.pinyin - Doubao:
com.bytedance.inputmethod.doubaoime.pinyin
Workflow
- Run
scripts/install_left_option_ime_switcher.sh. - If the script opens System Settings, make sure Hammerspoon is enabled in both:
- Privacy & Security > Accessibility
- Privacy & Security > Input Monitoring
- Restart Hammerspoon when macOS asks, or run:
osascript -e 'tell application "Hammerspoon" to quit' || true
open -g /Applications/Hammerspoon.app
- Ask the user to test a real left Option press and release.
- Inspect
~/.hammerspoon/left_option_ime.logif anything fails.
Important Details
- Prefer Hammerspoon over a custom LaunchAgent for this workflow. On recent macOS versions, raw event taps may need both Accessibility and Input Monitoring; Hammerspoon handles this more predictably once it has permissions.
- If Hammerspoon is running from
Downloadsvia App Translocation, copy it to/Applications/Hammerspoon.appand launch it from there. - Stop any older custom helper named
com.local.left-option-ime-switcherto avoid duplicate logic. - Use
hs.keycodes.currentSourceID(...)for switching, not keyboard shortcuts. - Left Option keyCode is
58; right Option is different and should be ignored.
Verify
Run:
osascript -e 'tell application "Hammerspoon" to execute lua code "return hs.inspect({secure=hs.eventtap.isSecureInputEnabled(), tap=leftOptionImeTap and leftOptionImeTap:isEnabled(), current=hs.keycodes.currentSourceID(), methods=hs.keycodes.methods(true)})"'
tail -n 80 ~/.hammerspoon/left_option_ime.log
Expected:
secure = falsetap = true- input methods include Sogou and Doubao source IDs
- log records
select ...doubao...on left Option down andselect ...sogou...on release
If simulated events work but real key presses do not, Input Monitoring permission is missing or stale. Open:
open 'x-apple.systempreferences:com.apple.preference.security?Privacy_ListenEvent'
Then add or enable /Applications/Hammerspoon.app.
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 macOS 下基于 Hammerspoon 的输入法切换自动化方案,针对搜狗与豆包输入法用户有明确实用价值
- 功能闭环完整,包含安装、配置、验证和排查全流程
亮点
- description 在 frontmatter 中完整定义,覆盖安装、权限设置、排查和共享等多种使用场景
- 触发词清晰,边界明确,不易与其他 Skill 混淆
待提升项
-
缺少 When to Use 显式章节 原报告严重程度:轻微
文档未设置显式的 When to Use 章节,但使用场景已在 description 和正文中充分覆盖
改进建议:建议增加 When to Use 章节以提升结构规范性
亮点
- 文档结构清晰,包含 Workflow、Important Details、Verify 等实用章节
- 步骤明确,提供了具体命令和验证方式,frontmatter 完整
亮点
- 提供了完整的权限设置指引和日志检查方法
- 包含验证命令和常见问题排查路径,提升了执行成功率
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。