Skip to content
Agent Orchestration
Skill

/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.

BOOST
From plugin
emacs-skills
14519 skills
Install
$ npx -y skills add xenodium/emacs-skills --skill emacsclient --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/emacsclient

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

emacsclient.SKILL.md
name: emacsclient
description: '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.'
tools: Bash

Always use emacsclient

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.

Examples

  • Open a file: `emacsclient --no-wait "/path/to/file"`
  • Evaluate elisp: `emacsclient --eval '(some-function)'`
  • Open at a line: `emacsclient --no-wait +42 "/path/to/file"`
  • Byte compile a file:
  emacsclient --eval '
  (byte-compile-file "/path/to/file.el")'
  • Check parentheses:
  emacsclient --eval '
  (with-temp-buffer
    (insert-file-contents "/path/to/file.el")
    (check-parens))'
  • Run ERT tests:
  emacsclient --eval '
  (progn
    (load "/path/to/test-file.el" nil t)
    (ert-run-tests-batch-and-exit "pattern"))'

Rules

  • Always use `emacsclient`, never `emacs` or `emacs --batch`.
  • Use `--no-wait` when opening files so the command returns immediately.
  • Use `--eval` when evaluating elisp.
  • Always format `--eval` elisp across multiple lines with proper indentation.
  • Run `emacsclient` commands via the Bash tool.
Read more
Ships withemacs-skills

Claude Code skills for Emacs integration. These skills enable tighter integration with agents running inside Emacs, for example agent-shell.

Get the whole plugin
Stats
145
Stars
17
Forks
Maintained
Maintenance
Emacs Lisp
Language
3mo ago
Last commit
8mo ago
Created
4h ago
Added

Repo: xenodium/emacs-skills

Other skills on emacs-skills.