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
累計下載
4909
星標
11
全站排名
#1,889
全站前 38% · 「運維安全」前 36%
平台累計安裝累計下載星標評論
ClawHub ↗165480111-
SkillHub ↗374490911—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

Node.js 與 Express 服務展示主會話、Discord、子代理及近期 cron 歷史,並提供 JSON 狀態端點和舊版 Markdown 生成器。監聽 3030 埠,可在區域網訪問。客戶端輪詢和快取後臺重新整理減少重複採集,顯示資料可能暫時陳舊;仍需安裝並啟動服務。

資料釋出於 2026-10-27

可以用來做什麼

  • 檢視代理會話及後臺任務狀態

什麼時候用

  • OpenClaw 環境需要瀏覽器可讀的任務概覽時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明安裝、網路暴露範圍和狀態來源,並區分網頁儀表板與 Markdown 生成。

月度資料趨勢

累計下載4909
3439422950182026-03 · 累計下載 35482026-05 · 累計下載 42092026-07 · 累計下載 45962026-08 · 累計下載 47152026-09 · 累計下載 490926-0326-09
星標11
1011112026-03 · 星標 102026-05 · 星標 102026-07 · 星標 112026-08 · 星標 112026-09 · 星標 1126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094909—11
2026-084715+2.6%11
2026-074596—11
2026-054209—10
2026-033548—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),按月更新。口徑說明見資料方法。