mcpField
F
file-watcher

file-watcher

github.com/aidotnetDevelopment8554 installsUpdated 40w ago
Repository

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

  1. 01Monitor files and directories
  2. 02React to change events
  3. 03Filter paths by pattern
  4. 04Run a command when changes occur

Use cases

  1. 01Monitor a source directory
  2. 02Watch only matching file types
  3. 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-watcher

After installing, type/file-watcherin Claude Code to confirm it loaded.

Bundled filesscripts/file_watcher.py

Details

From the project README

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

Comments

Markdown supported