Token导航 LogoToken导航TokenDH.com
运维需要联网clawhub未标认证来源可访问clear审计通过

notilensnotilens 运维

Agent Skill

notilens 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,528

周安装

147

GitHub Stars

公开资料未说明

下载量

1,176
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:notilens(notilens 运维)
来源仓库:https://github.com/notilens/notilens
安装命令:
openclaw skills install notilens
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install notilens

简介

从任何脚本、应用程序或 AI 代理向 NotiLens 发送实时警报 - 任务生命周期事件、错误、完成情况、指标跟踪和自定义警报。

SKILL.md

name
notilens
description
Send real-time alerts to NotiLens from any script, app, or AI agent — task lifecycle events, errors, completions, metric tracking, and custom alerts.
version
0.2.0
metadata
openclaw
requires
env
bins
primaryEnv
NOTILENS_TOKEN
emoji
🔔
homepage
https://www.notilens.com

NotiLens — Real-time Alerts

NotiLens delivers real-time push notifications to your phone or team when tasks start, make progress, hit errors, or finish. No polling — instant alerts.

Get your NOTILENS_TOKEN and NOTILENS_SECRET from your topic settings at https://www.notilens.com.

Sending a Notification

All notifications are sent as a POST to the NotiLens webhook:

POST https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send
X-NOTILENS-KEY: $NOTILENS_SECRET
Content-Type: application/json

Payload Fields

FieldTypeRequiredDescription
eventstringyesEvent name, e.g. task.started, task.completed
titlestringyesShort heading shown on the notification
messagestringyesNotification body text
typestringyesinfo \success \warning \urgent
agentstringyesName identifying the source (app, script, agent, etc.)
task_idstringnoTask label for grouping related events
run_idstringnoUnique ID for this specific run, e.g. run_1714000000000_a3f2
is_actionablebooleannoSet true when the event needs human attention
image_urlstringnoImage to display with the notification
open_urlstringnoURL to open when the notification is tapped
download_urlstringnoURL of a file to attach to the notification
tagsstringnoComma-separated tags, e.g. prod,backend
tsnumbernoUnix timestamp (seconds). Defaults to now.
metaobjectnoMetrics, counters, timing, and any custom key-value pairs

Standard Events and When to Fire Them

Use these canonical event names for consistency across sources:

EventtypeWhen to fire
task.queuedinfoTask is queued before a worker picks it up
task.startedinfoExecution begins
task.progressinfoMeaningful checkpoint during a long task
task.pausedwarningTask is pausing (waiting on I/O, rate limit, etc.)
task.waitingwarningTask is blocked waiting for an external resource
task.resumedinfoTask resumed after a pause or wait
task.loopwarningSame step is repeating — possible loop
task.retrywarningTask is being retried after a failure
task.errorurgentNon-fatal error occurred, task continues
task.completedsuccessTask finished successfully
task.failedurgentTask failed — will not be retried
task.timeouturgentTask exceeded its time limit
task.cancelledwarningTask was cancelled before completion
task.stoppedinfoTask was stopped intentionally (not an error)
task.terminatedurgentTask was forcibly terminated
input.requiredwarningNeeds human input to continue
input.approvedsuccessHuman approved the request
input.rejectedwarningHuman rejected the request
output.generatedsuccessOutput produced (file, report, result, etc.)
output.failedurgentFailed to produce expected output

You may also use any custom event name appropriate to your workflow (e.g. order.placed, deploy.started, pipeline.complete).

Metric Tracking

Attach numeric or string metrics to any event's meta object. NotiLens surfaces these in the dashboard for filtering and analytics.

Recommended meta Fields

Timing (milliseconds):

KeyDescription
total_duration_msWall-clock time from task start to now
active_msTime actively running (excludes pauses and waits)
queue_msTime spent in queue before task started
pause_msTotal time spent paused
wait_msTotal time spent waiting on external resources

Counters:

KeyDescription
retry_countNumber of retries so far
loop_countNumber of loop iterations
error_countNumber of non-fatal errors encountered
pause_countNumber of times the task paused
wait_countNumber of times the task waited

Custom metrics — include any domain-specific values:

"meta": {
  "rows_processed": 4218,
  "rows_failed": 3,
  "tokens_used": 18400,
  "model": "claude-opus-4-6",
  "env": "production",
  "region": "us-east-1"
}

Numeric metrics accumulate meaningfully when charted over time. Include them on task.completed and task.failed events at minimum.

run_id — Unique Run Identification

Generate a run_id at the start of each task run and include it on every event for that run. This allows NotiLens to correlate all events from the same execution even if task_id is reused across runs.

run_id format: run_{unix_ms}_{random_hex4}
example:       run_1714000000000_a3f2

Loop Detection

Fire task.loop when the same step is repeating. Include the loop count in meta.

curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "task.loop",
    "title": "my-app | scraper | task.loop",
    "message": "Same page returned 5 times — possible infinite loop.",
    "type": "warning",
    "agent": "my-app",
    "task_id": "scraper",
    "run_id": "run_1714000000000_a3f2",
    "is_actionable": true,
    "meta": {
      "loop_count": 5
    }
  }'

Examples

Full task lifecycle (queue → start → complete with metrics)

# 1. Queued
curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "task.queued",
    "title": "my-app | data-pipeline | task.queued",
    "message": "Data pipeline job queued.",
    "type": "info",
    "agent": "my-app",
    "task_id": "data-pipeline",
    "run_id": "run_1714000000000_a3f2"
  }'

# 2. Started
curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "task.started",
    "title": "my-app | data-pipeline | task.started",
    "message": "Starting nightly data pipeline run.",
    "type": "info",
    "agent": "my-app",
    "task_id": "data-pipeline",
    "run_id": "run_1714000000000_a3f2",
    "meta": { "queue_ms": 1240 }
  }'

# 3. Completed with metrics
curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "task.completed",
    "title": "my-app | data-pipeline | task.completed",
    "message": "Pipeline finished. Processed 4,218 records in 47s.",
    "type": "success",
    "agent": "my-app",
    "task_id": "data-pipeline",
    "run_id": "run_1714000000000_a3f2",
    "meta": {
      "total_duration_ms": 47200,
      "active_ms": 45800,
      "rows_processed": 4218,
      "rows_failed": 0,
      "env": "production"
    }
  }'

Task failed with counters

curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "task.failed",
    "title": "my-app | data-pipeline | task.failed",
    "message": "Database connection timed out after 3 retries.",
    "type": "urgent",
    "agent": "my-app",
    "task_id": "data-pipeline",
    "run_id": "run_1714000000000_a3f2",
    "is_actionable": true,
    "meta": {
      "total_duration_ms": 92000,
      "active_ms": 88000,
      "retry_count": 3,
      "error_count": 3,
      "last_error": "connect ETIMEDOUT 10.0.0.5:5432"
    }
  }'

Pause and resume with timing

# Pausing (e.g. hit rate limit)
curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "task.paused",
    "title": "my-app | api-sync | task.paused",
    "message": "Rate limit hit — waiting 30s before resuming.",
    "type": "warning",
    "agent": "my-app",
    "task_id": "api-sync",
    "run_id": "run_1714000000000_b7c1",
    "meta": { "pause_count": 1, "wait_reason": "rate_limit" }
  }'

# Resuming
curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "task.resumed",
    "title": "my-app | api-sync | task.resumed",
    "message": "Resuming after rate limit window.",
    "type": "info",
    "agent": "my-app",
    "task_id": "api-sync",
    "run_id": "run_1714000000000_b7c1",
    "meta": { "pause_ms": 31200, "pause_count": 1 }
  }'

Human input required

curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "input.required",
    "title": "my-app | approval needed",
    "message": "About to delete 83 records. Please confirm.",
    "type": "warning",
    "agent": "my-app",
    "is_actionable": true,
    "open_url": "https://dashboard.example.com/approve/123"
  }'

Output generated (with download link)

curl -s -X POST "https://hook.notilens.com/webhook/$NOTILENS_TOKEN/send" \
  -H "Content-Type: application/json" \
  -H "X-NOTILENS-KEY: $NOTILENS_SECRET" \
  -d '{
    "event": "output.generated",
    "title": "my-app | report-gen | output.generated",
    "message": "Monthly report ready. 24 pages, 3 charts.",
    "type": "success",
    "agent": "my-app",
    "task_id": "report-gen",
    "download_url": "https://storage.example.com/reports/2026-04.pdf",
    "meta": {
      "pages": 24,
      "charts": 3,
      "total_duration_ms": 18400
    }
  }'

Usage Guidance

  • Always fire task.started when beginning a significant task so the user knows work has begun.
  • Fire task.completed or task.failed at every terminal state — never leave a started task without a closing event.
  • Generate a run_id at task start (run_{unix_ms}_{random_hex4}) and include it on every event for that run.
  • Include timing in meta on terminal events (task.completed, task.failed, task.timeout) — total_duration_ms and active_ms at minimum.
  • Include counters in meta whenever they are non-zero: retry_count, error_count, loop_count, pause_count, wait_count.
  • Use input.required with is_actionable: true whenever a human decision is needed before continuing.
  • Fire task.loop when the same logical step is repeating. Include loop_count in meta.
  • Keep message concise and informative — include counts, durations, or key values (e.g. "Processed 1,240 rows in 3.2s — 2 errors").
  • Use task_id consistently across all events for the same logical task so NotiLens can group them.
  • Do not spam — avoid sending task.progress more than once every few seconds for fast-running tasks.

Configuration

Set these environment variables before running:

export NOTILENS_TOKEN=your_topic_token
export NOTILENS_SECRET=your_topic_secret

Both are found in your topic settings at https://www.notilens.com.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.82%
按下载量换算1,021

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills