dired

Opens recently touched files in an Emacs dired buffer via emacsclient.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After an AI coding session generates or edits multiple files, manually locating them in Emacs is tedious. This Skill collects the files from the latest interaction and opens them in an Emacs dired buffer so you can review them immediately. ## Core Features & Use Cases - Same-directory files: Opens dired at the shared directory with the relevant files marked in context. - Multi-directory files: Creates a curated *agent-files* buffer with all files marked, using the common ancestor as the base directory. - Use Case: After the agent edits three source files across two packages, invoke /dired to open all of them marked in Emacs for quick review, diffing, or further editing. ## Quick Start Invoke /dired to open the files from the most recent interaction in an Emacs dired buffer via emacsclient.

Frequently Asked Questions about dired

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

FAQPage Schema
How do I open recently edited files in Emacs dired?▼

Invoke the /dired command after an agent interaction. It runs emacsclient --eval with agent-skill-dired, passing the directory and file list so the relevant files open marked in a dired buffer.

How does dired handle files spread across multiple directories?▼

When files span multiple directories, the skill uses their common ancestor as :dir and relative paths as :files. This creates a curated *agent-files* buffer with all files marked instead of a standard directory listing.

Does this skill require a running Emacs server?▼

Yes, it relies on emacsclient --eval, which connects to a running Emacs server. Start the server with M-x server-start or run Emacs in daemon mode before invoking the skill.

Why does emacsclient fail to open the dired buffer?▼

Failures usually occur when no Emacs server is running or the agent-skill-dired.el file path is wrong. Verify the server is active and that the elisp file is loaded from the skill's directory before calling agent-skill-dired.

Which files are included when invoking /dired?▼

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