← 返回 Skills 市场
lucal6

Claw Insights Snapshot

作者 LucaL6 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
213
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install claw-insights-snapshot
功能描述
Generate visual status cards for your OpenClaw agent as PNG, SVG, or JSON. The rendered cards are designed for social sharing and mobile-friendly channels —...
使用说明 (SKILL.md)

Snapshot Status Cards

Announce at start: "I'm generating a visual status card for your OpenClaw agent."

What is a Snapshot?

A snapshot is a server-rendered visual status card — not a browser screenshot. Powered by Satori, it renders in ~200ms with no browser dependency.

The output is designed to look great in chat: compact, readable on mobile, and visually appealing enough to share. It shows token usage, session activity, error counts, and gateway health in a single glance.

Formats: PNG (default), SVG, or raw JSON for programmatic use.

REST API

curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"detail":"standard","range":"6h","theme":"dark"}' \
  -o snapshot.png

No-auth mode: start with claw-insights start --no-auth, then omit the Authorization header.

Response includes Content-Disposition header with timestamped filename.

CLI

claw-insights snapshot                        # Save to ~/.claw-insights/snapshots/
claw-insights snapshot --quick -o status.png  # Compact mobile snapshot
claw-insights snapshot --format json | jq .   # JSON to stdout
claw-insights snapshot --dry-run              # Preview parameters only

CLI flags: --format, --detail, --range, --theme, --lang, -o \x3Cpath>, -t \x3Ctoken>, --port, --quick, --dry-run. Run claw-insights snapshot --help for full usage.

Parameters

Field Default (REST / CLI) Options Description
detail standard compact / standard / full Detail level
format png png / svg / json Output format
range 24h (REST) / 6h (CLI) 30m / 1h / 6h / 12h / 24h Time range for metrics
theme dark dark / light Color theme
lang en en / zh Language

Note: REST API and CLI have different default range values. REST defaults to 24h (full day overview), CLI defaults to 6h (quick status check). Both accept the same set of values.

Which detail level?

  • compact — Summary numbers only (session count, total tokens, error count). Best for embedding in chat messages.
  • standard — Session list + metrics charts. Default for most use cases.
  • full — Everything: session list, all charts, event log. Best for reports and archival.

Common Workflows

Push status card to a channel

Works with any messaging channel — Slack, Telegram, Discord, WhatsApp, etc.

# 1. Generate a compact status card
curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"detail":"compact","range":"6h"}' \
  -o /tmp/status.png

# 2. Send via your channel's tool or API
#    The compact detail level is optimized for mobile chat bubbles.

Tips:

  • compact — best for chat messages (summary numbers only, small image)
  • standard — best for daily check-ins (session list + charts)
  • full — best for reports and archival

Scheduled status report

# Full snapshot with 24h range
curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"detail":"full","range":"24h"}' \
  -o /tmp/daily-report.png

Programmatic metrics extraction

# Get raw data as JSON
curl -X POST http://127.0.0.1:41041/api/snapshot \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"format":"json","range":"6h"}' \
  -o metrics.json

JSON schema: See references/json-schema.md

Error Handling

Status Cause Fix
401 Missing or invalid token Check Bearer token, or use --no-auth mode
502 OpenClaw gateway not running openclaw gateway start
500 Internal server error Check logs: ~/.claw-insights/logs/
Connection refused claw-insights not running claw-insights start
安全使用建议
This skill appears to be a front-end to a local 'claw-insights' service and is otherwise instruction-only; however the SKILL.md expects local binaries and a bearer token while the metadata lists no required binaries or env vars. Before installing or using it: 1) Verify you have the local 'claw-insights'/'openclaw' service and CLI installed from a trusted source. 2) Confirm whether a token is required and where it should be stored; do not paste a high-privilege token into unclear contexts. 3) Check that the local service listens only on localhost (not 0.0.0.0) if you plan to use --no-auth, so you don't expose metrics externally. 4) Inspect/obtain the source for the actual 'claw-insights' service (not just this skill) to ensure it doesn't exfiltrate data. 5) Ask the publisher to update registry metadata to declare required binaries and the expected env var(s) (TOKEN) so the relationship between purpose and required capabilities is explicit.
功能分析
Type: OpenClaw Skill Name: claw-insights-snapshot Version: 1.0.0 The skill bundle provides documentation and instructions for 'claw-insights', a tool designed to generate visual status reports and metrics for an OpenClaw agent. It includes a REST API specification for a local service (127.0.0.1:41041) and a CLI usage guide for rendering PNG/SVG snapshots or extracting JSON metrics. The content is consistent with its stated purpose of monitoring agent performance (token usage, session activity, and gateway health) and contains no evidence of malicious intent, data exfiltration, or harmful prompt injections.
能力评估
Purpose & Capability
The skill claims to generate visual status cards for an OpenClaw agent and its instructions call a local HTTP API (127.0.0.1:41041) and a CLI (claw-insights). That purpose is coherent with the described JSON schema (gateway, tokens, sessions). However, the registry metadata lists no required binaries or env vars even though the SKILL.md clearly expects local tooling (claw-insights, openclaw, curl/jq) and an optional bearer token. This mismatch is unexplained and worth confirming with the author or package source.
Instruction Scope
Instructions are narrowly scoped to generating snapshots via a localhost API or CLI and to optional follow-up steps (upload to chat channels). They reference user-local resources only (e.g., ~/.claw-insights/logs/, hostname, gateway metrics). There is no instruction to read arbitrary unrelated files or to transmit data to remote endpoints beyond user-initiated channel uploads. Still, the skill expects access to system metrics and logs, which is reasonable for status cards but should be explicit in metadata.
Install Mechanism
There is no install spec (instruction-only), which is low-risk in general. But because the runtime assumes an installed local service/CLI (claw-insights and openclaw) and use of curl/jq, the absence of any declared install requirements or preconditions is inconsistent and may lead to silent failures or misconfiguration. No external download URLs or archives are present.
Credentials
SKILL.md shows using an Authorization Bearer token ($TOKEN) and flags a --no-auth mode, yet the skill metadata declares no required environment variables or primary credential. The use of a bearer token is expected for an API but the skill should declare it. Also running with --no-auth (if binding to an interface wider than localhost) could expose sensitive runtime data; the instructions do not discuss network binding or access controls.
Persistence & Privilege
The skill does not request always:true and has no install script or code that persists itself or modifies other skills. Autonomous invocation is allowed by default but that is normal. Nothing in the package requests elevated or persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-insights-snapshot
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-insights-snapshot 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of claw-insights-snapshot. - Generate visual status cards (PNG, SVG, or JSON) for your OpenClaw agent, optimized for mobile and social sharing. - Supports compact, standard, and full detail levels for various reporting needs. - Offers both REST API and CLI usage with flexible parameters and flags. - Enables quick sharing to Slack, Telegram, Discord, WhatsApp, or other chat channels. - Provides programmatic JSON metrics extraction and options for scheduled updates. - Clear error handling and usage guidance included.
元数据
Slug claw-insights-snapshot
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Claw Insights Snapshot 是什么?

Generate visual status cards for your OpenClaw agent as PNG, SVG, or JSON. The rendered cards are designed for social sharing and mobile-friendly channels —... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 213 次。

如何安装 Claw Insights Snapshot?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-insights-snapshot」即可一键安装,无需额外配置。

Claw Insights Snapshot 是免费的吗?

是的,Claw Insights Snapshot 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Claw Insights Snapshot 支持哪些平台?

Claw Insights Snapshot 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claw Insights Snapshot?

由 LucaL6(@lucal6)开发并维护,当前版本 v1.0.0。

💬 留言讨论