Claude-skill-registry file-watcher

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

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/file-watcher" ~/.claude/skills/majiayu000-claude-skill-registry-file-watcher && rm -rf "$T"
manifest: skills/data/file-watcher/SKILL.md
source content

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