Opens files from the latest interaction in an Emacs dired buffer via emacsclient. Invoked with /dired command to quickly navigate relevant files.
Ships in emacs-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Open files from the most recent interaction in an Emacs dired buffer 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.
Determine whether the relevant files all reside in the same directory or span multiple directories, then call agent-skill-dired accordingly.
:dir is the directory, :files are basenames. Opens dired at that directory with the files marked in context.:dir is the common ancestor, :files are relative paths. Creates a curated *agent-files* buffer with all files marked.First, locate agent-skill-dired.el which lives alongside this skill file at skills/dired/agent-skill-dired.el in the emacs-skills plugin directory.
emacsclient --eval '
(progn
(load "/path/to/skills/dired/agent-skill-dired.el" nil t)
(agent-skill-dired
:dir "/path/to/directory"
:files (quote ("file1.txt"
"file2.txt"
"file3.txt"))))'
:files relative to :dir.agent-skill-dired.el relative to this skill file's directory.emacsclient --eval command via the Bash tool.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
emacs-dired, emacsclient, file-navigation, quick-open, open-files
20 skills in this plugin
/d2This skill should be used when the user invokes "/d2" to create a diagram from the current context using D2 and output the resulting image path./describeThis skill should be used when the user invokes "/describe" to look up Emacs documentation via emacsclient./emacsclientAlways 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. Exception: a project's own test/build entry points (make test, eask, eldev, CI scripts) may run even though they spawn emacs --batch internally./emacs-skills:diredfrom emacs-skills
npx claudepluginhub xenodium/emacs-skills --plugin emacs-skillsOther plugins' skills for the same job