Agent Skills: File Watcher Tool

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

UncategorizedID: aidotnet/moyucode/file-watcher

Install this agent skill to your local

pnpm dlx add-skill https://github.com/AIDotNet/MoYuCode/tree/HEAD/skills/tools/file-watcher

Skill Files

Browse the full folder contents for file-watcher.

Download Skill

Loading file tree…

skills/tools/file-watcher/SKILL.md

Skill Metadata

Name
file-watcher
Description
监视文件和目录变化,支持事件回调和过滤。

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: ✅