agentsclimarketplace

File watcher setup

Skill a5c-ai/babysitter/library/specializations/desktop-development/skills/file-watcher-setup

Set up cross-platform file system watching with debouncing and efficient change detectionFrom its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill file-watcher-setup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.7 KB, 310 tokens by cl100k_base, as published. Nobody here has run it

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

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "watchLibrary": { "enum": ["chokidar", "native", "nsfw"] },
    "debounceMs": { "type": "number", "default": 300 }
  },
  "required": ["projectPath"]
}

Chokidar Example

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

What ships with it: 1 file

428 B alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.