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

v1.0.0

统计指定目录下文件类型及数量,生成包含路径和统计时间的Markdown格式报表,不包含子目录文件。

0· 256·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for xujiangdong/file-report-skill-xjd.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "统计指定目录的文件类型和数量,生成Markdown格式报表" (xujiangdong/file-report-skill-xjd) from ClawHub.
Skill page: https://clawhub.ai/xujiangdong/file-report-skill-xjd
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install file-report-skill-xjd

ClawHub CLI

Package manager switcher

npx clawhub@latest install file-report-skill-xjd
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk97bf79kbw14f0rkmwnd0jtd5d82v3k7
256downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

# 文件统计报表技能

当用户需要统计一个文件夹里的文件情况时,请按以下流程操作:

## 执行步骤

1. **获取目标路径**:从用户的对话中提取出要统计的目录路径。如果用户没有提供,请主动询问。

2. **统计文件信息**:

  * 读取目标目录下的所有文件(**注意**:不包含子目录,如需要递归统计请说明)。

  * 根据文件的扩展名(如 .txt, .jpg, .pdf)进行分类计数。

  * 对于没有扩展名的文件,归类为“无扩展名”。

3. **生成报表**:

  * 创建一个Markdown格式的报表。

  * 报表内容应包含统计的目录路径、统计时间、一个包含“文件类型”和“数量”的表格,以及文件总数。

4. **输出结果**:将生成的Markdown报表内容直接通过对话返回给用户。

## 使用示例

**用户**: 请帮我统计一下 /home/user/documents 文件夹里的文件情况。

**你**: (执行上述步骤后返回) 好的,已为您统计 /home/user/documents 目录下的文件:

| 文件类型 | 数量 |

|----------|------|

| .txt | 15 |

| .pdf | 8 |

| .jpg | 23 |

| 无扩展名 | 2 |

**总文件数**:48份

Comments

Loading comments...