Gustavo Madeira Santana

entr

开发编程v1.0.0
作者:Gustavo Madeira Santana更新于 2026-05-17@clawhub_gumadeiras/entr
脚本工具

据 AlphaMoat 统计,截至 2026-09,entr 累计下载 3,267 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 3,481 位,在「开发编程」分类(577 个)中排名第 449 位。

累计安装
104
累计下载
3,267
星标
-
全站排名
#3,481
全站前 69% · 「开发编程」前 78%
平台累计安装累计下载星标评论
ClawHub ↗1043,267--
SkillHub ↗1043,241-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

文档说明通过标准输入提供文件列表,再由 entr 启动指定命令;可用于源文件变化时重新构建、运行测试或重载服务。由于它能运行任意命令,监控范围和待执行命令应先审查。

资料发布于 2026-10-29

可以用来做什么

  • 监视源文件并在变更时重新构建项目。
  • 在相关文件更新后运行测试。
  • 在开发时重载持续运行的子进程。

什么时候用

  • 需要对本地文件变化触发命令行任务时。
  • 执行前确认被监控的文件范围和命令副作用时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

为这个目录设计一个文件变更后运行测试的 entr 命令方案,先解释不会监控哪些路径。
审查这条监控命令可能执行的操作,不要运行它。

月度数据趋势

累计下载3,267
1,9842,6733,3622026-03 · 累计下载 2,0792026-05 · 累计下载 2,5852026-06 · 累计下载 2,7422026-07 · 累计下载 3,0272026-08 · 累计下载 3,1652026-09 · 累计下载 3,26726-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,267—-
2026-083,165+4.6%-
2026-073,027+10.4%-
2026-062,742+6.1%-
2026-052,585—-
2026-032,079—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

1.1 KB · ClawHub v1.0.0
---
name: entr
description: Run arbitrary commands when files change. Useful for watching files and triggering builds or tests.
---

# entr (Event Notify Test Runner)

A utility for running arbitrary commands when files change.

## Usage
展开全部(共 45 行)

`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.

「开发编程」分类下的热门技能

Gustavo Madeira Santana 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。