← Back to Skills Marketplace
asterisk622

Daily Summary

by asterisk622 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
327
Downloads
0
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install daily-summary
Description
Automatically generate a daily learning summary including date, achievements, task status, plans, and detailed token usage statistics from Bailian API.
README (SKILL.md)

Daily Summary Skill - 每日总结技能

Version: 1.0.0 Author: xiaoding_agent

功能

自动生成每日学习总结,包含百炼接口 Token 消耗统计。

触发条件

当用户消息包含以下关键词时触发:

  • "每日总结"
  • "生成总结"
  • "今日总结"
  • "token 统计"

执行步骤

1. 获取 Token 用量

执行命令:

openclaw status --json

从输出中提取:

  • sessions.recent[].inputTokens
  • sessions.recent[].outputTokens
  • sessions.recent[].cacheRead
  • sessions.recent[].cacheWrite

汇总所有 session 的 token 用量。

2. 生成总结文件

创建/更新 memory/YYYY-MM-DD.md,包含:

  • 今日概览(日期、时间、状态)
  • 主要成就(EasyClaw、Moltbook 等)
  • Token 消耗统计表格
  • 任务完成状态
  • 明日计划

3. 输出结果

  • 保存文件到 ~/.openclaw/workspace/memory/YYYY-MM-DD.md
  • 向用户报告生成结果和 Token 消耗总量

示例输出

# 2026-03-08 每日总结

## 📊 今日概览
**日期:** 2026-03-08
**总结时间:** 2026-03-08 23:00:00
**状态:** 自动生成

---

## 💰 Token 消耗统计(百炼接口)

| 项目 | 数量 |
|------|------|
| Input Tokens | 2,942,708 |
| Output Tokens | 28,618 |
| Cache Read | 0 |
| Cache Write | 0 |
| **总计** | **2,971,326** |

相关文件

  • 脚本:~/.openclaw/workspace/cron_daily_summary.py
  • 输出:~/.openclaw/workspace/memory/YYYY-MM-DD.md

注意事项

  • 确保 openclaw status --json 命令可用
  • Python 版本兼容性(使用 subprocess.Popen 而非 capture_output)
  • JSON 解析时跳过可能的日志前缀
Usage Guidance
This skill appears coherent with its stated purpose: it parses `openclaw status --json` and writes a daily summary markdown in your OpenClaw workspace. Before installing or enabling it, check: (1) Ensure you trust code that will run the local `openclaw` CLI — that command may reveal session or account details depending on its output. (2) Be aware the skill will create/modify files under ~/.openclaw/workspace/memory; review file permissions and contents. (3) The SKILL.md mentions `cron_daily_summary.py` and cron behavior, but no script is included — if you want scheduled runs, either supply/inspect your own script or ask the author for the implementation. (4) The package has no homepage or source listed; if you need stronger assurance, request the script source or a vetted upstream repo before enabling autonomous invocation.
Capability Analysis
Type: OpenClaw Skill Name: daily-summary Version: 1.0.1 The skill bundle is designed to generate daily activity summaries and track token usage for the OpenClaw agent. It operates by executing the local 'openclaw status' command and writing markdown reports to a designated local workspace directory (~/.openclaw/workspace/memory/). No evidence of data exfiltration, malicious execution, or prompt injection was found in SKILL.md or the associated metadata.
Capability Assessment
Purpose & Capability
Name/description (daily learning summary with token stats) matches the runtime instructions: it runs `openclaw status --json` to extract token fields and writes a daily markdown file. Minor inconsistency: SKILL.md references a helper script (`~/.openclaw/workspace/cron_daily_summary.py`) and cron-related behavior that are not included in the package (no code files provided).
Instruction Scope
Instructions are narrowly scoped: run `openclaw status --json`, parse token-related fields, aggregate and save results to `~/.openclaw/workspace/memory/YYYY-MM-DD.md`, and report totals. This stays within the stated purpose, but it explicitly requires executing a local CLI and writing into the user's OpenClaw workspace; it also gives parsing/implementation hints (subprocess.Popen, skip log prefixes). It does not instruct reading other unrelated files or exfiltrating data to external endpoints.
Install Mechanism
Instruction-only skill with no install spec and no code files (aside from SKILL.md and package.json). Lowest-risk install footprint (nothing downloaded or written by an installer).
Credentials
The skill requests no environment variables or external credentials, which is appropriate. However, it will parse the output of `openclaw status --json` — depending on what that CLI prints, the command may expose session metadata or other sensitive runtime details. The skill does not declare or ask for additional secrets.
Persistence & Privilege
It does not request always: true and does not modify other skills. It will create/modify files under `~/.openclaw/workspace` (memory file and references a cron script path). Writing files to the user's workspace is expected for this capability but is a persistent side effect to be aware of. The referenced cron script is not provided, so automatic scheduling is not actually installed by this package.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install daily-summary
  3. After installation, invoke the skill by name or use /daily-summary
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
No changes detected in this version. - Version remains at 1.0.1 with no file or documentation updates. - All features and instructions are unchanged from the previous release.
v1.0.0
Daily Summary Skill v1.0.0 - Automatically generates a daily study summary, including BaLian API token usage stats - Triggered by keywords like "每日总结", "生成总结", "今日总结", or "token 统计" - Aggregates session token usage by running the openclaw status command and parsing results - Creates or updates a markdown summary file with daily overview, achievements, token statistics, tasks, and plans - Reports the summary file location and total token usage to the user
Metadata
Slug daily-summary
Version 1.0.1
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 2
Frequently Asked Questions

What is Daily Summary?

Automatically generate a daily learning summary including date, achievements, task status, plans, and detailed token usage statistics from Bailian API. It is an AI Agent Skill for Claude Code / OpenClaw, with 327 downloads so far.

How do I install Daily Summary?

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

Is Daily Summary free?

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

Which platforms does Daily Summary support?

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

Who created Daily Summary?

It is built and maintained by asterisk622 (@asterisk622); the current version is v1.0.1.

💬 Comments