CtrlK
BlogDocsLog inGet started
Tessl Logo

session-optimizer

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

57

Quality

65%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./.trae/openclaw-skills/session-optimizer/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

72%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is a lean, well-organized overview with genuinely executable commands and concrete thresholds, and the Python implementation is properly externalized to a real bundle script. Its main weakness is that the three commands are presented as isolated recipes rather than an explicit check → warn → reset loop with a validation checkpoint before recording history. Minor redundancy between the 阈值配置 and 重要原则 sections costs some token efficiency.

Suggestions

Add an explicit ordered workflow, e.g. '1. Each conversation: run check 2. On warning: execute /reset in the OpenClaw TUI 3. Then run reset to record the switch in history' — turning the three command recipes into a sequenced loop with a checkpoint.

Remove the duplicated threshold statement ('超过 3 个建议切换 session' appears in both 阈值配置 and 重要原则) and the restatement of the frontmatter description at the top of the body.

Document what the check/reset commands actually output so the user knows how to interpret warnings and confirm a reset was recorded.

DimensionReasoningScore

Conciseness

The body is efficient — no explanation of concepts Claude already knows, just features, commands, thresholds, and constraints ('阈值配置', '状态文件', '重要原则'). It falls short of 5 because of redundancy: the threshold '超过 3 个建议切换 session' appears in both 阈值配置 and 重要原则, and '监控 OpenClaw session 状态,在需要时提醒用户切换 session' repeats the frontmatter description.

4 / 5

Actionability

Concrete, executable bash commands are given with the full script path ('cd /root/.openclaw/workspace/.../scripts/ && python3 session-optimizer.py check'), plus concrete numeric thresholds (2/3 tasks, 12/24 hours) and the state-file path — matching 'mostly executable guidance with minor gaps'. Not 5 because 'history' and 'reset' invocations rely on the cwd established by the first command block, and there is no guidance on interpreting the check output or what the reset flow actually does.

4 / 5

Workflow Clarity

The three commands are documented but never sequenced into a workflow: there is no explicit 'run check each conversation → on warning use /reset in the TUI → run reset to record the switch' loop, and no validation/checkpoint step (e.g. verify the reset was performed before recording history). This matches the level-3 anchor 'steps listed but validation gaps; sequence present but checkpoints missing or implicit'.

3 / 5

Progressive Disclosure

The SKILL.md is a short, well-sectioned overview (核心功能 / 使用方法 / 阈值配置 / 状态文件 / 重要原则) with all implementation logic correctly externalized into scripts/session-optimizer.py, which exists and exposes exactly the documented check/history/reset commands — one level deep, clearly referenced via the command path. Per the simple-skill guidance, this merits a 5.

5 / 5

Total

16

/

20

Passed

Description

58%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description communicates a clear purpose and several concrete capabilities, but it reads as a feature list rather than a trigger-oriented description. It lacks any 'when to use' guidance and natural trigger phrases, which caps both completeness and trigger-term quality. Adding an explicit activation clause with user-facing trigger terms would move it into the good-example range.

Suggestions

Add an explicit trigger clause, e.g. 'Use when a session has been running long, many tasks have been completed, or the user asks whether to switch/reset the session.'

Include natural user-facing trigger terms and synonyms (e.g. 'session too long', 'new session', 'context full', 'archive tasks') rather than only feature labels like '长度监控/时间显示'.

Drop the trailing '等功能' padding and instead name the remaining capability concretely, so coverage is comprehensive without vagueness.

DimensionReasoningScore

Specificity

The description names the domain ('监控 session 状态,在需要时提醒用户切换 session') and lists several specific actions — 'session 长度监控、已完成任务数量统计、时间显示' — comparable in concreteness to the level-4 anchor ('Extracts text from PDF files, fills forms, converts pages to images'). It is not a 5 because '等功能' ('etc.') leaves coverage minorly incomplete and the actions are feature labels rather than fully concrete operations.

4 / 5

Completeness

The 'what' is clearly stated (monitor session state, count archived tasks, display time, remind user to switch sessions), but there is no 'when to use it' clause anywhere — no 'Use when...' or equivalent trigger guidance. Per the judging guidelines, a missing 'when' clause caps completeness at 3 ('Has a clear what but when is missing or only weakly implied').

3 / 5

Trigger Term Quality

Relevant keywords exist ('session 状态', '切换 session', '监控') but natural trigger phrases a user would say — e.g. 'session too long', 'when to start a new session', 'context full' — and their variations/synonyms are missing, matching the level-3 anchor 'Some relevant keywords but missing common variations or synonyms'. Not 4 because there is no 'Use when...' phrasing and no broader natural-term coverage; not 2 because the terms present are on-topic rather than generic.

3 / 5

Distinctiveness Conflict Risk

The scope is narrowly tied to OpenClaw sessions and specific behaviors ('监控 session 状态', '提醒用户切换 session', task-count thresholds), giving it a mostly distinct niche with only minor overlap risk against closely related monitoring/session-management skills — matching the level-4 anchor. Not 5 because '监控 session 状态' alone is somewhat broad and could collide with generic session- or state-monitoring skills.

4 / 5

Total

14

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
huangruiteng/CS-Notes
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.