← 返回 Skills 市场
xujiangdong

统计指定目录的文件类型和数量,生成Markdown格式报表

作者 xujiangdong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
257
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install file-report-skill-xjd
功能描述
统计指定目录下文件类型及数量,生成包含路径和统计时间的Markdown格式报表,不包含子目录文件。
使用说明 (SKILL.md)

\r \r \r \r # 文件统计报表技能\r \r \r \r 当用户需要统计一个文件夹里的文件情况时,请按以下流程操作:\r \r \r \r ## 执行步骤\r \r 1. **获取目标路径**:从用户的对话中提取出要统计的目录路径。如果用户没有提供,请主动询问。\r \r 2. **统计文件信息**:\r \r   * 读取目标目录下的所有文件(**注意**:不包含子目录,如需要递归统计请说明)。\r \r   * 根据文件的扩展名(如 .txt, .jpg, .pdf)进行分类计数。\r \r   * 对于没有扩展名的文件,归类为“无扩展名”。\r \r 3. **生成报表**:\r \r   * 创建一个Markdown格式的报表。\r \r   * 报表内容应包含统计的目录路径、统计时间、一个包含“文件类型”和“数量”的表格,以及文件总数。\r \r 4. **输出结果**:将生成的Markdown报表内容直接通过对话返回给用户。\r \r \r \r ## 使用示例\r \r **用户**: 请帮我统计一下 /home/user/documents 文件夹里的文件情况。\r \r \r \r **你**: (执行上述步骤后返回) 好的,已为您统计 /home/user/documents 目录下的文件:\r \r | 文件类型 | 数量 |\r \r |----------|------|\r \r | .txt | 15 |\r \r | .pdf | 8 |\r \r | .jpg | 23 |\r \r | 无扩展名 | 2 |\r \r \r \r **总文件数**:48份\r \r

安全使用建议
This skill appears coherent: it only needs to read a user-specified directory and return a Markdown report. Before installing or running it, consider: 1) Only provide directory paths you are comfortable sharing (don’t point it at sensitive system or credential directories). 2) The SKILL.md requests filesystem.write permission though it does not describe writing files — if you prefer least privilege, ask for write permission to be removed or clarified. 3) Confirm whether you want recursion (the skill is non-recursive by default). 4) Autonomous invocation is allowed by default; if you want manual control, disable autonomous runs in the agent settings.
功能分析
Type: OpenClaw Skill Name: file-report-skill-xjd Version: 1.0.0 The file-report-skill is a standard utility designed to analyze a directory, count file types by extension, and generate a Markdown report for the user. The requested permissions (filesystem.read and filesystem.write) are consistent with its stated purpose, and the SKILL.md instructions follow a logical, non-malicious workflow without any evidence of data exfiltration or unauthorized command execution.
能力评估
Purpose & Capability
Name/description (count file types in a directory and generate a Markdown report) aligns with the instructions which only read a directory, classify files by extension, and produce a report. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md explicitly tells the agent to read the target directory (non-recursively), count by extension, and return a Markdown report. This stays within the stated purpose. Minor note: the file declares both filesystem.read and filesystem.write though the instructions only need read and returning content via chat — write permission may be unnecessary unless the agent is intended to save a local file.
Install Mechanism
No install spec and no code files (instruction-only). This is low-risk because nothing is downloaded or written to disk by an installer.
Credentials
No environment variables, credentials, or config paths are requested. The required permissions (filesystem.read and filesystem.write) are limited to filesystem access and are proportionate to the task, aside from the unnecessary write permission noted above.
Persistence & Privilege
always is false and there are no indications the skill modifies other skills or system settings. The skill can be invoked autonomously by the agent (default behavior), which is normal; this alone is not a security flag given the skill's limited scope.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install file-report-skill-xjd
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /file-report-skill-xjd 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
file-report-skill-xjd v1.0.0 - Initial release. - Provides file statistics for a specified directory: counts files by extension, identifies files without extensions, and generates a Markdown report. - Supports triggers such as “统计文件”, “文件报表”, and “目录分析”. - Requires filesystem.read and filesystem.write permissions. - Report includes directory path, timestamp, detailed table by file type, and total count.
元数据
Slug file-report-skill-xjd
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

统计指定目录的文件类型和数量,生成Markdown格式报表 是什么?

统计指定目录下文件类型及数量,生成包含路径和统计时间的Markdown格式报表,不包含子目录文件。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 257 次。

如何安装 统计指定目录的文件类型和数量,生成Markdown格式报表?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install file-report-skill-xjd」即可一键安装,无需额外配置。

统计指定目录的文件类型和数量,生成Markdown格式报表 是免费的吗?

是的,统计指定目录的文件类型和数量,生成Markdown格式报表 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

统计指定目录的文件类型和数量,生成Markdown格式报表 支持哪些平台?

统计指定目录的文件类型和数量,生成Markdown格式报表 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 统计指定目录的文件类型和数量,生成Markdown格式报表?

由 xujiangdong(@xujiangdong)开发并维护,当前版本 v1.0.0。

💬 留言讨论