360 Secure SkillHub
360 安全技能中心

Sizeup

sizeup 是一个纯 Python、无第三方依赖的命令行磁盘占用分析工具:对指定路径生成带颜色标记的目录树视图,支持最小体积过滤、查找最大的若干文件、按扩展名统计占用,并可输出 JSON 结构化结果,帮助用户快速了解磁盘空间分布。

rogue-agent1
rogue-agent1
热度 53.24
最近更新 2026-05-11 17:37:27
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add sizeup
Metadata
name
sizeup
description
Disk usage analyzer with tree view, large file finder, and extension breakdown. Like `du` but actually readable. Pure Python, zero dependencies.

sizeup

Disk usage analyzer with tree view, large file finder, and extension breakdown. Like du but actually readable. Pure Python, zero dependencies.

Usage

# Tree view of current directory
sizeup

# Analyze specific path
sizeup /var/log --depth 2

# Only show items >= 10MB
sizeup --min 10M

# Top 20 largest files
sizeup /home --top 20

# Extension breakdown
sizeup . --ext

# JSON output
sizeup --top 10 --json

Features

  • Color-coded tree — red (≥1GB), yellow (≥100MB), cyan (≥10MB)
  • Large file finder — --top N finds the biggest files fast