vintlin/computer-care-skills/folder-watch

Claude Code and agent skill by vintlin/computer-care-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when watching a folder for file changes to run commands on edit, restart a local service, trigger a backup, send a notification, or debug file-change automation on macOS or Linux.

Install

npx vskill@latest install vintlin/computer-care-skills/folder-watch

SKILL.md

Folder Watch

Overview

Folder watchers should be explicit about what is watched, what command runs, where logs go, and how failures are reported. Prefer reversible local automation before installing persistent agents.

Workflow

  1. Define watched paths and ignore rules. Exclude noisy temporary files (swap files, build artifacts, .DS_Store) by extension or glob. Debounce or filter aggressively — do not restart a service on every transient write.
  2. Choose the watcher. Prefer watchexec when available; fall back to a simple polling script otherwise. Always set an explicit working directory (--workdir or cd). On macOS avoid Linux-only flags like find -newermt — use stat -f %m or a portable alternative.
  3. Decide event handling. Choose debounce (coalesce rapid changes), restart (kill and re-run on each event), or queue.
  4. Capture stdout/stderr to a log file. Make the log path explicit.
  5. Add notification only after the command is reliable. Keep credentials out of skill files and scripts — use environment variables, keychain, or a local secret manager. Include command, exit code, log path, and changed file in notifications. Avoid sending sensitive file contents.
  6. Test with a harmless file change before enabling persistent automation. Do not install a launchd or systemd watcher until a foreground test succeeds end-to-end.

Quick Examples

Run a command after changes:

bash
watchexec --restart --watch ./src --ext py -- 'python script.py'

Debounce noisy changes:

bash
watchexec --debounce 2s --watch ~/Downloads -- 'echo changed'

Portable recent-file check for macOS:

bash
find . -type f -maxdepth 2 | while read -r file; do
mtime=$(stat -f %m "$file" 2>/dev/null || stat -c %Y "$file" 2>/dev/null || echo 0)
now=$(date +%s)
[ $((now - mtime)) -le 60 ] && printf '%s\n' "$file"
done

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
Repository forks
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/vintlin/computer-care-skills/folder-watch/badge)](https://verified-skill.com/skills/vintlin/computer-care-skills/folder-watch)

Something wrong with this skill or its page? Tell us.