mcpField
O
open

open

github.com/xenodiumProductivity14790 installsUpdated 14w ago
Repository

About open

An Emacs skill for opening files tied to the latest interaction in Emacs buffers. It limits the selection to files recently generated, edited, listed, or returned by a tool.

Key features

  1. 01Open recent files in Emacs
  2. 02Filter files by latest interaction
  3. 03Jump to a specified line
  4. 04Use emacsclient --eval

Use cases

  1. 01Review files generated in the latest interaction
  2. 02Open recently edited files in Emacs
  3. 03Inspect a file at a relevant line

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/xenodium/emacs-skills --skill open

After installing, type/openin Claude Code to confirm it loaded.

Bundled filesagent-skill-open.el

Details

From the project README

Open files in Emacs

Open files from the most recent interaction in Emacs buffers using emacsclient --eval. Only include files relevant to the latest interaction (files just generated, edited, listed, or produced by the most recent tool output), not all files mentioned throughout the conversation.

How to open

First, locate agent-skill-open.el which lives alongside this skill file at skills/open/agent-skill-open.el in the emacs-skills plugin directory.

Each file spec in :files is either a string (file path) or a plist with :file and optional :line.

emacsclient --eval '
(progn
  (load "/path/to/skills/open/agent-skill-open.el" nil t)
  (agent-skill-open
    :files (quote ((:file "/path/to/file1.txt"
                    :line 42)
                   "/path/to/file2.txt"
                   "/path/to/file3.txt"))))'

Rules

  • Use absolute paths for files.
  • Use :line when a specific line is relevant (e.g., an error location or a newly added function).
  • Locate agent-skill-open.el relative to this skill file's directory.
  • If no relevant files exist in the recent interaction, inform the user.
  • Run the emacsclient --eval command via the Bash tool.

Comments

Markdown supported