Skip to content
TakoAPI
Back to skills

entr

by gumadeiras

CLI Utilities
1.8kDownloads reported by clawskills.sh
0Views
0 likesSign in to like this skill
—Not yet rated
Your rating

Brief

Run arbitrary commands when files change.

Description

What This Skill Does

entr watches a list of files and re-runs a specified command whenever any of those files change. It reads filenames from stdin and blocks the terminal while monitoring.

entr requires no configuration files or daemons, making it faster to set up than tools like nodemon or watchman for ad-hoc watch tasks.

When to Use It

  • Rebuild a C project automatically when source files change
  • Re-run test suite on every JavaScript file save
  • Auto-reload a Node.js server when app files are modified
  • Trigger a linter on file changes during development
  • Watch config files and restart a service on edits

Example Workflow

INPUT

User asks: watch all JS files in the repo and re-run tests on save

AGENT
  1. 1

    List tracked files using git ls-files

  2. 2

    Pipe output through grep to filter .js files

  3. 3

    Pass the file list to entr with npm test as the command

  4. 4

    Run the full pipeline in the background using the process tool

  5. 5

    Monitor output for test results as files change

OUTPUT

entr watches the matched files and executes npm test each time a change is detected

Installation

clawhub install gumadeiras/entr

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links