Install any skill in seconds. Free to start, no credit card required.
Get Started Free →qdhenry/file-watcher
Chokidar-based file watcher that triggers `claude -p` on changes. Useful for automated AI reactions to file changes — design sync, code validation, config regeneration, etc.
Passed 21 of 21 test cases with the skill, and 9 of 21 without it.
and 17 more in the full report
13 fixed9 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
What is the default debounce delay in milliseconds used by the file watcher script when no debounce flag is specified?
| Checked | Without skill | With skill |
|---|---|---|
| The response states that the default debounce delay is 500 milliseconds. | Missed | Passed |
The instructions your model reads when the skill loads.
Sets up a file watcher using chokidar that monitors a path for changes and runs a Claude prompt against every changed file. The prompt supports a {{file}} placeholder that gets replaced with the changed file path.
# Watch src/ and analyze any changed file
node scripts/watch-files.mjs ./src 'Analyze {{file}} for issues'
# Watch only .tsx files with 1s debounce
node scripts/watch-files.mjs ./src 'Review {{file}} for React best practices' --glob '*.tsx' --debounce 1000
# Via package.json script (pass args after --)
bun run watch:files -- ./src 'Check {{file}}'
node scripts/watch-files.mjs <path> <prompt> [--glob '<pattern>'] [--debounce <ms>]
| Arg | Required | Description |
|---|---|---|
<path> | Yes | File or directory to watch |
<prompt> | Yes | Claude prompt. Use {{file}} for the changed file path |
--glob | No | Glob filter (e.g. *.tsx, *.css) |
--debounce | No | Debounce delay in milliseconds (default: 500) |
add and change events{{file}} placeholder in the prompt is replaced with the actual file pathclaude -p '<prompt>' --print is executed via child_process.execSynctest cases passed, vs 9 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.