By xenodium
Control Emacs from Claude Code: open files in dired or buffers via /dired /open /select, highlight regions via /highlight, lookup documentation via /describe, generate Emacs-themed diagrams and plots (D2 Mermaid PlantUML Gnuplot) as inline PNGs from context.
npx claudepluginhub xenodium/emacs-skillsThis skill should be used when the user invokes "/d2" to create a diagram from the current context using D2 and output the resulting image path.
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.
Always use emacsclient instead of emacs. This applies to all Emacs operations: user requests, byte compilation, check-parens, running ERT tests, and any other elisp evaluation.
When referencing files, format them as markdown links with line numbers using GitHub-style #L syntax.
This skill should be used when the user invokes "/gnuplot" to plot data from the current context using gnuplot and output the resulting image path.
This skill should be used when the user invokes "/highlight" to highlight relevant regions in one or more files in Emacs via emacsclient.
This skill should be used when the user invokes "/mermaid" to create a diagram from the current context using Mermaid and output the resulting image path.
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 "/plantuml" to create a diagram from the current context using PlantUML and output the resulting image path.
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.
👉 Support my work via GitHub Sponsors
Claude Code skills for Emacs integration.
These skills enable tighter integration with agents running inside Emacs, for example agent-shell.
Open files from the latest agent interaction in an Emacs dired buffer via emacsclient.
*agent-files* dired buffer containing only the relevant files, using relative paths from a common ancestor.Open files from the latest agent interaction in Emacs buffers via emacsclient. Jumps to a specific line when relevant.
Open a file in Emacs and select the region most relevant to the current discussion. Ready to act on immediately: narrow, copy, refactor, etc.
Highlight relevant regions in a file in Emacs with a temporary read-only minor mode. Press q to exit and remove highlights.
Look up Emacs documentation using the appropriate mechanism: describe-function, describe-variable, describe-key, describe-symbol, apropos, apropos-documentation, info, or shortdoc.
Plot data from the current context using gnuplot. Queries the Emacs foreground color and generates a transparent PNG that renders inline.
Create diagrams from the current context using PlantUML. Applies the Emacs foreground color via skinparam for readable text on your Emacs background.
Create diagrams from the current context using D2. Uses the dark theme with the Emacs foreground color applied to nodes and edges.
Create diagrams from the current context using Mermaid. Applies the Emacs foreground color via theme variable overrides for readable text on your Emacs background.
Always prefer emacsclient over emacs when the agent needs to interact with Emacs. This skill is not a slash command; it activates automatically.
Format file references as markdown links with GitHub-style #L line numbers (e.g., [file.el:42](path/to/file.el#L42)). Activates automatically.
M-x server-start or (server-start) in your init file)emacsclient available on $PATHclaude plugin marketplace add xenodium/emacs-skills
claude plugin install emacs-skills@xenodium-emacs-skills
claude plugin marketplace update xenodium-emacs-skills
claude plugin uninstall emacs-skills
Org-mode knowledge and note management via emacsclient
Share bugs, ideas, or general feedback.
Bridge to Emacs via Unix Socket
MCP server for previewing Mermaid diagrams in Claude Code
General utilities - fd, rg, jq, yq, nushell, shell, imagemagick, mermaid, d2
Generate publication-quality Mermaid diagrams for flowcharts, sequences, ERDs, and more.
Create, validate, and render Mermaid diagrams