open

Opens recently referenced files in Emacs buffers via emacsclient eval commands.

Updated May 2, 2026
One-click install
npx skills add https://github.com/hdeshev/pi-config --skill open-hdeshev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: open
Source: https://github.com/hdeshev/pi-config/tree/main/agent/skills/emacs-open
Command: npx skills add https://github.com/hdeshev/pi-config --skill open-hdeshev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After an AI coding session generates, edits, or lists files, manually locating and opening each one in Emacs is tedious. This Skill opens all files relevant to the latest interaction directly in Emacs buffers with a single command. ## Core Features & Use Cases - Batch file opening: Opens multiple files from the most recent interaction in Emacs buffers using emacsclient --eval. - Line-precise navigation: Jumps to a specific line number when a file spec includes a :line property, useful for error locations or newly added functions. - Interaction-scoped selection: Only opens files from the latest interaction rather than every file mentioned in the conversation. - Use Case: After the agent edits three source files and reports an error at line 42 of one, invoke /open to load all three files in Emacs with the cursor positioned at the error line. ## Quick Start Invoke /open after an interaction to open the recently generated or edited files in Emacs buffers via emacsclient.

Frequently Asked Questions about open

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I open recently edited files in Emacs from the command line?▼

Use emacsclient --eval with a Lisp expression that loads agent-skill-open.el and calls agent-skill-open with a :files list. Each entry is a file path string or a plist with :file and optional :line keys.

How to jump to a specific line when opening a file in Emacs?▼

Pass a plist with :file and :line in the :files list, for example (:file "/path/to/file.txt" :line 42). The agent-skill-open function positions the cursor at that line when the buffer opens.

Does emacsclient require a running Emacs server?▼

Yes, emacsclient connects to an existing Emacs server process. Start Emacs and run M-x server-start, or launch Emacs in daemon mode with emacs --daemon before invoking this skill.

Why does emacsclient fail to open files?▼

Failures usually occur when no Emacs server is running, file paths are not absolute, or agent-skill-open.el is not found. Verify the server is active and use absolute paths relative to the skill directory.

Which files does the open command select from a conversation?▼

It selects only files relevant to the latest interaction, such as files just generated, edited, listed, or produced by the most recent tool output. Files mentioned earlier in the conversation are excluded.