Xpersona
C

clawlens

CLAWHUB · Unverified

What do you use Claw for most? Where do you get stuck? Clawlens analyzes your conversation history to surface usage patterns, friction points, and skill effe... Skill: clawlens Owner: dunzhang Summary: What do you use Claw for most? Where do you get stuck? Clawlens analyzes your conversation history to surface usage patterns, friction points, and skill effe... Tags: latest:1.0.5 Version history: v1.0.5 | 2026-03-27T01:28:41.643Z | user Clawlens 1.0.5 introduces auto-detection of the LLM model and improved integration with OpenClaw configuration: - Adds automatic model and AP

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17crad49ssjwm13vrdjb7ym3183jgs3:clawlens
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-dunzhang-clawlens/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

48,772 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: clawlens
description: What do you use Claw for most? Where do you get stuck? Clawlens analyzes your conversation history to surface usage patterns, friction points, and skill effectiveness — your personal OpenClaw retrospective.
user-invocable: true
dependencies:
  - litellm
  - markdown
required-env:
  - DEEPSEEK_API_KEY or OPENAI_API_KEY or ANTHROPIC_API_KEY (only when --model is specified manually; not needed for auto-detect)
reads:
  - ~/.openclaw/agents/{agentId}/sessions/sessions.json
  - ~/.openclaw/agents/{agentId}/sessions/*.jsonl
  - ~/.openclaw/skills/
  - ~/.openclaw/openclaw.json
  - ~/.openclaw/agents/{agentId}/agent/auth-profiles.json
writes:
  - ~/.openclaw/agents/{agentId}/sessions/.clawlens-cache/
external-api:
  - LLM provider specified by --model via litellm (sends conversation transcript summaries for analysis)
---

# Clawlens - OpenClaw Usage Insights

Generate a comprehensive usage insights report by analyzing conversation history.

## When to Use

| User Says | Action |
|-----------|--------|
| "show me my usage report" | Run full report |
| "analyze my conversations" | Run full report |
| "how am I using Claw" | Run full report |
| "clawlens" / "claw lens" | Run full report |
| "usage insights" / "usage analysis" | Run full report |

## How to Run

Execute the analysis script:

```bash
python3 scripts/clawlens.py [OPTIONS]
```

### Options

| Flag | Default | Description |
|------|---------|-------------|
| `--agent-id` | `main` | Agent ID to analyze |
| `--days` | `180` | Analysis time window in days |
| `--model` | auto-detect | LLM model in litellm format (e.g. `deepseek/deepseek-chat`). If omitted, auto-detected from OpenClaw config. |
| `--lang` | `zh` | Report language: `zh` or `en` |
| `--format` | `md` | Output format: `md` (Markdown) or `html` (self-contained dark-themed HTML) |
| `--no-cache` | false | Ignore cached facet extraction results |
| `--max-sessions` | `2000` | Maximum sessions to process |
| `--concurrency` | `10` | Max parallel LLM calls |
| `--verbose` | false | Print progress to stderr |
| `-o` / `--output` | stdout | Output file path |

### Model Selection (Agent Interaction)

When the user requests a clawlens report without specifying a model, **you must ask the user before running**:

> 是否使用 OpenClaw 当前配置的模型来生成报告?如果不使用,请告诉我你想用的模型(litellm 格式,如 `deepseek/deepseek-chat`)。

- **User agrees to use OpenClaw model**: Run **without** `--model` (the script auto-detects from `~/.openclaw/openclaw.json`).
- **User specifies a different model**: Run with `--model <user-choice>`. The user must also set the corresponding API key env var (e.g. `DEEPSEEK_API_KEY`).

Note: Each user's OpenClaw model configuration may differ — some use API-key-based providers (e.g. `openai-completions`), others use OAuth-based providers (e.g. `anthropic-messages`). The script handles both transparently.

### Examples

```bash
# Auto-detect model from OpenClaw config (simplest)
python3 scripts/clawlens.py --verbose

# A

_meta.json

{
  "ownerId": "kn79adz7kyj4gakyzzkn8j0efh830qbn",
  "slug": "clawlens",
  "version": "1.0.5",
  "publishedAt": 1774574921643
}

references/report-format.md

# Clawlens Report Format Reference

This document defines the expected Markdown structure for the clawlens insights report.

## Report Structure

```markdown
# Clawlens 使用洞察报告

> 分析期间: {start_date} ~ {end_date} | {total_sessions} 会话 | {total_messages} 消息 | {days_active} 活跃天

## 概览摘要

{4-5 sentence executive summary covering: what's working, what's hindering, quick wins, ambitious suggestions}

---

## 1. 使用概览

### 基础统计

| 指标 | 数值 |
|------|------|
| 会话数 | {n} |
| 消息数 | {n} |
| 活跃天数 | {n} |
| Token 消耗 | 输入 {n} / 输出 {n} |
| 总费用 | ${n} |

### 活跃时间分布

{Describe peak hours and weekday patterns using text and small tables}

### Token 消耗趋势

{Week-over-week trend description}

---

## 2. 任务分类

### 分类占比

| 类别 | 占比 | 会话数 |
|------|------|--------|
| {category} | {%} | {n} |
| ... | ... | ... |

### 趋势变化

{Describe how task distribution changed over the analysis period}

### 高价值任务

{List tasks that saved the most time or had highest repeat frequency}

---

## 3. 摩擦分析

### Claw 侧问题

| 摩擦类型 | 次数 | 示例 |
|----------|------|------|
| {type} | {n} | {brief example from session} |

### 用户侧摩擦

| 摩擦类型 | 次数 | 示例 |
|----------|------|------|
| {type} | {n} | {brief example from session} |

### Top 摩擦模式

{Narrative description of the top 3 friction patterns with specific session examples}

---

## 4. Skills 生态分析

### 使用情况

| Skill | 使用次数 | 状态 |
|-------|---------|------|
| {skill_name} | {n} | 活跃 / 未使用 |

### 未使用 Skills

{List installed but unused skills with cleanup suggestion}

### 推荐

{Suggest skills from community based on task patterns}

---

## 5. 自主行为审计

### 概览

| 指标 | 数值 |
|------|------|
| 自主行为总次数 | {n} |
| 用户确认/采纳率 | {%} |
| 否决/忽略率 | {%} |

### 行为分类

{Breakdown by type: cron, heartbeat, background}

### 异常标记

{Flag any out-of-bounds or unexpected autonomous actions}

---

## 6. 多渠道分析

### 渠道使用分布

| 渠道 | 会话数 | 占比 |
|------|--------|------|
| {channel} | {n} | {%} |

### 渠道 x 任务类型

{Cross-tabulation of channels and task types}

### 渠道优化建议

{Suggest better channel-task matches}

---

*报告由 clawlens v{version} 生成于 {timestamp}*
```

## Style Guidelines

- Use second person ("你") in Chinese, "you" in English
- Be direct and actionable, not vague or fluffy
- Include specific session examples where possible (truncated quotes)
- Use tables for quantitative data, narrative for qualitative insights
- Bold key findings and recommendations
- Keep each section self-contained and scannable

## Task Categories

| Key | Chinese | English |
|-----|---------|---------|
| email_management | 邮件管理 | Email Management |
| scheduling | 日程协调 | Scheduling |
| info_retrieval | 信息检索 | Info Retrieval |
| content_creation | 内容创作 | Content Creation |
| coding_assistance | 编码辅助 | Coding Assistance |
| automation | 自动化脚本 | Automation |
| smart_home | 智能家居控制 | Smart Home |
| file_operations | 文件操作 | File Operations |
| communication | 通信/消息 | Communication |
| planning | 规划/任务管理 | Planning |
| personal_assistant | 个人助理/杂项 | Personal Assistant |

## Friction Categories

### Claw-side

| Key | Ch

skill-card.md

## Description:

Clawlens analyzes OpenClaw conversation history to surface usage patterns, friction points, and skill effectiveness.

This skill is ready for commercial/non-commercial use.

## Publisher:

[dunzhang](https://clawhub.ai/user/dunzhang)

### License/Terms of Use:

MIT-0

## Use Case:

OpenClaw users and agent operators use this skill to review their conversation history, identify common task patterns, inspect friction points, and generate a usage insights report.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Conversation history, including possible tool-output excerpts, may be sent to the selected external LLM provider.

Mitigation: Use the shortest practical --days window, choose the provider deliberately, and review the report inputs before sharing results.

Risk: Auto-detection reads OpenClaw provider configuration and stored credentials.

Mitigation: Review OpenClaw provider configuration before using auto-detect, or specify a model explicitly with the corresponding environment variable.

Risk: HTML reports generated from session content may expose untrusted content in a browser.

Mitigation: Prefer Markdown output for untrusted session content and only open HTML reports from trusted local runs.

## Reference(s):

- [Clawlens Report Format Reference](references/report-format.md)
- [LiteLLM Providers](https://docs.litellm.ai/docs/providers)

## Skill Output:

**Output Type(s):** [text, markdown, html]

**Output Format:** [Markdown report by default, with optional self-contained HTML output.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Report language can be Chinese or English; the default analysis window is 180 days.]

## Skill Version(s):

1.0.5 (source: server release metadata and artifact _meta.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to clawlens and adjacent AI workflows.