dired
This skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient.
How do I install this agent skill?
npx skills add https://github.com/xenodium/emacs-skills --skill diredIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill uses the Bash tool to execute Emacs Lisp commands via emacsclient. While intended for local file management in Emacs, it dynamically generates Lisp code from filenames in the conversation history, which creates a surface for Lisp injection if filenames are maliciously crafted.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
2 files scanned · No issues
What does this agent skill do?
Open files in Emacs dired
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.
Strategy
Determine whether the relevant files all reside in the same directory or span multiple directories, then call agent-skill-dired accordingly.
- Same directory:
:diris the directory,:filesare basenames. Opens dired at that directory with the files marked in context. - Multiple directories:
:diris the common ancestor,:filesare 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"))))'
Rules
- Use relative paths in
:filesrelative to:dir. - Locate
agent-skill-dired.elrelative to this skill file's directory. - If no relevant files exist in the recent interaction, inform the user.
- Run the
emacsclient --evalcommand via the Bash tool.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/xenodium/emacs-skills/dired">View dired on skillZs</a>