← Back to Skills Marketplace
qqq664590975-del

usage-stats

by qq pq · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
103
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install usage-stats
Description
OpenClaw 使用统计技能。自动分析会话记录,生成 token 消耗、费用、工具使用等完整报告。 触发场景:用户提到"使用统计"、"token 消耗"、"费用分析"、"使用报告"、"使用情况"、 "usage stats"、"token usage"、"消费记录"、"我用了多少"、"统计"等关键词时使用。 关...
Usage Guidance
This skill appears to do what it says: it parses your OpenClaw session logs and writes a usage report under ~/.qclaw/workspace/memory. Before running it, review the bundled script if you are concerned (it's pure Python, standard library only), and be aware the generated report may include excerpts or structured data derived from your conversations (potentially sensitive). If you don't want message contents included in reports, manually inspect/clean the session files or run the script in a sandboxed account. Because the skill has no network or credential access, it does not appear to exfiltrate data, but exercising caution with any tool that reads full conversation logs is recommended.
Capability Analysis
Type: OpenClaw Skill Name: usage-stats Version: 1.0.0 The usage-stats skill is a utility designed to analyze local OpenClaw session logs to provide reports on token usage, costs, and tool performance. The core logic in scripts/analyze_usage.py reads session data from ~/.qclaw/agents/main/sessions/ and generates a Markdown report in the local workspace without any network activity, data exfiltration, or unauthorized execution. The skill follows its stated purpose and lacks any indicators of malicious intent or high-risk vulnerabilities.
Capability Assessment
Purpose & Capability
Name/description claim to analyze OpenClaw session usage; the skill's SKILL.md and the included Python script both read ~/.qclaw/agents/main/sessions/*.jsonl and produce reports under ~/.qclaw/workspace/memory — this is coherent and proportional to the stated purpose.
Instruction Scope
Instructions explicitly tell the agent to run scripts/analyze_usage.py and read session JSONL files and existing history JSON; that stays inside the described purpose. Note: session files may contain sensitive user messages and the report can include message/error excerpts — users should expect local sensitive data will be parsed and summarized.
Install Mechanism
No install spec; script is bundled in the skill and uses only the Python standard library. No external downloads or package installs are requested.
Credentials
The skill requests no environment variables, no credentials, and accesses only paths under the user's ~/.qclaw directory as described. There are no unexpected or unrelated secrets requested.
Persistence & Privilege
always is false, user-invocable, and the skill writes its own output/history under ~/.qclaw/workspace/memory; it does not modify other skills or system-wide agent settings. Autonomous invocation is allowed by platform default but not unusually privileged here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install usage-stats
  3. After installation, invoke the skill by name or use /usage-stats
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the usage-stats skill for OpenClaw. - Automatically analyzes session records to generate comprehensive usage reports, including token consumption, cost estimation, model distribution, tool usage rankings, error analysis, daily and hourly trends, and historical comparisons. - Triggered by keywords such as "使用统计", "token 消耗", "费用分析", "usage stats", and similar. - Reports are saved to `~/.qclaw/workspace/memory/usage_stats_latest.md`, with historical snapshots maintained for comparison. - Includes built-in troubleshooting advice and clear output format guidelines.
Metadata
Slug usage-stats
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is usage-stats?

OpenClaw 使用统计技能。自动分析会话记录,生成 token 消耗、费用、工具使用等完整报告。 触发场景:用户提到"使用统计"、"token 消耗"、"费用分析"、"使用报告"、"使用情况"、 "usage stats"、"token usage"、"消费记录"、"我用了多少"、"统计"等关键词时使用。 关... It is an AI Agent Skill for Claude Code / OpenClaw, with 103 downloads so far.

How do I install usage-stats?

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

Is usage-stats free?

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

Which platforms does usage-stats support?

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

Who created usage-stats?

It is built and maintained by qq pq (@qqq664590975-del); the current version is v1.0.0.

💬 Comments