← Back to Skills Marketplace
notilens

NotiLens

by NotiLens · GitHub ↗ · v0.2.0 · MIT-0
cross-platform ✓ Security Clean
77
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install 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.
README (SKILL.md)

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

Field Type Required Description
event string yes Event name, e.g. task.started, task.completed
title string yes Short heading shown on the notification
message string yes Notification body text
type string yes info | success | warning | urgent
agent string yes Name identifying the source (app, script, agent, etc.)
task_id string no Task label for grouping related events
run_id string no Unique ID for this specific run, e.g. run_1714000000000_a3f2
is_actionable boolean no Set true when the event needs human attention
image_url string no Image to display with the notification
open_url string no URL to open when the notification is tapped
download_url string no URL of a file to attach to the notification
tags string no Comma-separated tags, e.g. prod,backend
ts number no Unix timestamp (seconds). Defaults to now.
meta object no Metrics, counters, timing, and any custom key-value pairs

Standard Events and When to Fire Them

Use these canonical event names for consistency across sources:

Event type When to fire
task.queued info Task is queued before a worker picks it up
task.started info Execution begins
task.progress info Meaningful checkpoint during a long task
task.paused warning Task is pausing (waiting on I/O, rate limit, etc.)
task.waiting warning Task is blocked waiting for an external resource
task.resumed info Task resumed after a pause or wait
task.loop warning Same step is repeating — possible loop
task.retry warning Task is being retried after a failure
task.error urgent Non-fatal error occurred, task continues
task.completed success Task finished successfully
task.failed urgent Task failed — will not be retried
task.timeout urgent Task exceeded its time limit
task.cancelled warning Task was cancelled before completion
task.stopped info Task was stopped intentionally (not an error)
task.terminated urgent Task was forcibly terminated
input.required warning Needs human input to continue
input.approved success Human approved the request
input.rejected warning Human rejected the request
output.generated success Output produced (file, report, result, etc.)
output.failed urgent Failed 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):

Key Description
total_duration_ms Wall-clock time from task start to now
active_ms Time actively running (excludes pauses and waits)
queue_ms Time spent in queue before task started
pause_ms Total time spent paused
wait_ms Total time spent waiting on external resources

Counters:

Key Description
retry_count Number of retries so far
loop_count Number of loop iterations
error_count Number of non-fatal errors encountered
pause_count Number of times the task paused
wait_count Number 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.

Usage Guidance
This skill appears coherent and limited in scope, but consider the following before installing: - The skill will send whatever you include in notification payloads to an external service (hook.notilens.com). Do not include passwords, long secrets, or sensitive data in notifications unless you trust the service and its security/privacy practices. - Use least-privilege tokens from NotiLens (scoped, revocable) and rotate them periodically. Treat NOTILENS_SECRET as sensitive. - Verify the NotiLens domain and your topic settings at https://www.notilens.com before providing credentials. - Because this is an instruction-only skill, review the full SKILL.md (payload examples and headers) to confirm there are no typos or unexpected endpoints in the examples you will follow. - If you need stricter controls, consider restricting which agents or scripts are allowed to use these env vars or proxying notifications through an internal relay that sanitizes payloads.
Capability Analysis
Type: OpenClaw Skill Name: notilens Version: 0.2.0 The NotiLens skill is a legitimate notification utility designed to send real-time task status updates, metrics, and alerts to a dedicated webhook at hook.notilens.com. The documentation in SKILL.md provides clear instructions and examples for using curl to communicate with the service, requiring standard API credentials (NOTILENS_TOKEN and NOTILENS_SECRET). There is no evidence of data exfiltration, malicious code execution, or deceptive prompt injection.
Capability Assessment
Purpose & Capability
Name/description (real-time alerts) align with declared requirements: only curl and two NotiLens credentials are required — reasonable and expected for a webhook-based notifier.
Instruction Scope
SKILL.md instructs the agent to POST JSON to https://hook.notilens.com using NOTILENS_TOKEN and NOTILENS_SECRET. The instructions focus on notification payloads and metrics; they do not ask the agent to read unrelated system files or extra environment variables.
Install Mechanism
No install spec or code is included (instruction-only). This minimizes risk because nothing is downloaded or written to disk by the skill itself.
Credentials
Only two environment variables (a token and a secret) are required and the primary credential is declared. These are proportional to a webhook notifier and there are no requests for unrelated credentials or system config paths.
Persistence & Privilege
always is false and there is no install or configuration modification. The skill may be invoked autonomously by the agent (platform default), which is expected for a notifier.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install notilens
  3. After installation, invoke the skill by name or use /notilens
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.2.0
notilens 0.2.0 - Broadened scope from AI agents to any script, app, or agent for sending NotiLens notifications. - Updated the description and docs: clarified terminology (source, agent), and generalized event semantics. - Adjusted payload documentation to support non-AI use cases. - Refined event names, parameter explanations, and example payloads for wider applicability. - No code changes; documentation improvements only.
v0.1.0
- Initial release of the NotiLens skill for real-time push notifications during AI agent task execution - Supports sending structured notifications to phones or teams for task lifecycle events, errors, completions, metrics, and custom alerts - Provides a standard set of event types (e.g. task.started, task.completed, task.error) and guidelines for payload fields - Allows tracking of task metrics and custom metadata for analytics and filtering - Includes sample payloads and usage patterns for integrating with NotiLens via simple POST webhooks - Requires environment variables NOTILENS_TOKEN and NOTILENS_SECRET for authentication
Metadata
Slug notilens
Version 0.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is NotiLens?

Send real-time alerts to NotiLens from any script, app, or AI agent — task lifecycle events, errors, completions, metric tracking, and custom alerts. It is an AI Agent Skill for Claude Code / OpenClaw, with 77 downloads so far.

How do I install NotiLens?

Run "/install notilens" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is NotiLens free?

Yes, NotiLens is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does NotiLens support?

NotiLens is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created NotiLens?

It is built and maintained by NotiLens (@notilens); the current version is v0.2.0.

💬 Comments