chokidar-v4

Implement chokidar v4 file watchers with atomic write detection.

9|2|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/eighteyes/tx --skill chokidar-v4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chokidar-v4
Source: https://github.com/eighteyes/tx/tree/main/.claude/skills/chokidar-v4
Command: npx skills add https://github.com/eighteyes/tx --skill chokidar-v4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires chokidar, and includes references (resource) components.

What problem does it solve?

Implementing reliable and efficient file system watchers can be complex, especially with cross-platform compatibility, performance optimization, and debugging. This Skill simplifies the process by providing comprehensive guidance and best practices for chokidar v4, ensuring your applications react flawlessly to file changes without manual oversight.

Core Features & Use Cases

  • Modern File Watching: Implement robust file system monitoring with chokidar v4's pure ESM and improved atomic write detection.
  • Migration & Debugging: Seamlessly migrate from chokidar v3 and troubleshoot common issues with detailed debugging patterns and performance best practices.
  • Graceful Operations: Learn to handle graceful shutdowns, detect new directories, and ignore system operations for stable, production-ready watchers.
  • Use Case: Automate tasks like recompiling code on file save, triggering data processing pipelines when new files arrive in a directory, or synchronizing content across systems, all without manual intervention.

Quick Start

Use the chokidar-v4 skill to write a JavaScript file watcher that monitors the 'src' directory for new or changed '.js' files and logs their paths. Ensure it handles atomic writes and shuts down gracefully.