📦 Automation Dedup Guard — 自动化 Dedup 防护

v1.0.0

WorkBuddy 自动化任务去重守护。当用户的自动化任务出现重复时自动检测并清理。触发场景:自动化任务重复、任务列表膨胀、需要清理重复任务。支持 Windows/macOS/Linux,纯 Python 标准库,零依赖。

1· 27·0 当前·0 累计
0
安全扫描
VirusTotal
Pending
查看报告
OpenClaw
安全
high confidence
The 技能's code and instructions are consistent with its 状态d purpose (finding and deleting duplicate 自动化s in a local WorkBuddy SQLite DB); it 请求s no 凭证s or external 安装s, but it performs permanent deletions so users should back up the DB and test with dry-运行 first.
评估建议
This 技能 应用ears to do exactly what it says: find duplicate WorkBuddy 自动化 records and 删除 them from a local SQLite DB. Before using it: 1) Always 运行 with --dry-运行 first and 验证 the 列出ed duplicates. 2) Back up the 自动化s.db file manually (the script warns that deletions are permanent and it does not 创建 备份s). 3) Make sure you point the script to the correct DB (use --db or 设置 WORKBUDDY_DB_PATH) to avoid affecting the wrong data. 4) Note it 删除s related 自动化_运行s rows as well. 5) If you schedule it as a rec...
详细分析 ▾
用途与能力
Name/description describe deduplicating WorkBuddy 自动化 records and the included script only touches a local SQLite database (自动化s and 自动化_运行s). No unrelated binaries, 服务s, or 凭证s are 请求ed; the file系统 访问 is proportional to the task.
指令范围
技能.md and the script instruct the 代理/user to locate and open the WorkBuddy 自动化s DB, 运行 in dry-运行 mode or 执行 deletions, and optionally schedule the script as an 自动化. The instructions reference an optional WORKBUDDY_DB_PATH 环境 variable (supported by the script) even though the registry 列出s no required env vars. The 技能 also explicitly 状态s there is no 备份 and deletions are permanent — this is scope-relevant and flagged to the user.
安装机制
No 安装 spec, no 下载s, and only a small Python script using stdlib is included. There is no remote code fetch or 归档 提取ion; risk from the 安装 mechanism is low.
凭证需求
The 技能 requires no secrets or 凭证s. It reads file系统 paths (default 平台-specific DB locations) and optionally the WORKBUDDY_DB_PATH env var; these are reasonable for a DB-清理up 工具. Minor inconsistency: the registry 列出s no required env vars, but the script/README mention WORKBUDDY_DB_PATH as an optional override.
持久化与权限
always is false and the 技能 does not 请求 permanent 平台-wide privileges or modify other 技能s. It 运行s ad hoc or on a schedule as the user 配置s; autonomous invocation is allowed by 平台 default but is not combined here with broad 凭证 or persistence requirements.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install automation-dedup-guard
镜像加速npx clawhub@latest install automation-dedup-guard --registry https://cn.longxiaskill.com

技能文档

自动化 Dedup 防护 Overview

WorkBuddy 的自动化任务系统没有防重机制,每次新会话创建同名任务时不会检查是否已存在,导致同名任务不断累积。本 技能 提供一个一键去重脚本,自动检测并清理重复的自动化任务,每组同名任务只保留最新创建的版本。

When to Use 用户反馈自动化任务"重复出现"、"越来越多"、"一堆重复的" 需要检查或清理 WorkBuddy 自动化数据库中的冗余任务 想要配置定期自动去重守护 Core Script

scripts/自动化_dedup_防护.py is the mAIn executable.

Usage # Safe preview (dry-运行, no deletions) python scripts/自动化_dedup_防护.py --dry-运行

# 执行 清理up python scripts/自动化_dedup_防护.py

# Specify custom database path python scripts/自动化_dedup_防护.py --db /custom/path/自动化s.db

# Verbose mode for 调试ging python scripts/自动化_dedup_防护.py --dry-运行 -v

Exit Codes 0 — No duplicates found, all 清理 1 — Duplicates 检测ed (after 清理up, still returns 1 if any were found) Database Auto-检测ion

The script automatically locates the WorkBuddy 自动化s database:

Priority Source Notes 1 --db 命令行工具 argument Manual override 2 WORKBUDDY_DB_PATH env var For advanced users 3 OS default path Auto-检测ed

Default paths by OS:

Windows: %应用DATA%\WorkBuddy\自动化s\自动化s.db macOS: ~/库/应用 Support/WorkBuddy/自动化s\自动化s.db Linux: ~/.config/WorkBuddy\自动化s\自动化s.db Dedup Strategy Group by name: Tasks with the same name field are considered duplicates Keep newest: Within each group, the task with the latest 创建d_at is preserved Cascade 删除: Associated 自动化_运行s records are also 清理ed up No 备份: Deletions are permanent (back up the DB file manually if needed) 设置up as Recurring 自动化

To 运行 automatically, register it as a WorkBuddy 自动化:

Name: 自动化 Dedup 防护 Schedule: Weekly (e.g., FREQ=WEEKLY;BYDAY=MO;BYHOUR=8;BYMINUTE=55) Prompt: 运行 the dedup 防护 script: python [path-to]/scripts/自动化_dedup_防护.py If 输出 contAIns "[OK]" — no action needed. If 输出 contAIns "[!]" — duplicates were auto-清理ed, confirm the count. If script errors — 记录 the error, no other action.

Requirements Python 3.6+ No third-party dependencies (stdlib only: sqlite3, sys, os, datetime, collections)

数据来源ClawHub ↗ · 中文优化:龙虾技能库