# File Watcher

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

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

- Page: https://ss33.ai/skills/aidotnet/file-watcher-21817053222
- Publisher: aidotnet
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Developer docs & tooling](https://ss33.ai/skills/category/software-development-t44z8z/developer-docs-and-tooling-nich6w)
- License: MIT
- Source: https://github.com/aidotnet/moyucode/blob/9fa0412ff1d57ca3216835637773ac975cae1009/skills/tools/file-watcher/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/aidotnet/file-watcher-21817053222

# 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

```bash
# 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: ✅
