360 Secure SkillHub
360 安全技能中心

disk-cleaner

该 Skill 通过 du、find、df 在 Linux 上只读分析磁盘占用,支持 analyze、topsize、oldlogs 三种操作,返回目录大小、使用率、最大文件及旧日志清单;材料声明不删除文件,但 lint 标记 destructive_action。

laolaoqi
laolaoqi
热度 14.08
最近更新 2026-09-10 13:08:07
分类:数据依赖:代码执行 / 读写文件应用场景:DevOps / 报告撰写 / 数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add disk-cleaner
Metadata
name
Disk Space Analyzer
description
Analyze disk usage on Linux servers. Find large files, old logs, and duplicate files. Safe read-only mode, no deletions performed automatically.

Disk Space Analyzer

Find out what's eating your disk space. Safe, read-only analysis.

Runs du, find, and df commands to analyze disk usage patterns. All operations are read-only — it reports findings and suggests cleanup targets but does NOT delete anything.

Actions

analyze — Full disk analysis

{ "action": "analyze" }

Returns: top-level directory sizes, disk usage percentage, mount points

topsize — Find largest files

{ "action": "topsize", "dir": "/var/log", "limit": 10 }

Returns: top N largest files in specified directory

oldlogs — Find old log files

{ "action": "oldlogs", "days": 30 }

Returns: log files older than N days, with sizes

Pricing

Free — MIT License (zero dependencies, pure bash)