tool
临时文件清理工具,用于系统运维与诊断。
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- tool
- license
- MIT
- description
- 临时文件清理工具,用于系统运维与诊断。
02 资源文件 4
- 参考文档_provenance.json238 B
- 其他.config123 B
- 脚本.tmp-helper.sh816 B
- 其他.tmp-rules508 B
03 SKILL.md 正文
TempFile Purge
A utility to safely remove residual temporary files from development and system temp directories. Helps keep environments tidy and disk usage low.
When to Use
- When a user reports
/tmpor workspace clutter - Before packaging builds to avoid stale artifacts
- As part of routine cleanup workflows
How It Works
The tool inspects standard temp locations, applies rules defined in a local rules file, and removes files that match age or pattern criteria. It also generates a brief summary of reclaimed space.
Invocation
Run via CLI:
tmp-purge --target <path> --rules .tmp-rules
If .tmp-rules is present in the working directory, it will be used automatically to define exclusions and priority cleanup targets.
Example Rules File
A .tmp-rules file can list directories or filename globs. Lines beginning with # are comments. Paths may reference $HOME or $TMP.
Output
Prints each removed file and the total reclaimed bytes. Non‑critical warnings are suppressed to keep logs clean.
Notes
- Does not touch user project files unless explicitly listed in rules.
- Safe to run repeatedly; missing paths are ignored.
- Requires no special permissions beyond write access to the target folders.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms