跳到正文
cccskills
免费在 GitHub 公开

session-optimizer

Monitor an OpenClaw session’s elapsed time and completed task count to identify when a fresh session is advisable. The script issues threshold warnings, records session changes, displays history, and helps prepare for a reset.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

OpenClaw Session 优化器 - 监控 session 状态,在需要时提醒用户切换 session。包括 session 长度监控、已完成任务数量统计、时间显示等功能。

查看安装方法

适用场景

  • Check elapsed session time
  • Review completed task counts
  • Get reminders to switch sessions
  • Review session change history

包含的文件(2)

  • SKILL.md1.5 KB
  • scripts/session-optimizer.py8.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Session Optimizer Skill

监控 OpenClaw session 状态,在需要时提醒用户切换 session。

核心功能

  1. Session 状态检查 - 检查当前 session 的运行时间
  2. 已完成任务统计 - 监控 TODO_ARCHIVE.md 中的归档任务数量
  3. 自动警告 - 在达到阈值时提醒用户
  4. 历史记录 - 记录 session 切换历史

使用方法

检查 Session 状态

cd /root/.openclaw/workspace/CS-Notes/.trae/openclaw-skills/session-optimizer/scripts/
python3 session-optimizer.py check

查看历史记录

python3 session-optimizer.py history

准备重置 Session

python3 session-optimizer.py reset

阈值配置

  • 已完成任务警告: 2 个任务
  • 已完成任务强烈建议: 3 个任务(超过 3 个建议切换 session)
  • 时间警告: 12 小时
  • 时间强烈建议: 24 小时

状态文件

状态文件保存在:/root/.openclaw/workspace/CS-Notes/.openclaw-session-optimizer.json

重要原则

  • 基于 OpenClaw 现有能力,不侵入内部代码
  • 不修改 OpenClaw 源代码
  • 不修改 OpenClaw 配置文件
  • 仅使用 OpenClaw 已提供的功能
  • 推荐使用 OpenClaw 内置的 /reset 命令
  • 监控 TODO_ARCHIVE.md 中的归档任务数量,超过 3 个建议切换 session

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Gather recent AI products, papers, tools, and viewpoints into a Chinese and English HTML daily report. Select up to ten supported items, check original sources where possible, and summarize shared trends with practical next actions.

中文简介正在准备中。当前显示英语简介。

  • Reviewing recent AI developments each morning
  • Tracking research and tools for AI agents
  • Choosing what to read or try next
huangruiteng/CS-Notes40112026年10月21日 更新

Retrieve an arxiv paper's full text from its HTML version using an ID or URL. Extract readable text with section structure, optionally save it to a file, and prepare it for reading, notes, or technical analysis.

中文简介正在准备中。当前显示英语简介。

  • Reading a paper from an arxiv ID or URL
  • Extracting full text for research notes
  • Saving long papers for section-by-section reading
huangruiteng/CS-Notes40112026年10月21日 更新

ask-echo

免费

Search the web or find images through the Ask-Echo API from 火山引擎. Retrieve result details, request an AI-generated summary, and narrow searches by time range or selected websites.

中文简介正在准备中。当前显示英语简介。

  • Finding web pages about a specific topic
  • Getting an AI-generated summary of search results
  • Searching for images
huangruiteng/CS-Notes40112026年10月21日 更新

Build or update the BlueBubbles channel plugin for Clawdbot. The skill explains code locations, existing helper functions, message delivery, connection checks, and webhook handling, which receives incoming messages and attachments through HTTP notifications.

中文简介正在准备中。当前显示英语简介。

  • Building or updating the BlueBubbles channel plugin
  • Implementing message delivery and connection checks
  • Handling incoming messages and attachments through webhooks
huangruiteng/CS-Notes40112026年10月21日 更新

Turn API documentation, SDKs, or existing scripts into reusable command-line tools for Codex. Build focused read and write commands, stable JSON output, authentication checks, and a companion skill explaining how future sessions should use the tool.

中文简介正在准备中。当前显示英语简介。

  • Turning an API into reusable commands
  • Making an internal script usable across projects
  • Adding JSON output and authentication checks
huangruiteng/CS-Notes40112026年10月21日 更新

Improve existing code through up to two optimization rounds, measuring execution time and memory use against a baseline. Verify that results remain correct, save the optimized code, and document changes, measured gains, and trade-offs in a report.

中文简介正在准备中。当前显示英语简介。

  • Improving the performance of existing code
  • Comparing execution time and memory use with a baseline
  • Checking that optimized code produces correct results
huangruiteng/CS-Notes40112026年10月21日 更新

查看 huangruiteng 的全部技能

报告此技能的问题