TopRank Skills

Home / Claw Skills / Autres / entr
Official OpenClaw rules 15%

entr

Run arbitrary commands when files change. Useful for watching files and triggering builds or tests.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 entr 技能。 若已安装,则直接安装 entr 技能。

Overview

Skill Key
gumadeiras/entr
Author
gumadeiras
Source Repo
openclaw/skills
Version
-
Source Path
skills/gumadeiras/entr
Latest Commit SHA
df05cc40a96cd5fb94d455a7d19ff0fd3bbca8d2

Extracted Content

SKILL.md excerpt

# entr (Event Notify Test Runner)

A utility for running arbitrary commands when files change.

## Usage

`entr` takes a list of filenames from standard input and executes the utility specified as the first argument.

### Syntax
```bash
<file_listing_command> | entr <utility> [arguments]
```

### Options
- `-c`: Clear the screen before invoking the utility.
- `-r`: Reload a persistent child process (e.g., a server).
- `-s`: Evaluate the first argument using the interpreter specified by `SHELL`.

## Examples

**Rebuild project when sources change:**
```bash
find src/ -name "*.c" | entr make
```

**Run tests when JS files change:**
```bash
git ls-files | grep '\.js$' | entr npm test
```

**Auto-reload a Node server:**
```bash
ls *.js | entr -r node app.js
```

## Agent Notes
`entr` blocks the terminal. When using it as an agent:
1. Use `process` tool to run it in the background if you need to do other things.
2. Or use it for a quick "watch mode" session where you intend to monitor output for a while.

Related Claw Skills