# file-watcher

> Claude/Codex skill by [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.8k stars · Updated 2026-07-27

Configure file watching hooks to auto-react to config changes, env file updates, and dependency modifications. Use to set up reactive workflows.

Tags: agent-orchestration, ai-agents, ai-coding, ai-workflow, claude, claude-code, claude-code-plugin, claude-code-skills, claude-skills, codex, context-engineering, cursor, developer-tools, gemini-cli, hooks, productivity, self-correction, workflow, worktrees

## Install

```sh
git clone https://github.com/rohitg00/pro-workflow /tmp/pro-workflow && ln -s /tmp/pro-workflow/skills/file-watcher ~/.claude/skills/file-watcher
```

## From README

File Watcher Use Claude Code's FileChanged and CwdChanged hooks to create reactive workflows that respond to file system changes. Trigger Use when: Setting up auto-reload for config changes Watching for dependency updates Monitoring build output Creating reactive development workflows How File Watching Works Claude Code's SessionStart and CwdChanged hooks support returning watchPaths to register file watchers. The current cwd-changed.js script focuses on env injection; to add watch registration, your hook script must output this JSON structure: When watched files change, the FileChanged hook fires with: Environment Injection CwdChanged and FileChanged hooks can write to CLAUDEENVFILE to inject environment variables into subsequent Bash commands: Common Watch Patterns Watch .env for Changes Watch package.json for Dependency Changes Detect when dependencies change and remind to run npm . Watch tsconfig.json for Config Changes Remind to restart TypeScript checks when config changes.

## Links

- HTML page: https://omgskills.com/library/rohitg00/pro-workflow/skills/file-watcher/
- GitHub: https://github.com/rohitg00/pro-workflow
- Author: [@rohitg00](https://omgskills.com/library/rohitg00/index.md)

## More from this repo

- [context-engineering](https://omgskills.com/library/rohitg00/pro-workflow/skills/context-engineering/index.md) — Master the four operations of context engineering — Write, Select, Compress, Isolate.
   - [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.9k stars
- [auto-setup](https://omgskills.com/library/rohitg00/pro-workflow/skills/auto-setup/index.md) — Auto-configure quality gates, hooks, and settings for a new project.
   - [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.8k stars
- [batch-orchestration](https://omgskills.com/library/rohitg00/pro-workflow/skills/batch-orchestration/index.md) — Decompose large-scale changes into independent units and spawn parallel agents in isolated worktrees.
   - [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.8k stars
