本文へ移動
cccskills
無料GitHub で公開

session-optimizer

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

インストール方法を見る

含まれるファイル(2)

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

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Track and synthesize current AI hotspots into a bilingual HTML daily report. Use when the user says "AI热点", asks for AI日报/AI日报 HTML/AI hot topics, or wants the best recent AI products, papers, viewpoints, and cognition-shifting items from AI/news aggregators.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Fetch and extract full text from arxiv paper HTML pages. Invoke when user asks to read an arxiv paper, analyze a paper's content, or when given an arxiv ID/URL.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

ask-echo

無料

使用火山引擎 Ask-Echo 融合信息搜索 API 进行 web 搜索、web 搜索总结版和图片搜索。

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月9日 更新

huangruiteng のスキルをすべて見る

このスキルの問題を報告する