微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

智能文件管理 · 安全批量操作

Filesystem Management · v1.0.2
专业技能 安全 A 级 作者 gtrusler 公开目录收录
20.7k 下载 72 安装 100.6k 收藏 104 浏览

简介

Clawdbot 专用文件系统管理工具,支持智能过滤、批量操作与安全校验,适合开发运维场景。

原始描述

Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot

通过你的 Agent 添加

安装目录:filesystem/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/filesystem-management/
Codex CLI~/.codex/skills/filesystem-management/
DeepSeek Harness~/.agents/skills/filesystem-management/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

概述

clawdbot-filesystem 是一款面向 Clawdbot 平台的进阶文件系统操作技能,由社区开发者 gtrusler 创建并以 MIT 许可证发布。该技能旨在为 AI 代理提供全面的文件和目录操作能力,包括智能文件列表、强大的内容搜索、安全的批量处理以及深入的目录结构分析。

核心用法

技能提供五大核心命令:filesystem list 支持递归遍历和模式过滤的高级文件列表;filesystem search 支持基于 glob 模式和正则表达式的文件名与内容全文搜索;filesystem copy 提供带有安全校验和试运行模式的批量文件复制;filesystem tree 以 ASCII 树形结构直观展示目录层次;filesystem analyze 生成文件统计、类型分布和空间占用分析报告。所有命令均以 CLI 方式运行,输出格式可在表格、JSON 和列表之间灵活切换。

显著优点

该技能在设计层面展现了良好的安全意识,内置路径验证、权限检查、试运行模式和备份提示等多重防护机制。配置文件可自定义排除模式(如 node_modules、.git),并支持受保护路径设置,有效防止误操作。代码层面零依赖,不存在供应链攻击面,静态分析未发现任何危险函数调用、硬编码密钥或隐蔽注入指令。同时,丰富的排序选项和上下文显示功能为日常开发和系统管理提供了便捷的文件操作体验。

潜在缺点与局限性

根据安全认证报告,该技能当前存在一个致命缺陷:分发包中缺失核心可执行文件 filesystem,导致所有声明的命令行功能均无法实际运行。该技能实质上是完整的文档和配置骨架,缺乏功能性实现。此外,技能文档中包含一定篇幅的第三方营销推广内容(引导关注 X 账号 @LexpertAI),与技术功能无关,降低了文档的专业性。技能设计目标为 Clawdbot 生态,在 Claude Code 环境中只能作为参考文档使用,无法直接调用其功能。

适合的目标群体

该技能的设计理念适合各类需要高效文件管理能力的开发者和系统管理员,尤其适用于 Clawdbot 平台用户。由于当前缺少功能性实现,更适合作为参考项目或被拥有开发能力的用户 fork 后进行二次开发。对于需要快速集成文件操作能力的 AI 代理项目,其完备的安全设计和清晰的命令接口具有架构参考价值。

使用风险提示

主要风险来源于功能的不可用性——当前状态无法实际运行任何操作,若在自动化工作流中依赖此技能可能导致流程失败。作为 T3 个人开发者项目(来源可信度低,信誉无法验证),用户应自行审查源码并评估开发者长期维护意愿。文档中的营销链接引入了对第三方社交平台的外部引用,在严格隔离环境中使用时应予注意。尽管安全评级为 A 且无已知技术安全威胁,但缺失核心可执行文件意味着任何实际部署都需要额外开发投入,存在时间成本和功能不确定性的潜在风险。

技能正文


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

# 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 <dir> - Target directory (default: current)
  • --recursive, -r - Include subdirectories
  • --filter, -f <pattern> - Filter files by pattern
  • --details, -d - Show detailed information
  • --sort, -s <field> - Sort by name|size|date
  • --format <type> - Output format: table|json|list

filesystem search

Search files by name patterns or content.

Options:

  • --pattern <pattern> - Search pattern (glob or regex)
  • --path, -p <dir> - Search directory
  • --content, -c - Search file contents
  • --context <lines> - Show context lines
  • --include <pattern> - Include file patterns
  • --exclude <pattern> - Exclude file patterns

filesystem copy

Batch copy files with pattern matching and safety checks.

Options:

  • --pattern <glob> - Source file pattern
  • --to <dir> - 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 <dir> - Root directory
  • --depth, -d <num> - 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 <dir> - Target directory
  • --stats - Show detailed statistics
  • --types - Analyze file types
  • --sizes - Show size distribution
  • --largest <num> - Show N largest files

Installation

# Clone or install the skill
cd ~/.clawdbot/skills
git clone <filesystem-skill-repo>

# Or install via ClawdHub
clawdhub install filesystem

# Make executable
chmod +x filesystem/filesystem

Configuration

Customize behavior via config.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

# 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

# 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 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.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

filesystembatch-processingfile-searchcliautomationlog-managementdevops

同类 Skill