跳到正文
TakoAPI
返回技能列表

filesystem

由 amaofx 提供

Search & Research
6.6k下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Advanced filesystem operations for listing files, searching content, batch processing, and directory analysis.

描述

该技能的功能

Provides directory listing, file search, batch operations, and disk usage analysis using Unix shell commands. Covers standard tools (find, grep) and faster alternatives (fd, ripgrep). Includes patterns for recursive search, file type filtering, and safe batch delete workflows.

Consolidates common filesystem tasks into ready-to-run command patterns, including fd and ripgrep alternatives that outperform find and grep on large directories.

何时使用

  • Finding all files of a specific type across a large project
  • Searching source code for a keyword or regex pattern
  • Cleaning up old log or temp files by age or size
  • Analyzing which directories or file types consume the most disk space
  • Batch renaming or moving files that match a naming pattern

示例工作流

输入

User asks: Find all .log files older than 30 days and delete them

智能体
  1. 1

    List matching files: find . -name '*.log' -mtime +30

  2. 2

    Review the list to confirm targets

  3. 3

    Run deletion: find . -name '*.log' -mtime +30 -delete

  4. 4

    Verify no matching files remain

输出

All .log files older than 30 days removed, with a pre-delete review step to avoid accidental data loss

安装

clawhub install amaofx/filesystem

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接