一键导入
highlight
This skill should be used when the user invokes "/highlight" to highlight relevant regions in one or more files in Emacs via emacsclient.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill should be used when the user invokes "/highlight" to highlight relevant regions in one or more files in Emacs via emacsclient.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
This skill should be used when the user invokes "/describe" to look up Emacs documentation via emacsclient.
This skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient.
Use when the user asks about a specific place — restaurant, cafe, shop, business, landmark — or when context implies a location-based lookup ("where is X", "find Y", "X in Z", "X near A"). Calls the mappu CLI to search Apple Maps and returns local results with addresses, websites, preview images, and a map snapshot.
This skill should be used when the user invokes "/open" to open files from the latest interaction in Emacs buffers via emacsclient.
This skill should be used when the user invokes "/select" to open one or more files in Emacs and select a region relevant to the current discussion via emacsclient.
This skill should be used when the user invokes "/swiftui-preview" to render SwiftUI code from the current context to a PNG and output the resulting image path.
| name | highlight |
| description | This skill should be used when the user invokes "/highlight" to highlight relevant regions in one or more files in Emacs via emacsclient. |
| tools | Bash |
| disable-model-invocation | true |
Highlight relevant regions in one or more files in Emacs using emacsclient --eval. Files are opened in a temporary read-only minor mode with highlighted overlays. The user presses q to exit the mode and remove all highlights in that buffer.
Determine the relevant files and line ranges from the most recent interaction context.
First, determine the path to agent-skill-highlight.el. It lives alongside this skill file at skills/highlight/agent-skill-highlight.el in the emacs-skills plugin directory.
emacsclient --eval '
(progn
(load "/path/to/skills/highlight/agent-skill-highlight.el" nil t)
(agent-skill-highlight
:files (quote (("/path/to/file1.el"
:regions ((:start 90 :lines 18)
(:start 114 :lines 49)))
("/path/to/file2.el"
:regions ((:start 94 :lines 18)))))))'
:start is the 1-indexed line number.:lines is the number of lines to highlight from that start line.agent-skill-highlight.el relative to this skill file's directory.emacsclient --eval command via the Bash tool.