a5c-ai/babysitter / library/specializations/desktop-development/skills/file-watcher-setup
file-watcher-setup
VerifiedSet up cross-platform file system watching with debouncing and efficient change detection
SKILL.md
View on GitHub---
name: file-watcher-setup
description: Set up cross-platform file system watching with debouncing and efficient change detection
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
tags: [files, watcher, cross-platform, filesystem, events]
graph:
domains: [domain:software-engineering]
specializations: [specialization:desktop-development]
skillAreas: [skill-area:desktop-ui-frameworks, skill-area:cross-platform-desktop]
roles: [role:desktop-developer, role:fullstack-engineer]
workflows: [workflow:feature-development, workflow:release-management]
---
# file-watcher-setup
Set up cross-platform file system watching with debouncing, efficient change detection, and proper resource management.
## Capabilities
- Watch files and directories
- Configure debouncing
- Handle recursive watching
- Filter file types
- Detect add/change/delete events
- Handle watcher errors
- Resource cleanup
## Input Schema
```json
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"watchLibrary": { "enum": ["chokidar", "native", "nsfw"] },
"debounceMs": { "type": "number", "default": 300 }
},
"required": ["projectPath"]
}
```
## Chokidar Example
```javascript
const chokidar = require('chokidar');
const watcher = chokidar.watch('/path/to/watch', {
ignored: /(^|[\/\\])\../,
persistent: true,
ignoreInitial: true,
awaitWriteFinish: {
stabilityThreshold: 300,
pollInterval: 100
}
});
watcher
.on('add', path => console.log(`Added: ${path}`))
.on('change', path => console.log(`Changed: ${path}`))
.on('unlink', path => console.log(`Removed: ${path}`));
```
## Related Skills
- `file-dialog-abstraction`
- `file-system-integration` process
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |