emacsclient
Skill by xenodium
Tells an AI assistant to run all Emacs operations through emacsclient instead of emacs. It is aimed at developers who have an Emacs server running and want their assistant to use it.
Install emacsclient
Built from the published package, never by AI.
git clone --depth 1 https://github.com/xenodium/emacs-skills /tmp/emacs-skills && mkdir -p ~/.claude/skills && cp -r /tmp/emacs-skills/skills/emacsclient ~/.claude/skills/emacsclientRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/xenodium/emacs-skills /tmp/emacs-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/emacs-skills/skills/emacsclient ~/.gemini/antigravity-cli/skills/emacsclientAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The emacsclient skill tells an AI assistant to use emacsclient for every Emacs operation, and never the emacs binary or emacs --batch. The rule covers user requests such as opening files, as well as agent tasks like byte compilation, check-parens, running ERT tests and other elisp evaluation. The skill is written as a SKILL.md file with Bash as its only listed tool.
The skill gives examples for opening a file with --no-wait, opening at a line number, evaluating elisp with --eval, and running the byte-compile, check-parens and ERT test commands. It sets rules such as formatting --eval elisp across multiple lines with indentation. It assumes the user already has an Emacs server running, and it suits developers who use Emacs alongside an AI assistant.
Written from the project's SKILL.md and checked against it.
What it can do
- Open filesOpens files in the running Emacs with --no-wait, optionally at a given line.
- Evaluate elispRuns elisp in the running Emacs using emacsclient --eval.
- Byte compileRuns byte-compile-file on a given elisp file.
- Check parenthesesRuns check-parens on the contents of a file.
- Run ERT testsLoads a test file and runs ert-run-tests-batch-and-exit with a pattern.
What you need
- Emacs with a running server
- emacsclient command
- Bash tool
Try asking
- Open /path/to/notes.org at line 42 in my Emacs
- Byte compile /path/to/file.el using my running Emacs server
- Run the ERT tests matching 'parser' in my Emacs
Good to know
- Assumes a running Emacs server is available.
- Rules forbid using emacs or emacs --batch for Emacs operations.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/emacsclient/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to emacsclient
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
emacsclient: common questions
Why use emacsclient instead of emacs --batch?
The source says the user has an Emacs server running, so all Emacs operations must go through emacsclient, never emacs or emacs --batch.
Does it cover byte compilation and running tests?
Yes. The source says byte compilation, check-parens, ERT tests and other elisp evaluation are all included.
Which tool does the skill use to run commands?
The skill lists Bash as its tool and says emacsclient commands should be run through the Bash tool.
How do I install emacsclient?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is emacsclient free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is emacsclient safe to use?
It scores 60 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to emacsclient?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
