file-watcher

star 80

监视文件和目录变化,支持事件回调和过滤。

AIDotNet By AIDotNet schedule Updated 1/27/2026

name: file-watcher description: 监视文件和目录变化,支持事件回调和过滤。 metadata: short-description: 监视文件变化 source: repository: https://github.com/gorakhargosh/watchdog license: Apache-2.0

File Watcher Tool

Description

Watch files and directories for changes with event callbacks, pattern filtering, and action triggers.

Trigger

  • /watch command
  • User needs to monitor files
  • User wants change notifications

Usage

# Watch directory
python scripts/file_watcher.py ./src/

# Watch with pattern filter
python scripts/file_watcher.py ./src/ --pattern "*.py"

# Watch and run command on change
python scripts/file_watcher.py ./src/ --exec "npm run build"

# Watch specific file
python scripts/file_watcher.py config.json

Tags

watch, files, monitor, events, automation

Compatibility

  • Codex: ✅
  • Claude Code: ✅
Install via CLI
npx skills add https://github.com/AIDotNet/MoYuCode --skill file-watcher
Repository Details
star Stars 80
call_split Forks 15
navigation Branch main
article Path SKILL.md
More from Creator