返回顶部
t

tidyfiles整理文件

Sort and organize files into folders by type, date, or rules. Use when decluttering dirs, checking structure, running cleanup, generating reports.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.0.0
安全检测
已通过
154
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

tidyfiles

Tidyfiles

一款多功能实用工具包,用于通过命令行记录、追踪和管理文件整理任务。每条命令都会将带时间戳的条目记录到其专属日志文件中,并内置统计、多格式导出、搜索和健康检查功能。

为什么选择Tidyfiles?

  • - 完全离线运行——数据保留在您的机器上
  • 每种命令类型维护独立的日志文件,实现数据清晰分离
  • 内置多格式导出(JSON、CSV、纯文本)
  • 完整的活动历史记录,附带时间戳审计追踪
  • 跨所有日志文件即时搜索
  • 汇总统计,包含条目数量和磁盘使用情况
  • 零外部依赖——纯bash实现

命令

核心操作

命令描述
tidyfiles run <input>记录运行条目(无参数:显示最近条目)
tidyfiles check <input>
记录检查条目(无参数:显示最近条目) | | tidyfiles convert | 记录转换条目(无参数:显示最近条目) | | tidyfiles analyze | 记录分析条目(无参数:显示最近条目) | | tidyfiles generate | 记录生成条目(无参数:显示最近条目) | | tidyfiles preview | 记录预览条目(无参数:显示最近条目) | | tidyfiles batch | 记录批处理条目(无参数:显示最近条目) | | tidyfiles compare | 记录比较条目(无参数:显示最近条目) | | tidyfiles export | 记录导出条目(无参数:显示最近条目) | | tidyfiles config | 记录配置条目(无参数:显示最近条目) | | tidyfiles status | 记录状态条目(无参数:显示最近条目) | | tidyfiles report | 记录报告条目(无参数:显示最近条目) |

实用命令

命令描述
tidyfiles stats显示汇总统计(每种类型的条目数量、总数、磁盘使用情况)
tidyfiles export <fmt>
以json、csv或txt格式导出所有数据 | | tidyfiles search | 跨所有日志文件搜索(不区分大小写) | | tidyfiles recent | 显示最近20条活动日志条目 | | tidyfiles status | 健康检查(版本、条目、磁盘、最近活动) | | tidyfiles help | 显示所有可用命令 | | tidyfiles version | 打印版本字符串 |

每个核心命令有两种工作模式:

  • - 带参数:将带时间戳的条目保存到.log并记录到history.log
  • 无参数:显示该命令日志中最近20条条目

数据存储

所有数据本地存储在~/.local/share/tidyfiles/中。该目录包含:

  • - run.logcheck.logconvert.loganalyze.log等——每种命令类型一个日志文件,存储YYYY-MM-DD HH:MM|input格式的条目
  • history.log——统一活动日志,包含每次执行命令的时间戳记录
  • export.json / export.csv / export.txt——生成的导出文件

系统要求

  • - Bash 4.0+,启用set -euo pipefail严格模式
  • 标准Unix工具:grep、cat、tail、wc、du、date、sed
  • 无需外部依赖或网络访问

使用场景

  1. 1. 追踪文件整理任务——使用tidyfiles run sorted ~/Downloads by file type记录带时间戳的清理活动
  2. 检查目录结构——使用tidyfiles check ~/projects: 45 dirs, 230 files, no empty dirs记录结构检查
  3. 分析磁盘使用模式——使用tidyfiles analyze Documents folder: 12GB, 40% PDFs记录分析结果,并通过tidyfiles search Documents查看
  4. 批量文件操作——使用tidyfiles batch renamed 150 photos with date prefix追踪批处理,并回顾历史批次
  5. 生成清理报告——使用tidyfiles report weekly cleanup: freed 3.2GB,然后使用tidyfiles export csv进行电子表格分析

示例

bash

记录文件整理活动


tidyfiles run organized Downloads into subfolders
tidyfiles check verified backup integrity: 100% match
tidyfiles analyze home directory: 85GB used, 15GB free

追踪转换和批处理操作

tidyfiles convert batch converted 200 PNGs to WebP tidyfiles batch moved archived projects to cold storage tidyfiles generate created folder structure for new project

预览和比较

tidyfiles preview dry-run sort of ~/Desktop: 45 files to move tidyfiles compare before/after cleanup: 12GB freed

搜索、查看和导出

tidyfiles search backup tidyfiles recent tidyfiles stats tidyfiles export json tidyfiles export csv

配置和报告

tidyfiles config default sort: by extension tidyfiles report monthly cleanup summary: 25GB reclaimed tidyfiles status

配置

数据目录默认为~/.local/share/tidyfiles/。所有日志文件均为纯文本格式,字段以管道符分隔(timestamp|value),便于使用标准Unix工具解析或导入电子表格。



由BytesAgain提供支持 | bytesagain.com | hello@bytesagain.com

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tidyfiles-1776196862 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tidyfiles-1776196862 技能

通过命令行安装

skillhub install tidyfiles-1776196862

下载

⬇ 下载 tidyfiles v2.0.0(免费)

文件大小: 4.63 KB | 发布时间: 2026-4-17 16:20

v2.0.0 最新 2026-4-17 16:20
Domain-specific upgrade

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部