本文へ移動
cccskills
無料GitHub で公開

batch-file-ops

Batch file operations (delete, move, copy, list) with glob patterns. CLI tool for efficient filesystem operations. Zero dependencies.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

<img src="../banner.png" width="100%" alt="batch-file-ops banner">

English — Official English version of batch-file-ops.

batch_file_ops - Batch File Operations (English)

CLI tool for efficient batch operations on files using glob patterns. Supports: delete, move, copy, list. Zero dependencies (Python stdlib only).


Actions

ActionDescription
deleteDelete files matching a pattern
moveMove files matching a pattern
copyCopy files matching a pattern
listList files matching a pattern

CLI Usage

python batch_file_ops.py <action> <source> [<target>] --pattern "<glob>" [--dry-run] [--recursive]

Arguments

ArgumentDescription
actiondelete, move, copy, or list
sourceSource directory
targetTarget directory (only for move and copy)
--pattern, -pGlob pattern (e.g., *.py, TOOLS_*.py) - Default: *
--dry-run, -nPreview only, no changes
--recursive, -rSearch recursively in subdirectories

Examples & Usage

# List all Python files in a directory
python batch_file_ops.py list /path/to/directory --pattern "*.py"

# Delete all .tmp files (dry-run first!)
python batch_file_ops.py delete /path/to/directory --pattern "*.tmp" --dry-run
python batch_file_ops.py delete /path/to/directory --pattern "*.tmp"

# Move files
python batch_file_ops.py move /source /target --pattern "*.txt"

# Copy files (recursive)
python batch_file_ops.py copy /source /target --pattern "*.md" --recursive

# Pattern examples
python batch_file_ops.py delete /path --pattern "TOOLS_*.py"
python batch_file_ops.py list /path --pattern "backup_202?-*"

Notes

  • Dry-run first: Always use --dry-run first with delete and move
  • Glob patterns: Uses Python pathlib.glob() / pathlib.rglob()
  • Windows-compatible: Automatic UTF-8 output encoding
  • Files only: Directories are skipped (only files are processed)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Akademisches Studien- und Fristenmanagement mit Quellenprüfung, Datenschutz und realistischer Handlungsplanung.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills82026年10月12日 更新

Aktives Lernen, Erarbeitung von Fachinhalten und strukturierte Erstellung von Synthesen.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills82026年10月12日 更新

Prüfungsvorbereitung, Selbsttests, Probeklausuren und systematische Fehleranalyse.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills82026年10月12日 更新

Terapia de Aceptación y Compromiso (ACT) según Steven Hayes: modelo Hexaflex con los seis procesos nucleares de la flexibilidad psicológica.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills82026年10月12日 更新

Acceptance & Commitment Therapy (ACT) nach Steven Hayes: Hexaflex-Modell mit den sechs Kernprozessen psychischer Flexibilität.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills82026年10月12日 更新

Acceptance & Commitment Therapy (ACT) according to Steven Hayes: Hexaflex model with the six core processes of psychological flexibility.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills82026年10月12日 更新

ellmos-ai のスキルをすべて見る

このスキルの問題を報告する