xenodium/emacs-skills

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.

First seen Feb 26, 2026

Installation

$ npx skills add xenodium/emacs-skills --skill dired

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from xenodium/emacs-skills · top by installs.

npx skills add xenodium/emacs-skills

Browse all from xenodium/emacs-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 135
Default branch main
Open issues 5
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,651 B
  • docs SUMMARY.md 153 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 83 installs

SKILL.md

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: :dir is the directory, :files are basenames. Opens dired at that directory with the files marked in context.
  • Multiple directories: :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"))))'

Rules

  • Use relative paths in :files relative to :dir.
  • Locate agent-skill-dired.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.