👁️

File Watcher Setup

Verified

by Community

Configures file watching tools like inotifywait, fswatch, nodemon, and chokidar for automatically triggering actions when files change. Covers debouncing, glob patterns, ignore rules, and integration with build and test workflows.

filewatcherautomationnodemonchokidardevelopment

File Watcher Setup

Set up file watchers to automatically trigger builds, tests, or other tasks when files change.

Usage

Describe what should happen when files change and this skill will configure the appropriate watcher.

Examples

  • "Watch my TypeScript files and auto-compile on changes"
  • "Set up nodemon to restart my server when source files change"
  • "Trigger tests automatically when test or source files are modified"

Guidelines

  • Ignore build output directories to prevent infinite loops
  • Use debouncing to batch rapid file changes
  • Configure glob patterns to watch only relevant files
  • Set appropriate polling intervals for network file systems
  • Log watcher activity for debugging unexpected behavior