Filesystem Management Zh logo

Filesystem Management Zh

Community
L-LesterYu
filesystem-management-zh

高级文件系统操作——文件列表、搜索、批量处理和目录分析,专为 AI 智能体优化

Overview

PublisherL-LesterYu
RepositoryOpenClaw-hot-skills-zh
Skill namefilesystem-management-zh
Stars
57
Forks
9
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by L-LesterYu on GitHub. Read the source before you install it.

Installation

Install the Filesystem Management Zh AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/filesystem-management-zh
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh.git /tmp/OpenClaw-hot-skills-zh
mkdir -p .claude/skills
cp -r /tmp/OpenClaw-hot-skills-zh/skills/filesystem-management-zh .claude/skills/filesystem-management-zh
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Filesystem Management Zh in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Filesystem Management Zh on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Filesystem Management Zh is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

📁 文件系统管理

面向 AI 智能体的高级文件系统操作工具。提供全面的文件和目录操作能力,包括智能过滤、搜索和批量处理功能。

功能特性

📋 智能文件列表

  • 高级过滤 — 按文件类型、模式、大小和日期过滤
  • 递归遍历 — 深度目录扫描,支持深度控制
  • 丰富格式 — 表格、树形和 JSON 输出格式
  • 排序选项 — 按名称、大小、日期或类型排序

🔍 强大搜索

  • 模式匹配 — 支持 Glob 模式和正则表达式
  • 内容搜索 — 文件内全文搜索
  • 多条件组合 — 同时按文件名和内容搜索
  • 上下文显示 — 显示匹配行及其上下文

🔄 批量操作

  • 安全复制 — 基于模式的文件复制,带验证机制
  • 预览模式 — 执行前预览操作结果
  • 进度追踪 — 实时操作进度显示
  • 错误处理 — 优雅的故障恢复机制

🌳 目录分析

  • 树形可视化 — ASCII 树形结构展示
  • 统计信息 — 文件计数、大小分布、类型分析
  • 空间分析 — 识别大文件和大目录
  • 性能指标 — 操作计时和优化建议

快速开始

bash
# 带过滤的文件列表
filesystem list --path ./src --recursive --filter "*.js"

# 搜索文件内容
filesystem search --pattern "TODO" --path ./src --content

# 安全批量复制
filesystem copy --pattern "*.log" --to ./backup/ --dry-run

# 显示目录树
filesystem tree --path ./ --depth 3

# 分析目录结构
filesystem analyze --path ./logs --stats

命令参考

filesystem list

带高级过滤选项的文件和目录列表。

参数说明:

  • --path, -p <目录> — 目标目录(默认:当前目录)
  • --recursive, -r — 包含子目录
  • --filter, -f <模式> — 按模式过滤文件
  • --details, -d — 显示详细信息
  • --sort, -s <字段> — 排序方式:name|size|date
  • --format <类型> — 输出格式:table|json|list

filesystem search

按文件名模式或内容搜索文件。

参数说明:

  • --pattern <模式> — 搜索模式(glob 或正则表达式)
  • --path, -p <目录> — 搜索目录
  • --content, -c — 搜索文件内容
  • --context <行数> — 显示上下文行数
  • --include <模式> — 包含的文件模式
  • --exclude <模式> — 排除的文件模式

filesystem copy

带模式匹配和安全检查的批量文件复制。

参数说明:

  • --pattern <glob> — 源文件模式
  • --to <目录> — 目标目录
  • --dry-run — 仅预览,不执行
  • --overwrite — 允许覆盖文件
  • --preserve — 保留时间戳和权限

filesystem tree

以树形结构显示目录。

参数说明:

  • --path, -p <目录> — 根目录
  • --depth, -d <数字> — 最大深度
  • --dirs-only — 仅显示目录
  • --size — 显示文件大小
  • --no-color — 禁用彩色输出

filesystem analyze

分析目录结构并生成统计信息。

参数说明:

  • --path, -p <目录> — 目标目录
  • --stats — 显示详细统计
  • --types — 分析文件类型
  • --sizes — 显示大小分布
  • --largest <数量> — 显示最大的 N 个文件

安装

bash
# 通过 ClawdHub 安装
clawdhub install filesystem

# 或手动克隆
cd ~/.openclaw/skills
git clone <filesystem-skill-repo>

# 设置可执行权限
chmod +x filesystem/filesystem

配置说明

通过 config.json 自定义行为:

json
{
  "defaultPath": "./",
  "maxDepth": 10,
  "defaultFilters": ["*"],
  "excludePatterns": ["node_modules", ".git", ".DS_Store"],
  "outputFormat": "table",
  "dateFormat": "YYYY-MM-DD HH:mm:ss",
  "sizeFormat": "human",
  "colorOutput": true
}

使用示例

开发工作流

bash
# 查找 src 目录下所有 JavaScript 文件
filesystem list --path ./src --recursive --filter "*.js" --details

# 搜索 TODO 注释
filesystem search --pattern "TODO|FIXME" --path ./src --content --context 2

# 复制所有日志到备份目录
filesystem copy --pattern "*.log" --to ./backup/logs/ --preserve

# 分析项目结构
filesystem tree --path ./ --depth 2 --size

系统管理

bash
# 查找大文件
filesystem analyze --path /var/log --sizes --largest 10

# 列出最近修改的文件
filesystem list --path /tmp --sort date --details

# 清理临时文件
filesystem list --path /tmp --filter "*.tmp" --older-than 7d

安全特性

  • 路径验证 — 防止目录遍历攻击
  • 权限检查 — 操作前验证读写权限
  • 预览模式 — 预览破坏性操作
  • 备份提示 — 覆盖前建议备份
  • 错误恢复 — 优雅处理权限错误

集成

与其他工具无缝协作:

  • 安全技能 — 验证所有文件系统操作
  • Git 操作 — 尊重 .gitignore 规则
  • 备份工具 — 集成备份工作流
  • 日志分析 — 完美支持日志文件管理

许可证

MIT 许可证 — 个人和商业使用均免费。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Filesystem Management Zh AI skill do?

高级文件系统操作——文件列表、搜索、批量处理和目录分析,专为 AI 智能体优化

Why use Filesystem Management Zh on TypingMind?

Because you install it once and use it with any model. Filesystem Management Zh is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Filesystem Management Zh in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/filesystem-management-zh. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Filesystem Management Zh?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Filesystem Management Zh?

As many as you like. As long as a model supports skills, you can use Filesystem Management Zh with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Filesystem Management Zh AI skill free?

Yes. It is published on GitHub by L-LesterYu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇