dired

dired:当用户调用 "/dired" 时使用,通过 emacsclient 在 Emacs dired 缓冲区中打开最近一次交互中的文件。

仓库最近推送
GitHub Stars
154
Forks
19
Issues / PRs
8

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "dired":https://skillpi.com/zh/skills/deepskill-3f8ecbe844047d39ee7f436e66039f8c47d0b444f2d36f2a33082abea01c3e52。安装前核对上游来源和版本:https://github.com/xenodium/emacs-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

dired:当用户调用 "/dired" 时使用,通过 emacsclient 在 Emacs dired 缓冲区中打开最近一次交互中的文件。

0 下载

介绍来源: third_party · xenodium · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

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

亮点

  • 触发词 '/dired' 明确且边界清晰,易于识别和调用
结构规范90/100

亮点

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

待提升项

  • 外部依赖未验证 原报告严重程度:重大

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

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

  • 关键异常未处理 原报告严重程度:重大

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

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

亮点

  • 使用标准 Bash 工具执行,符合平台规范
证据可验 (前四项均值)74/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。