session-cleanup

定期清理过期会话,评估并保存有价值信息,自动清理无价值会话。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "session-cleanup" with this command: npx skills add xaiohuangningde/session-cleanup

Session Cleanup

定期检查和清理过期会话,评估会话价值并保存重要信息。

能力轮廓

  • 输入:会话目录路径
  • 输出:清理报告 + 保存的有价值会话
  • 核心:过期检测 → 价值评估 → 选择性清理

工作流

1. 扫描会话目录
2. 检查过期会话(7天无活动)
3. 评估会话价值(关键词匹配)
4. 保存有价值会话到记忆
5. 清理无价值会话
6. 生成报告

目标目录

目录说明
~/.openclaw/cron/runs/定时任务运行记录
~/.openclaw/delivery-queue/消息投递队列
~/.openclaw/telegram/Telegram 会话数据
~/.openclaw/subagents/子智能体会话

过期规则

  • cron runs: 超过 3 天
  • delivery-queue: 超过 1 天(已完成/失败的)
  • telegram: 超过 7 天
  • subagents: 超过 7 天

价值评估关键词

类别关键词
重要决策decision, important, remember, 重要, 决策
学习learn, study, understand, 学习, 理解
问题解决fix, bug, error, 修复, 问题, 错误
创建create, build, new, 创建, 新建

主动性

  • 每周执行一次
  • 自动评估并保存有价值内容
  • 汇报清理结果

使用方式

# 手动执行
~/.openclaw/workspace/skills/session-cleanup/cleanup.sh

# 配置定时任务(每周日凌晨3点)
cron job add session-cleanup "0 3 * * 0" ~/.openclaw/workspace/skills/session-cleanup/run.sh

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Polymarket Politics Random Buyer

Randomly finds a live Polymarket politics market, checks trading context, and buys 1 USDC by default with explicit dry-run and live modes for AION Market.

Registry SourceRecently Updated
General

DB Schenker

德国铁路集团旗下物流巨头,专注欧洲最大陆运网络及多式联运,提供空运、海运及合同物流服务。

Registry SourceRecently Updated
General

Secretary Memory

OpenClaw 秘书式多分区记忆系统 v3.0。仿生现代秘书的笔记本分类法,支持:(1) 多分区并发搜索 + 每分区3条上下文召回,(2) 会话自动摘要,(3) 偏好自动提取 + 用户关系图谱,(4) 记忆冲突主动检测,(5) 定时 consolidation + 会话结束 hook,(6) 精细化恢复/回溯,...

Registry SourceRecently Updated
General

Hunt

Digital bounty hunter skill for finding, tracking, and managing online hackathon opportunities. Trigger when the user says "hunt", "find hackathons", "show m...

Registry SourceRecently Updated