dired

Opens recent interaction files in an Emacs dired buffer via emacsclient.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/benonions/dotfiles --skill dired
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dired
Source: https://github.com/benonions/dotfiles/tree/main/codex/.codex/skills/community/emacs-skills/dired
Command: npx skills add https://github.com/benonions/dotfiles --skill dired

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps users quickly open and manage files from recent interactions within their Emacs environment using the dired buffer.

Core Features & Use Cases

  • Contextual File Opening: Opens files relevant to the latest interaction, not all files in the conversation history.
  • Emacs Integration: Leverages emacsclient for seamless integration with Emacs.
  • Use Case: After generating a set of configuration files, you can use this skill to immediately open them in Emacs' dired mode for review and editing.

Quick Start

Use the dired skill to open the files 'config.yaml' and 'main.py' in Emacs dired.

Frequently Asked Questions about dired

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

FAQPage Schema
How do I open files from an AI interaction directly in Emacs dired?

To open files from an interaction in Emacs dired, the skill uses emacsclient to evaluate an Emacs Lisp function. It automatically detects if the files share a directory or span multiple paths and invokes the corresponding dired buffer.

Can I use emacsclient to open multiple configuration files in a single dired buffer?

Yes, emacsclient can open multiple configuration files in a single dired buffer. The skill intelligently groups files from the most recent interaction, invoking the agent-skill-dired function to handle files across different directories.

Do I need a specific Emacs Lisp script to open files in dired from my IDE?

Yes, you need the agent-skill-dired.el script locatable relative to the skill file to open files in dired from your IDE. The skill executes this script via the emacsclient --eval command using the Bash tool.

What is the best way to manage recently generated files in Emacs dired mode?

The best way to manage recently generated files in Emacs dired mode is using this skill to contextually open files from the latest interaction. It avoids loading the entire conversation history and directly targets the relevant configuration files for review.

Why does the dired skill only open files from the most recent interaction and not the full history?

The dired skill only opens files from the most recent interaction to provide contextual file opening and prevent buffer clutter. This ensures you immediately review and edit only the configuration files relevant to your latest action.

Does the Emacs dired integration work with files located in different directories?

Yes, the Emacs dired integration works with files located in different directories. The skill intelligently determines whether files reside in the same directory or span multiple directories, invoking the agent-skill-dired Emacs Lisp function accordingly.