Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

clawlensclawlens 分析

Agent Skill

clawlens 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,218

周安装

353

GitHub Stars

2

下载量

2,880
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install clawlens

简介

clawlens 分析对话历史以识别使用模式、摩擦点与技能效果,提供个性化洞察。

  • 适用于优化 OpenClaw 工作流、发现瓶颈并针对性增强特定技能组合。
  • 可生成使用频率报告、痛点热力图与改进建议,辅助长期效率提升。
  • 安装命令为 openclaw skills install clawlens,需授权读取历史会话数据。
  • 建议定期清理无关对话记录,确保分析聚焦于核心任务场景。

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
required-env
reads
writes
external-api

Clawlens - OpenClaw Usage Insights

Generate a comprehensive usage insights report by analyzing conversation history.

When to Use

User SaysAction
"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:

python3 scripts/clawlens.py [OPTIONS]

Options

FlagDefaultDescription
--agent-idmainAgent ID to analyze
--days180Analysis time window in days
--modelauto-detectLLM model in litellm format (e.g. deepseek/deepseek-chat). If omitted, auto-detected from OpenClaw config.
--langzhReport language: zh or en
--formatmdOutput format: md (Markdown) or html (self-contained dark-themed HTML)
--no-cachefalseIgnore cached facet extraction results
--max-sessions2000Maximum sessions to process
--concurrency10Max parallel LLM calls
--verbosefalsePrint progress to stderr
-o / --outputstdoutOutput 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

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

# Auto-detect, English, last 7 days
python3 scripts/clawlens.py --lang en --days 7

# Manually specify model (DeepSeek)
DEEPSEEK_API_KEY=sk-xxx python3 scripts/clawlens.py --model deepseek/deepseek-chat

# OpenAI, English, last 7 days
OPENAI_API_KEY=sk-xxx python3 scripts/clawlens.py --model openai/gpt-4o --lang en --days 7

# Verbose, save to file
ANTHROPIC_API_KEY=sk-xxx python3 scripts/clawlens.py --model anthropic/claude-sonnet-4-20250514 --verbose -o /tmp/clawlens-report.md

# HTML report (dark-themed, self-contained)
DEEPSEEK_API_KEY=sk-xxx python3 scripts/clawlens.py --model deepseek/deepseek-chat --format html -o /tmp/clawlens-report.html

Output

The script outputs a report to stdout (or to the file specified by -o). Progress messages go to stderr when --verbose is set.

  • Markdown (--format md, default): Plain Markdown report. Present it directly to the user.
  • HTML (--format html): Self-contained dark-themed HTML file with glassmorphism styling, animated stat cards, CSS bar charts, and interactive navigation. Opens directly in any browser — no external dependencies. Requires the markdown Python package for Markdown-to-HTML conversion.

The report includes all dimensions: usage overview, task classification, friction analysis, skills ecosystem, autonomous behavior audit, and multi-channel analysis.

Present the output directly to the user. Do not summarize or truncate it.

Model Configuration

--model is optional. If omitted, the model is automatically resolved from OpenClaw configuration:

  1. Reads primary model from ~/.openclaw/openclaw.json (agents.defaults.model.primary, e.g. kimi-code/kimi-for-coding)
  2. Looks up the provider's baseUrl and api type (e.g. openai-completions, anthropic-messages)
  3. Retrieves API key/token from ~/.openclaw/agents/{agentId}/agent/auth-profiles.json
  4. Maps to litellm format automatically (e.g. openai/kimi-for-coding with custom api_base)

If you prefer to specify a model manually, use --model with litellm's provider format:

Provider--model valueRequired env var
DeepSeekdeepseek/deepseek-chatDEEPSEEK_API_KEY
OpenAIopenai/gpt-4oOPENAI_API_KEY
Anthropicanthropic/claude-sonnet-4-20250514ANTHROPIC_API_KEY
OpenAI-compatibleopenai/<model-id> + set OPENAI_API_BASEOPENAI_API_KEY

The format is always <provider>/<model-id>. Refer to litellm docs for the full list of supported providers and their env var naming conventions.

Data Source

The script reads conversation data from:

  • ~/.openclaw/agents/{agentId}/sessions/sessions.json (session index)
  • ~/.openclaw/agents/{agentId}/sessions/*.jsonl (per-session logs, including unindexed historical files)
  • ~/.openclaw/skills/ (installed skills directory for ecosystem analysis)

Cache is written to ~/.openclaw/agents/{agentId}/sessions/.clawlens-cache/facets/ to avoid re-analyzing the same sessions.

Privacy Notice

This skill sends conversation transcript data to an external LLM provider (specified by --model) for analysis. Specifically:

  • Stage 2 (Facet Extraction): Each session's conversation transcript (truncated to ~80K chars) is sent to the LLM to extract structured analysis (task categories, friction points, etc.). Results are cached locally so each session is only sent once.
  • Stage 4 (Report Generation): Aggregated statistics and session summaries (not raw transcripts) are sent to the LLM to generate the report sections.

API key handling: When --model is omitted, this skill reads openclaw.json and auth-profiles.json to auto-detect the model and retrieve the API key. The API key is used only for LLM calls during report generation and is not stored or transmitted elsewhere. When --model is specified explicitly, the user must provide the API key via environment variables — no OpenClaw config files are accessed for credentials.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

91.53%
按下载量换算2,636

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills