session-cleaner
Automatically cleans up inactive sessions (older than 1 hour) and sends a notification.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/artwebs/lite-session-cleanerSession Cleaner Skill
This skill is designed to be run via a cron job or periodic task to monitor and prune stale sessions.
Usage
The skill relies on openclaw sessions_list to identify old sessions and openclaw sessions_kill to terminate them. It can be integrated into a TaskFlow or run as a standalone script via exec.
Implementation Logic
- Identify: Use
sessions_listto retrieve all active sessions. - Filter: Compare the
last_activitytimestamp of each session with the current time. - Action: For sessions where
current_time - last_activity > 3600seconds:- Send a message to the session's target channel (e.g., via
messagetool) stating: "当前会话已经结束". - Execute
sessions_kill <session_id>.
- Send a message to the session's target channel (e.g., via
- Log: Record the cleaning action in the daily log.
Requirements
openclawCLI installed and accessible.- Access to session metadata.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-artwebs-lite-session-cleaner": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
workday-reminder
工作日下班提醒技能。提供工作日下班时间(默认 17:30)的定时提醒、倒计时查询和提醒管理功能。当用户提到"下班提醒"、"下班倒计时"、"还有多久下班"、"设置下班时间"等相关需求时触发。支持工作日和周末区分提醒。
ruankao-gaoxiang-prep
软考高级信息系统项目管理师备考技能。每天推送教材第四版重点章节的10条背诵重点和10个英语单词。支持章节查询、重点回顾、单词记忆等功能。当用户提到"软考高项"、"备考"、"章节重点"、"英语单词"、"软考复习"等相关需求时触发。
Context Guardian Pro
Skill by artwebs