Forces all Emacs operations through emacsclient instead of emacs/emacs --batch, covering byte compilation, syntax checking, ERT tests, and elisp evaluation.
Ships in emacs-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user has an Emacs server running. All Emacs operations must go through emacsclient, never emacs or emacs --batch. This includes both user-requested actions and agent-initiated operations like byte compilation, syntax checking, or running tests.
The one exception is a project's own test/build entry point (see Rules).
emacsclient --no-wait "/path/to/file"emacsclient --eval '(some-function)'emacsclient --no-wait +42 "/path/to/file"emacsclient --eval '
(byte-compile-file "/path/to/file.el")'
emacsclient --eval '
(with-temp-buffer
(insert-file-contents "/path/to/file.el")
(check-parens))'
ert-run-tests-batch-and-exit here: it would kill the user's Emacs):
emacsclient --eval '
(progn
(load "/path/to/test-file.el" nil t)
(ert-run-tests-batch "pattern"))'
make test (or the project's equivalent).emacsclient, never call emacs or emacs --batch directly.make test, eask test,
eldev test, CI scripts) may be run even though they spawn emacs --batch
internally. Prefer them for full test suites: they run in a clean, isolated Emacs
and can't wedge the user's session.--no-wait when opening files so the command returns immediately.--eval when evaluating elisp.--eval elisp across multiple lines with proper indentation.emacsclient commands via the Bash tool.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/emacs-skills:emacsclientfrom emacs-skills
npx claudepluginhub xenodium/emacs-skills --plugin emacs-skills20 skills in this plugin
/d2This 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./describeThis skill should be used when the user invokes "/describe" to look up Emacs documentation via emacsclient./diredThis skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient./file-linksWhen referencing files, format them as markdown links with line numbers using GitHub-style #L syntax./github-activityThis skill should be used when the user invokes "/github-activity" to analyze a GitHub project's recent activity (PRs and issues) and produce a succinct, chart-backed health report./gnuplotThis skill should be used when the user invokes "/gnuplot" to plot data from the current context using gnuplot and output the resulting image path.Other plugins' skills for the same job