Agent skill
file-watcher
监视文件和目录变化,支持事件回调和过滤。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/file-watcher
Metadata
Additional technical details for this skill
- short description
- 监视文件变化
SKILL.md
File 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: ✅
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?