Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问许可证需确认审计通过

file-utils文件工具

Agent Skill

file-utils 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

19

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:file-utils(文件工具)
来源仓库:https://github.com/ivanvza/dspy-skills
仓库路径:skills/file-utils
安装命令:
npx skills add https://github.com/ivanvza/dspy-skills --skill file-utils
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ivanvza/dspy-skills --skill file-utils

简介

file-utils 用于查找、检索和筛选相关信息。

  • 适合根据关键词快速定位候选结果,支持多种宿主环境。
  • 通过 npx skills add 命令安装,需确认权限范围和维护状态。
  • 使用前应核实是否会触发联网、命令执行或文件读写操作。
  • file-utils 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

File Utilities

A toolkit for common file operations using Python standard library only.

When to Use This Skill

Activate this skill when the user needs to:

  • Find files matching certain criteria (pattern, size, date)
  • Count lines in files (with optional pattern matching)
  • Get detailed file information (size, type, encoding)
  • Compare two files (text or binary)

Available Scripts

Always run scripts with --help first to see all available options.

ScriptPurpose
find_files.pyFind files by pattern, size, or date
count_lines.pyCount lines in files
file_stats.pyGet detailed file information
compare_files.pyCompare two files

Decision Tree

Task → What do you need?
    │
    ├─ Find files matching criteria?
    │   └─ Use: find_files.py <path> --pattern "*.py"
    │
    ├─ Count lines (or matches)?
    │   └─ Use: count_lines.py <file>
    │
    ├─ Get file information?
    │   └─ Use: file_stats.py <file>
    │
    └─ Compare two files?
        └─ Use: compare_files.py <file1> <file2>

Quick Examples

Find files:

python scripts/find_files.py . --pattern "*.py"
python scripts/find_files.py /var/log --pattern "*.log" --size +1M
python scripts/find_files.py . --modified-within 7d

Count lines:

python scripts/count_lines.py myfile.txt
python scripts/count_lines.py src/ --pattern "*.py" --total
python scripts/count_lines.py code.py --match "TODO"

File statistics:

python scripts/file_stats.py document.txt
python scripts/file_stats.py image.png --checksum

Compare files:

python scripts/compare_files.py old.txt new.txt
python scripts/compare_files.py file1.bin file2.bin --binary
python scripts/compare_files.py config1.yaml config2.yaml --unified

Size Suffixes

For find_files.py --size:

  • B or no suffix: bytes
  • K: kilobytes (1024 bytes)
  • M: megabytes
  • G: gigabytes

Prefixes:

  • +1M: larger than 1 MB
  • -100K: smaller than 100 KB
  • 1M: exactly 1 MB (rarely used)

Time Formats

For find_files.py time filters:

  • 7d: 7 days
  • 24h: 24 hours
  • 30m: 30 minutes
  • 2w: 2 weeks

Common Use Cases

  1. Find large log files: find_files.py /var/log --pattern "*.log" --size +100M
  2. Count code lines: count_lines.py src/ --pattern "*.py" --total
  3. Find recently modified: find_files.py. --modified-within 1d
  4. Check file encoding: file_stats.py data.csv
  5. Compare configs: compare_files.py old.conf new.conf

Notes

  • All scripts use Python standard library only (no external dependencies)
  • Handles both text and binary files appropriately
  • Encoding detection is best-effort for text files
  • Symbolic links are followed by default

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.72%
按下载量换算26

Claude

30.66%
按下载量换算23

Cursor

17.76%
按下载量换算13

Gemini CLI

10.18%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills