- Home
- Skills
- Workflow Automation
- emacs companion
Works with the AI Agents you already use
emacs companion
Control GNU Emacs buffers, navigate files, and apply edits directly through an MCP Bridge server.
Free
emacs companion
Example session with this skill installed
List my open Emacs buffers, find the one named 'init.el', and add a comment at the end saying ';; MCP check complete'.
- Read your context and instructions
- Compiled the emacs companion
I have successfully updated your Emacs buffer. I first listed the buffers to locate 'init.el', moved the point to the end of the file, and inserted the requested comment.
Emacs Buffer Update
| Action | Detail | Result |
|---|---|---|
| Buffer Found | init.el | Confirmed |
| Command | insert_at_cursor | Success |
| Content Added | ;; MCP check complete | Verified |
| Buffer Status | Unsaved | Pending user instruction |
;; ... existing configuration ...
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:family "JetBrains Mono" :foundry "JB" :slant normal :weight normal :height 120 :width normal)))))
;; MCP check complete
Next steps
- Run
save_bufferto persist this change to yourinit.elfile. - If you want to evaluate this new comment as code (though it is a comment), I can run
eval_elispon the buffer. - Let me know if you need to navigate to a specific line in
init.elto make further edits.
Connects securely to your tools. The creator never sees your data.
About this skill
Context switching between your terminal and Emacs breaks your flow. This skill bridges that gap, allowing an AI agent to interact directly with your running GNU Emacs instance through an MCP connection. It eliminates the manual copy-paste cycle by giving the agent programmatic access to your active buffers and cursor.
What it does
- Buffer Inspection retrieves full buffer content or only the currently selected text for targeted analysis.
- Precision Editing inserts text at the cursor, replaces selections, or overwrites entire buffers based on instructions.
- Navigation Control opens specific files at defined line numbers or jumps to lines within an active buffer.
- State Management lists all open buffers to resolve ambiguity and executes save commands to persist changes to disk.
- Elisp Execution runs arbitrary Emacs Lisp expressions if the server owner has enabled the evaluation feature.
How it works
- The agent lists active buffers to identify the correct workspace.
- It pulls the relevant context using scoped read commands to minimize noise.
- Edits are performed using precise insertion or replacement tools to maintain file integrity.
- The agent verifies the change by reading back the affected lines and saves the buffer upon request.
Frameworks & tools
Requires a running GNU Emacs instance, emacsclient configured on the local machine, and a compatible MCP Bridge server.
Why this beats prompting it yourself
Manual prompting requires you to copy code out of Emacs, paste it into a chat, and then manually apply the agent's suggested diffs back into your editor. This skill automates the I/O, ensuring the agent sees exactly what you see and applies changes with line-level precision without user intervention.
Use cases
- Refactor a specific function selected in your current Emacs window.
- Search across all open Emacs buffers to find a specific variable definition.
- Document a legacy Elisp file by reading the buffer and inserting docstrings.
- Automate repetitive text transformations across multiple open files.
Known limitations
Requires a pre-installed local MCP Bridge server. It cannot install Emacs or the bridge server for you. Scope is limited to the machine where the server is running.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 1 day ago
- Free to download with an account
Requires