/openclaw-session-cleaner
OpenClaw session 清理助手。用于用户提到清理 OpenClaw sessions、删除旧 cron session、压缩或重建 sessions.json、排查 session 文件膨胀时使用。触发后优先检查 ~/.openclaw/agents/main/sessions/ 下的 session 文件数量和 sessions.json 大小,并按指令执行清理。
$ npx -y skills add chujianyun/skills --skill openclaw-session-cleaner --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/openclaw-session-cleaner
Context preview
The summary Claude sees to decide when to auto-load this skill.
OpenClaw session 清理助手。用于用户提到清理 OpenClaw sessions、删除旧 cron session、压缩或重建 sessions.json、排查 session 文件膨胀时使用。触发后优先检查 ~/.openclaw/agents/main/sessions/ 下的 session 文件数量和 sessions.json 大小,并按指令执行清理。
SKILL.md
openclaw-session-cleaner.SKILL.mdname: openclaw-session-cleaner description: OpenClaw session 清理助手。用于用户提到清理 OpenClaw sessions、删除旧 cron session、压缩或重建 sessions.json、排查 session 文件膨胀时使用。触发后优先检查 ~/.openclaw/agents/main/sessions/ 下的 session 文件数量和 sessions.json 大小,并按指令执行清理。
OpenClaw Session Cleaner
当用户要求清理 OpenClaw session、删除旧的 cron session 文件、缩小 `sessions.json`、或重建 session 索引时,执行下面这段操作:
Check how many session files are in `~/.openclaw/agents/main/sessions/` and how big `sessions.json` is. If there are thousands of old cron session files bloating it, delete all the old `.jsonl` files except the main session, then rebuild `sessions.json` to only reference sessions that still exist on disk.
使用要求
- 默认操作目标是 `~/.openclaw/agents/main/sessions/`
- 在执行前先检查当前 session 文件数量和 `sessions.json` 大小
- 由 OpenClaw 自行判断哪些属于应清理的旧 cron session
- 保留 main session,不要误删主会话
- 清理完成后,确保 `sessions.json` 只引用磁盘上仍然存在的 session 文件
- 向用户汇报清理前后的数量变化,以及是否已完成重建
这是悟鸣公开维护的一组 Agent Skills,偏实战、偏工作流,主要服务于 AI 工具使用、文档解读、项目配置、运维排障与技能分发。 和“技能清单”相比,这个仓库更适合被理解成一张能力地图:每个 skill 不只是一个说明文件,而是围绕某一类任务组织起来的可复用能力单元。
Repo: chujianyun/skills
Other skills on chujianyun-skills.
agent-md-advisor
AGENTS.md / CLAUDE.md 最佳实践顾问。用于用户询问 agents markdown、AGENTS.md、CLAUDE.md、Claude Code memory、AI…
agent-optimizer
Agent 设计顾问与审查工具。基于 12-Factor AgentOps 最佳实践,用于:(1) 探讨 Agent 架构设计方案;(2) 审查现有…
alltuu-downloader
喔图(alltuu.com)云摄影相册批量下载工具。当用户需要从 alltuu.com / m.alltuu.com 相册批量下载原图时使用此技能。支持下载原图(6720x4480…
article-interpreter
文章解读助手。对用户提供的文章(URL、Markdown、PDF、粘贴文本)进行结构化解读,输出包含总览、关键要点、个人启发、批判性思考和延伸思考的 Markdown…

