C Task Cleanup

v1.0.0

Automatically scans and cleans completed C tasks weekly, compressing insights into MEMORY.md and generating cleanup reports.

0· 102·1 current·1 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the implementation. The handler reads a C-task markdown file, extracts completed items, compresses 'insights' into a MEMORY.md, clears the completed section, and writes a cleanup report — all consistent with the declared purpose.
Instruction Scope
SKILL.md and handler.js expect specific user-local paths (e.g., ~/Desktop/任务流/C-待办任务池.md and ~/.openclaw/workspace/memory). The script reads and overwrites the task file and writes logs; SKILL.md shows a concrete manual run path and a cron file location. This is expected for a local cleanup tool but you should note it will modify your files and there is no built-in backup step.
Install Mechanism
No install spec; the skill is instruction-only with a single JS handler. No external downloads or package installs are performed by the skill itself.
Credentials
No credentials or environment variables are requested. The code uses process.env.HOME implicitly to build file paths — normal for a local utility but worth noting because it will operate on files under your HOME directory.
Persistence & Privilege
The skill does not request 'always: true', does not modify other skills or global agent settings, and does not require elevated privileges. It will run only when invoked (or scheduled by a host cron), which matches its purpose.
Assessment
This skill appears coherent and local-only, but it will read and overwrite files in your HOME (the C task markdown, a MEMORY.md under ~/.openclaw, and log files on your Desktop). Before enabling or scheduling it: (1) review the paths in handler.js and update them if they don't match your environment, (2) create backups of your C-待办任务池.md, (3) consider testing on a copy to confirm parsing/clearing behaves as you expect, and (4) if you want safety, add a pre-check or backup step to the script so you can revert accidental changes.

Like a lobster shell, security has layers — review code before you run it.

latestvk9777j0rb5213hcqxzem98f27x83x98e
102downloads
0stars
1versions
Updated 2w ago
v1.0.0
MIT-0

C-Task-Cleanup · C 类任务清理工具

版本: v1.0
创建时间: 2026-03-01 21:00
用途: 每周日 23:00 自动清理 C 类任务已完成记录


🎯 功能

  1. 扫描 C 类任务池 - 读取已完成任务
  2. 4D 压缩高价值内容 - 提取洞察存入 MEMORY.md
  3. 清理已完成表格 - 清空"已完成"部分
  4. 生成清理报告 - 记录清理内容

📋 清理规则

内容处理方式
待办任务不清理(继续保留)
已完成任务(<7 天)4D 压缩后清理
已完成任务(>7 天)直接清理
高价值洞察4D 压缩 → MEMORY.md

🔧 使用方法

# 手动运行
node /Users/abc/.openclaw/workspace/skills/c-task-cleanup/handler.js

# 自动运行(每周日 23:00)
# Cron: /Users/abc/.openclaw/cron/c-task-cleanup.json

📊 输出

  • 清理报告: ~/Desktop/任务流/logs/c-task-cleanup-YYYY-MM-DD.md
  • MEMORY.md 更新: 高价值洞察(4D 压缩)

最后更新:2026-03-01 21:00

Comments

Loading comments...