jorgermp

Task Monitor

运维安全v1.0.0
作者:jorgermp更新于 2026-05-18task-monitor@clawhub_jorgermp/task-monitor
监控告警DevOps

据 AlphaMoat 统计,截至 2026-09,Task Monitor 累计下载 4,909 次、获 11 个星标,在全部 5,078 个 AI 技能中排名第 1,889 位,在「运维安全」分类(264 个)中排名第 95 位。

累计安装
374
累计下载
4,909
星标
11
全站排名
#1,889
全站前 38% · 「运维安全」前 36%
平台累计安装累计下载星标评论
ClawHub ↗1654,80111-
SkillHub ↗3744,90911—

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

这个技能是做什么的

Node.js 与 Express 服务展示主会话、Discord、子代理及近期 cron 历史,并提供 JSON 状态端点和旧版 Markdown 生成器。监听 3030 端口,可在局域网访问。客户端轮询和缓存后台刷新减少重复采集,显示数据可能暂时陈旧;仍需安装并启动服务。

资料发布于 2026-10-27

可以用来做什么

  • 查看代理会话及后台任务状态

什么时候用

  • OpenClaw 环境需要浏览器可读的任务概览时

示例提示词

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

说明安装、网络暴露范围和状态来源,并区分网页仪表板与 Markdown 生成。

月度数据趋势

累计下载4,909
3,4394,2295,0182026-03 · 累计下载 3,5482026-05 · 累计下载 4,2092026-07 · 累计下载 4,5962026-08 · 累计下载 4,7152026-09 · 累计下载 4,90926-0326-09
星标11
1011112026-03 · 星标 102026-05 · 星标 102026-07 · 星标 112026-08 · 星标 112026-09 · 星标 1126-0326-09

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

月份累计下载环比星标
2026-094,909—11
2026-084,715+2.6%11
2026-074,596—11
2026-054,209—10
2026-033,548—10

SKILL.md 原文

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

2.3 KB · ClawHub v1.0.0
---
name: task-monitor
description: Real-time web dashboard for OpenClaw sessions and background tasks. Mobile-responsive with auto-refresh.
version: 0.1.0
---

# Task Monitor v0.1

Real-time monitoring dashboard for OpenClaw with web interface.
展开全部(共 102 行)
## Features

- 🌐 **Web Dashboard** - Beautiful, responsive UI accessible from any device
- 📱 **Mobile-First** - Optimized for phones and tablets
- 🔄 **Auto-Refresh** - Updates every 60 seconds
- 🎨 **Modern Design** - Gradient UI with dark theme
- 📊 **Live Data** - Main session, Discord, sub-agents, cron jobs
- 🚀 **Fast API** - JSON endpoint with intelligent caching (30s TTL)
- ⚡ **Performance** - <100ms response time (cached), ~15s cold cache

## Installation

```bash
cd skills/task-monitor
npm install
```

## Usage

### Start Web Server

```bash
./scripts/start-server.sh
```

Server will run on port **3030** (accessible on LAN).

**Access URLs:**
- Local: `http://localhost:3030`
- LAN: `http://<your-ip>:3030`

### Stop Server

```bash
./scripts/stop-server.sh
```

### API Endpoint

```bash
curl http://localhost:3030/api/status
```

Returns JSON with:
- Main session stats
- Discord session stats
- Active sub-agents (with descriptions)
- Recent cron job history

### Generate Markdown (v0.1)

Legacy markdown generator still available:

```bash
./scripts/generate-dashboard.js
```

Updates `DASHBOARD.md` in workspace root.

## Automation

CRON job runs every 5 minutes to update markdown dashboard:
`*/5 * * * *` -> Executes `generate-dashboard.js`

## Architecture

- **Backend:** Node.js + Express
- **Frontend:** Pure HTML/CSS/JS (no frameworks)
- **Data Source:** `openclaw sessions list --json` + `openclaw cron list --json`
- **Caching:** In-memory cache with 30-second TTL
  - Pre-warmed on server startup
  - Async background refresh when expired
  - Stale-while-revalidate pattern for optimal UX
- **Refresh:** Client-side polling (60s interval)

## Performance

**Without cache:**
- API response time: ~15 seconds (blocking)
- Problem: Each request blocks Node.js event loop

**With cache:**
- Cache hit: <100ms (~365x faster)
- Cache miss: ~15s (first request only)
- Stale cache: <100ms while refreshing in background
- Cache TTL: 30 seconds

The caching system ensures:
- Lightning-fast responses for most requests
- No blocking of concurrent requests
- Graceful degradation when cache expires

「运维安全」分类下的热门技能

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