dired

dired: used when the user invokes "/dired" to open the file from the most recent interaction in an Emacs dired buffer via emacsclient.

Last repository push
GitHub Stars
154
Forks
19
Issues / PRs
8

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dired" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3f8ecbe844047d39ee7f436e66039f8c47d0b444f2d36f2a33082abea01c3e52. Verify the upstream source and version against https://github.com/xenodium/emacs-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

dired: used when the user invokes "/dired" to open the file from the most recent interaction in an Emacs dired buffer via emacsclient.

0 Downloads

Introduction source: third_party · xenodium · 0.0.1 Reference

SkillPi interpretation

Tasks
This skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: dired
description: 'This skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient.'
tools: Bash
disable-model-invocation: true

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.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Highlights

  • 为 Emacs 用户提供高效文件管理集成,满足特定技术工作流需求
Trigger Precision85/100

Highlights

  • 触发词 '/dired' 明确且边界清晰,易于识别和调用
Structure and Standards90/100

Highlights

  • 文档结构清晰,包含策略说明、规则定义和完整代码示例
  • frontmatter 完整,符合 Skill 规范要求
Execution Reliability55/100

Areas to improve

  • 外部依赖未验证 Reported severity: Major

    依赖 agent-skill-dired.el 文件存在且可加载,但未提供验证机制或错误处理

    Recommendation: 在执行前检查文件是否存在,若缺失应提示用户并给出安装指引

  • 关键异常未处理 Reported severity: Major

    未处理 emacsclient 未安装、权限不足或执行失败等场景

    Recommendation: 增加错误捕获和用户友好提示,确保执行失败时能提供有效反馈

Highlights

  • 使用标准 Bash 工具执行,符合平台规范
Evidence Verifiability (mean of the first four)74/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.