360 Secure SkillHub
360 安全技能中心

Screen Activity Tracker Lite

面向 macOS 的零配置屏幕活动追踪技能:通过宿主 cron 定时调用 peekaboo 截图,用 Python 脚本写入活动日志,并可生成每日汇总、按关键词搜索历史记录。依赖 peekaboo 与 Python 3,配置含输出目录、视觉模型端点、采集间隔与保留天数四项。

zeject
zeject
热度 12.31
最近更新 2026-06-30 20:30:32
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:自动化脚本 / 工作流 / 摘要总结 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add screen-activity-tracker-lite
Metadata
name
screen-activity-tracker-lite
description
Minimal screen activity tracking. Trigger: track screen, start/stop tracking, daily summary, search history, 开始追踪屏幕, 屏幕活动总结, 整理今天的操作. Uses cron tool for tracking and bash for summary/search.
version
1.0.0
license
MIT
author
zeject
homepage
https://github.com/zeject/screen-activity-tracker-lite
metadata
{"openclaw":{"emoji":"📸","os":["darwin"],"requires":{"bins":["peekaboo","python3"]},"install":[{"kind":"npm-global","pkg":"@steipete/peekaboo","bins":["peekaboo"],"label":"Install Peekaboo (npm)"},{"id":"python3","kind":"system","label":"Python 3.x required"}]}}

Screen Activity Tracker (Lite)

Zero-config screen activity tracking.

⚠️ CRITICAL: Tool Usage Rules

NEVER call skill_workshop tool. It will error. Only use:

User Intent Tool How
Start tracking cron {"operation":"add","name":"屏幕活动记录","command":"...","cron":"*/5 * * * *"}
Stop/Resume/List cron {"operation":"edit","jobId":"...","enabled":false} or {"operation":"list"}
Daily summary bash python3 <SKILL_DIR>/scripts/activity-analyzer.py summary
Search history bash python3 <SKILL_DIR>/scripts/activity-analyzer.py search "keyword"

Start Tracking

  1. Check <SKILL_DIR>/config.json exists (if not: cp config.example.json config.json)
  2. Call cron tool:
{
  "operation": "add",
  "name": "屏幕活动记录",
  "command": "sh -lc '/bin/bash <SKILL_DIR>/scripts/screen-activity.sh'",
  "cron": "*/5 * * * *",
  "timeoutSeconds": 90
}
  1. Report job ID + interval to user.

Stop / Edit

{"operation": "edit", "jobId": "<id>", "enabled": false}
{"operation": "edit", "jobId": "<id>", "cron": "*/10 * * * *"}
{"operation": "list"}

Summary & Search (bash)

python3 <SKILL_DIR>/scripts/activity-analyzer.py summary
python3 <SKILL_DIR>/scripts/activity-analyzer.py search "VS Code"

Config (config.json) — 4 fields

Field Default Description
output_dir ~/screen-activity Logs location
mlx_url http://192.168.1.198:18000/v1 VL model endpoint
interval_minutes 5 Capture frequency
keep_days 7 Retention (0=forever)

License

MIT