技能介绍
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
做什么
高级文件系统操作 - Clawdbot 的列表、搜索、批处理和目录分析
何时用
官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。
代理如何加载
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:📁 Filesystem Management、Features、📋 **Smart File Listing**、🔍 **Powerful Search**、🔄 **Batch Operations**、🌳 **Directory Analysis**。
文件分析
文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。
官方 description(原文)
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
📁 Filesystem ManagementFeatures📋 **Smart File Listing**🔍 **Powerful Search**🔄 **Batch Operations**🌳 **Directory Analysis**Quick StartList files with filteringSearch for contentBatch copy with safetyShow directory treeAnalyze directory structure
来源分类:ClawHub Batch Processing
来源与网址
namefilesystem
description- Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
- 发现技能客户端向 Agent 提供名称与描述目录。
- 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
- 按需加载按步骤读取参考文档、使用脚本与素材。
具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
交给 Agent 安装
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「filesystem」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-55407ba7c656d8c8-Filesystem.html
请存为 .cursor/skills/filesystem/SKILL.md 或 .claude/skills/filesystem/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。
ClawHub ↗
阅读排版
---
name: filesystem
description: Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
homepage: https://github.com/gtrusler/clawdbot-filesystem
metadata: {"clawdbot":{"emoji":"📁","requires":{"bins":["node"]}}}
---
# 📁 Filesystem Management
Advanced filesystem operations for AI agents. Comprehensive file and directory operations with intelligent filtering, searching, and batch processing capabilities.
## Features
### 📋 **Smart File Listing**
- **Advanced Filtering** - Filter by file types, patterns, size, and date
- **Recursive Traversal** - Deep directory scanning with depth control
- **Rich Formatting** - Table, tree, and JSON output formats
- **Sort Options** - By name, size, date, or type
### 🔍 **Powerful Search**
- **Pattern Matching** - Glob patterns and regex support
- **Content Search** - Full-text search within files
- **Multi-criteria** - Combine filename and content searches
- **Context Display** - Show matching lines with context
### 🔄 **Batch Operations**
- **Safe Copying** - Pattern-based file copying with validation
- **Dry Run Mode** - Preview operations before execution
- **Progress Tracking** - Real-time operation progress
- **Error Handling** - Graceful failure recovery
### 🌳 **Directory Analysis**
- **Tree Visualization** - ASCII tree structure display
- **Statistics** - File counts, size distribution, type analysis
- **Space Analysis** - Identify large files and directories
- **Performance Metrics** - Operation timing and optimization
## Quick Start
```bash
# List files with filtering
filesystem list --path ./src --recursive --filter "*.js"
# Search for content
filesystem search --pattern "TODO" --path ./src --content
# Batch copy with safety
filesystem copy --pattern "*.log" --to ./backup/ --dry-run
# Show directory tree
filesystem tree --path ./ --depth 3
# Analyze directory structure
filesystem analyze --path ./logs --stats
```
## Command Reference
### `filesystem list`
Advanced file and directory listing with filtering options.
**Options:**
- `--path, -p ` - Target directory (default: current)
- `--recursive, -r` - Include subdirectories
- `--filter, -f ` - Filter files by pattern
- `--details, -d` - Show detailed information
- `--sort, -s ` - Sort by name|size|date
- `--format ` - Output format: table|json|list
### `filesystem search`
Search files by name patterns or content.
**Options:**
- `--pattern ` - Search pattern (glob or regex)
- `--path, -p ` - Search directory
- `--content, -c` - Search file contents
- `--context ` - Show context lines
- `--include ` - Include file patterns
- `--exclude ` - Exclude file patterns
### `filesystem copy`
Batch copy files with pattern matching and safety checks.
**Options:**
- `--pattern ` - Source file pattern
- `--to ` - Destination directory
- `--dry-run` - Preview without executing
- `--overwrite` - Allow file overwrites
- `--preserve` - Preserve timestamps and permissions
### `filesystem tree`
Display directory structure as a tree.
**Options:**
- `--path, -p ` - Root directory
- `--depth, -d ` - Maximum depth
- `--dirs-only` - Show directories only
- `--size` - Include file sizes
- `--no-color` - Disable colored output
### `filesystem analyze`
Analyze directory structure and generate statistics.
**Options:**
- `--path, -p ` - Target directory
- `--stats` - Show detailed statistics
- `--types` - Analyze file types
- `--sizes` - Show size distribution
- `--largest ` - Show N largest files
## Installation
```bash
# Clone or install the skill
cd ~/.clawdbot/skills
git clone
# Or install via ClawdHub
clawdhub install filesystem
# Make executable
chmod +x filesystem/filesystem
```
## Configuration
Customize behavior via `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
}
```
## Examples
### Development Workflow
```bash
# Find all JavaScript files in src
filesystem list --path ./src --recursive --filter "*.js" --details
# Search for TODO comments
filesystem search --pattern "TODO|FIXME" --path ./src --content --context 2
# Copy all logs to backup
filesystem copy --pattern "*.log" --to ./backup/logs/ --preserve
# Analyze project structure
filesystem tree --path ./ --depth 2 --size
```
### System Administration
```bash
# Find large files
filesystem analyze --path /var/log --sizes --largest 10
# List recent files
filesystem list --path /tmp --sort date --details
# Clean old temp files
filesystem list --path /tmp --filter "*.tmp" --older-than 7d
```
## Safety Features
- **Path Validation** - Prevents directory traversal attacks
- **Permission Checks** - Verifies read/write access before operations
- **Dry Run Mode** - Preview destructive operations
- **Backup Prompts** - Suggests backups before overwrites
- **Error Recovery** - Graceful handling of permission errors
## Integration
Works seamlessly with other Clawdbot tools:
- **Security Skill** - Validates all filesystem operations
- **Git Operations** - Respects .gitignore patterns
- **Backup Tools** - Integrates with backup workflows
- **Log Analysis** - Perfect for log file management
## Updates & Community
**Stay informed about the latest Clawdbot skills and filesystem tools:**
- 🐦 **Follow [@LexpertAI](https://x.com/LexpertAI)** on X for skill updates and releases
- 🛠️ **New filesystem features** and enhancements
- 📋 **Best practices** for file management automation
- 💡 **Tips and tricks** for productivity workflows
Get early access to new skills and improvements by following @LexpertAI for:
- **Skill announcements** and new releases
- **Performance optimizations** and feature updates
- **Integration examples** and workflow automation
- **Community discussions** on productivity tools
## License
MIT License - Free for personal and commercial use.
---
**Remember**: Great filesystem management starts with the right tools. This skill provides comprehensive operations while maintaining safety and performance.
相关技能
其他
掌握学习、错误和校正,以便不断改进。 使用时间:(1) 命令或操作意外失败, (2) 用户更正 Claude ('No, that's wrong...', 'Actually...'), (3)用户请求具备不存在的能力,(4)外部API或工具失败,(5)克洛德意识到其知识已经过…
其他
自我反省+自我批评+自我学习+自我组织记忆. 特工评估自己的工作,发现错误,并永久改进. 当 (1) 命令,工具, API, 或操作失败时使用; (2) 用户纠正或拒绝您的工作; (3) 您意识到您的知识已经过时或不正确; (4) 您发现更好的方法; (5) 用户明确安装或引用当…
其他
将AI代理人从任务跟踪者转变为预先预测需要并不断改进的主动伙伴. 现在WAL协议,工作缓冲,自主克龙, 和战斗测试模式。 哈尔·斯塔克的一部分
其他
多搜索引擎集成16个引擎(7个CN+9 Global). 支持高级搜索操作员,时间过滤器,站点搜索,隐私引擎,和WolframAlpha知识查询. 不需要 API 密钥 .