About file-watcher
file-watcher is a skill for monitoring files and directories for changes. It supports event callbacks, pattern filtering, and commands triggered by changes.
Key features
- 01Monitor files and directories
- 02React to change events
- 03Filter paths by pattern
- 04Run a command when changes occur
Use cases
- 01Monitor a source directory
- 02Watch only matching file types
- 03Run a build command after changes
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ aidotnet/ moyucode --skill file-watcherAfter installing, type/file-watcherin Claude Code to confirm it loaded.
Bundled filesscripts/file_watcher.py
Details
From the project READMEFile Watcher Tool
Description
Watch files and directories for changes with event callbacks, pattern filtering, and action triggers.
Trigger
/watchcommand- 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: ✅
Comments
Markdown supported