← Back to Skills Marketplace
xujiangdong

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

by xujiangdong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
257
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install file-report-skill-xjd
Description
统计指定目录下文件类型及数量,生成包含路径和统计时间的Markdown格式报表,不包含子目录文件。
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install file-report-skill-xjd
  3. After installation, invoke the skill by name or use /file-report-skill-xjd
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug file-report-skill-xjd
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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

统计指定目录下文件类型及数量,生成包含路径和统计时间的Markdown格式报表,不包含子目录文件。 It is an AI Agent Skill for Claude Code / OpenClaw, with 257 downloads so far.

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

Run "/install file-report-skill-xjd" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

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

Yes, 统计指定目录的文件类型和数量,生成Markdown格式报表 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

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

统计指定目录的文件类型和数量,生成Markdown格式报表 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

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

It is built and maintained by xujiangdong (@xujiangdong); the current version is v1.0.0.

💬 Comments